Browse documentation

Connect

POST the stream configuration and receive a node URL, a session id and a token.

Request

Request fields

FieldTypeDescription
regionstring?us | uk | jp | ru. Omit it and we try the nearest region that still has capacity, using the request's source country. If that country is unknown, the order is us, uk, jp, ru. A specified region is never moved; an empty one returns 503.
audio.encodingstringpcm_s16le — the only value in v1.
audio.sampleRatenumber16000.
audio.channelsnumber1 (mono).
transcribeobjectLanguage hints and segmentation. See Transcription and Speakers.
translateobject?Language pair. See Translation. Omit to disable translation.
glossaryobject?Terms and forced translations. See Glossary.
aiEnhanceboolean?Second-pass refinement of each translation. See AI translation refinement.
digestboolean?Minutes streamed during the session. See Live minutes.
storeboolean?Defaults to false (no audio or transcript persistence). Set true to retain audio + transcript for 30 days. See Recordings.

Response

Response fields

FieldTypeDescription
urlstringWebSocket origin for this stream. Region-specific and per-stream — do not cache it.
sessionIdstringIdentifies this stream, and the recording key when store is true.
tokenstringOne-time credential for opening the WebSocket.
expiresAtstringISO 8601 deadline for opening the connection, not a limit on its duration.
protocolVersionnumber1.
audioobjectThe accepted audio format, including maxFrameBytes (65536).