@@ -43,6 +43,7 @@ def with_streaming_response(self) -> SessionsWithStreamingResponse:
43
43
def create (
44
44
self ,
45
45
* ,
46
+ client_secret : session_create_params .ClientSecret | NotGiven = NOT_GIVEN ,
46
47
input_audio_format : Literal ["pcm16" , "g711_ulaw" , "g711_alaw" ] | NotGiven = NOT_GIVEN ,
47
48
input_audio_noise_reduction : session_create_params .InputAudioNoiseReduction | NotGiven = NOT_GIVEN ,
48
49
input_audio_transcription : session_create_params .InputAudioTranscription | NotGiven = NOT_GIVEN ,
@@ -83,6 +84,8 @@ def create(
83
84
the Realtime API.
84
85
85
86
Args:
87
+ client_secret: Configuration options for the generated client secret.
88
+
86
89
input_audio_format: The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For
87
90
`pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel
88
91
(mono), and little-endian byte order.
@@ -163,6 +166,7 @@ def create(
163
166
"/realtime/sessions" ,
164
167
body = maybe_transform (
165
168
{
169
+ "client_secret" : client_secret ,
166
170
"input_audio_format" : input_audio_format ,
167
171
"input_audio_noise_reduction" : input_audio_noise_reduction ,
168
172
"input_audio_transcription" : input_audio_transcription ,
@@ -209,6 +213,7 @@ def with_streaming_response(self) -> AsyncSessionsWithStreamingResponse:
209
213
async def create (
210
214
self ,
211
215
* ,
216
+ client_secret : session_create_params .ClientSecret | NotGiven = NOT_GIVEN ,
212
217
input_audio_format : Literal ["pcm16" , "g711_ulaw" , "g711_alaw" ] | NotGiven = NOT_GIVEN ,
213
218
input_audio_noise_reduction : session_create_params .InputAudioNoiseReduction | NotGiven = NOT_GIVEN ,
214
219
input_audio_transcription : session_create_params .InputAudioTranscription | NotGiven = NOT_GIVEN ,
@@ -249,6 +254,8 @@ async def create(
249
254
the Realtime API.
250
255
251
256
Args:
257
+ client_secret: Configuration options for the generated client secret.
258
+
252
259
input_audio_format: The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For
253
260
`pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel
254
261
(mono), and little-endian byte order.
@@ -329,6 +336,7 @@ async def create(
329
336
"/realtime/sessions" ,
330
337
body = await async_maybe_transform (
331
338
{
339
+ "client_secret" : client_secret ,
332
340
"input_audio_format" : input_audio_format ,
333
341
"input_audio_noise_reduction" : input_audio_noise_reduction ,
334
342
"input_audio_transcription" : input_audio_transcription ,
0 commit comments