A real-time voice session your platform configures with no agent
post/voice/platform/sessions
A real-time voice session your platform configures with no agent: converse on your own instruction, interpret between two languages, or only transcribe; a live route, a catalogue voice, tools answered in the browser or posted signed to your server, your own metadata. Answers a single-use token bound to that configuration and one page origin, valid one minute; the same idempotency key answers the same session until it starts.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
voice:write- Graphql
Mutation.voicePlatformSessionStart- Sdk
voice.platformSession.start- Cli
voice platform session start- Events
voice.session.usage, voice.session.ended
Request bodyapplication/json, required
- kindstringrequiredOne of: converse, translate, transcribe.
- routestringA live route: live or live-thinking Default: live.
- instructionstringWhat the voice is and does (converse); added guidance (translate, transcribe) Default: . At most 8000 characters.
- voicestringA voice id from GET /voice/catalogue Default: Kore.
- languagestringThe language spoken (converse, transcribe) Pattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$.
- languageslist of valuesThe two languages an interpreter goes between (translate)
- wordslist of stringNames and terms to say and write as given Default: [].
- textOutbooleanSend the words heard and said to the browser as text Default: true.
- keepWordsbooleanKeep the words after the session (never the sound); erasable by session or metadata Default: false.
- toolslist of objectDefault: [].
- namestringrequiredPattern: ^[a-zA-Z_][a-zA-Z0-9_]{0,63}$.
- descriptionstringrequiredAt most 1000 characters.
- parametersobjectDefault: {"type":"object","properties":{}}.
- answeredBystringrequiredbrowser: the page answers inside the session; server: Rivier posts it, signed, to url One of: browser, server.
- urlstring (uri)At most 500 characters.
- timeoutMsintegerDefault: 5000. At least 500. At most 10000.
- namestringrequired
- maxMinutesintegerDefault: 15. At least 1. At most 60.
- originstringrequiredThe page's origin the browser connects from At most 200 characters.
- metadataobjectDefault: {}.
- idempotencyKeystringrequiredAt most 200 characters.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring