-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
Description
Describe the bug
In case of SIP integration, input_audio_format and output_audio_format should not be overridden with the defaults specified here:
openai-agents-python/src/agents/realtime/openai_realtime.py
Lines 145 to 146 in 9bcf081
| "input_audio_format": "pcm16", | |
| "output_audio_format": "pcm16", |
Debug information
- Agents SDK version:
v0.5.1 - Python version 3.13
Repro steps
- Initiate a SIP call from a client that is using g711-ulaw or g711-alaw
- Realize that audio is going to be distorted because of the defaults
Expected behavior
When call_id is present (indicating a SIP session), the client should not override the audio format imposed by SIP, when doing the connect on the websocket.