You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError("encoding must be specified when transport is JSON")
32
+
returnself
5
33
6
34
7
35
classAudioConnectorWebSocket(BaseModel):
@@ -13,6 +41,7 @@ class AudioConnectorWebSocket(BaseModel):
13
41
headers (dict): The headers to send to your WebSocket server.
14
42
audio_rate (AudioSampleRate): The audio sample rate in Hertz.
15
43
bidirectional (bool): Whether the websocket is bidirectional.
44
+
audio_transport (AudioTransportConfiguration): The audio transport configuration. Configures how audio is serialized on the WebSocket wire. By default, audio is sent as raw binary PCM 16-bit frames.
16
45
"""
17
46
18
47
uri: str
@@ -22,6 +51,9 @@ class AudioConnectorWebSocket(BaseModel):
22
51
bidirectional: Optional[bool] =Field(
23
52
None, description="Whether the websocket is bidirectional."
0 commit comments