File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ class RealtimeSessionModelSettings(TypedDict):
94
94
voice : NotRequired [str ]
95
95
"""The voice to use for audio output."""
96
96
97
+ speed : NotRequired [float ]
98
+ """The speed of the model's responses."""
99
+
97
100
input_audio_format : NotRequired [RealtimeAudioFormat ]
98
101
"""The format for input audio streams."""
99
102
Original file line number Diff line number Diff line change @@ -569,6 +569,7 @@ def _get_session_config(
569
569
or DEFAULT_MODEL_SETTINGS .get ("model_name" )
570
570
),
571
571
voice = model_settings .get ("voice" , DEFAULT_MODEL_SETTINGS .get ("voice" )),
572
+ speed = model_settings .get ("speed" , None ),
572
573
modalities = model_settings .get ("modalities" , DEFAULT_MODEL_SETTINGS .get ("modalities" )),
573
574
input_audio_format = model_settings .get (
574
575
"input_audio_format" ,
You can’t perform that action at this time.
0 commit comments