Create transcription session
Deprecated
POST/realtime/transcription_sessions
Create an ephemeral API token for use in client-side applications with the
Realtime API specifically for realtime transcriptions.
Can be configured with the same session parameters as the transcription_session.update client event.
It responds with a session object, plus a client_secret key which contains
a usable ephemeral API token that can be used to authenticate browser clients
for the Realtime API.
Body ParametersJSON
include: optional array of "item.input_audio_transcription.logprobs"
The set of items to include in the transcription. Current available items are:
item.input_audio_transcription.logprobs
Returns
input_audio_format: optional string
The format of input audio. Options are pcm16, g711_ulaw, or g711_alaw.
Create transcription session
curl https://api.openai.com/v1/realtime/transcription_sessions \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{}'{
"client_secret": {
"expires_at": 0,
"value": "value"
},
"input_audio_format": "input_audio_format",
"input_audio_transcription": {
"language": "language",
"model": "string",
"prompt": "prompt"
},
"modalities": [
"text"
],
"turn_detection": {
"prefix_padding_ms": 0,
"silence_duration_ms": 0,
"threshold": 0,
"type": "type"
}
}Returns Examples
{
"client_secret": {
"expires_at": 0,
"value": "value"
},
"input_audio_format": "input_audio_format",
"input_audio_transcription": {
"language": "language",
"model": "string",
"prompt": "prompt"
},
"modalities": [
"text"
],
"turn_detection": {
"prefix_padding_ms": 0,
"silence_duration_ms": 0,
"threshold": 0,
"type": "type"
}
}