[{"data":1,"prerenderedAt":760},["ShallowReactive",2],{"navigation":3,"\u002Fdocs\u002Fapi-reference\u002Fclient-messages":235,"surround-\u002Fdocs\u002Fapi-reference\u002Fclient-messages":757},[4],{"title":5,"path":6,"stem":7,"children":8,"page":18},"Docs","\u002Fdocs","docs",[9,33,68,95,130,161,208],{"title":10,"path":11,"stem":12,"children":13,"page":18,"type":32},"Start","\u002Fdocs\u002Fstart","docs\u002F1.start",[14,20,24,28],{"title":15,"path":16,"stem":17,"new":18,"type":19,"children":-1},"Get started with Lanson Live API","\u002Fdocs\u002Fstart\u002Fquickstart","docs\u002F1.start\u002F2.quickstart",false,"page",{"title":21,"path":22,"stem":23,"new":18,"type":19,"children":-1},"Authentication","\u002Fdocs\u002Fstart\u002Fauthentication","docs\u002F1.start\u002F3.authentication",{"title":25,"path":26,"stem":27,"new":18,"type":19,"children":-1},"Choose an API","\u002Fdocs\u002Fstart\u002Fchoose-an-api","docs\u002F1.start\u002F5.choose-an-api",{"title":29,"path":30,"stem":31,"new":18,"type":19,"children":-1},"Pricing","\u002Fdocs\u002Fstart\u002Fpricing","docs\u002F1.start\u002F6.pricing","group",{"title":34,"path":35,"stem":36,"children":37,"new":18,"type":32},"Realtime","\u002Fdocs\u002Frealtime","docs\u002F2.realtime\u002F1.index",[38,40,44,48,52,56,60,64],{"title":39,"path":35,"stem":36,"new":18,"type":19,"children":-1},"Realtime Overview",{"title":41,"path":42,"stem":43,"new":18,"type":19,"children":-1},"Realtime Quickstart","\u002Fdocs\u002Frealtime\u002Fquickstart","docs\u002F2.realtime\u002F2.quickstart",{"title":45,"path":46,"stem":47,"new":18,"type":19,"children":-1},"Connection Lifecycle","\u002Fdocs\u002Frealtime\u002Fconnection-lifecycle","docs\u002F2.realtime\u002F3.connection-lifecycle",{"title":49,"path":50,"stem":51,"new":18,"type":19,"children":-1},"Audio Input","\u002Fdocs\u002Frealtime\u002Faudio-input","docs\u002F2.realtime\u002F4.audio-input",{"title":53,"path":54,"stem":55,"new":18,"type":19,"children":-1},"Transcript Lifecycle","\u002Fdocs\u002Frealtime\u002Ftranscript-lifecycle","docs\u002F2.realtime\u002F5.transcript-lifecycle",{"title":57,"path":58,"stem":59,"new":18,"type":19,"children":-1},"Realtime Translation","\u002Fdocs\u002Frealtime\u002Frealtime-translation","docs\u002F2.realtime\u002F6.realtime-translation",{"title":61,"path":62,"stem":63,"new":18,"type":19,"children":-1},"Session Configuration","\u002Fdocs\u002Frealtime\u002Fsession-configuration","docs\u002F2.realtime\u002F7.session-configuration",{"title":65,"path":66,"stem":67,"new":18,"type":19,"children":-1},"Handling Interruptions & Silence","\u002Fdocs\u002Frealtime\u002Finterruptions-silence","docs\u002F2.realtime\u002F8.interruptions-silence",{"title":69,"path":70,"stem":71,"children":72,"new":18,"type":32},"Recorded","\u002Fdocs\u002Frecorded","docs\u002F3.recorded\u002F1.index",[73,75,79,83,87,91],{"title":74,"path":70,"stem":71,"new":18,"type":19,"children":-1},"Recorded Overview",{"title":76,"path":77,"stem":78,"new":18,"type":19,"children":-1},"Transcribe Audio","\u002Fdocs\u002Frecorded\u002Ftranscribe-audio","docs\u002F3.recorded\u002F2.transcribe-audio",{"title":80,"path":81,"stem":82,"new":18,"type":19,"children":-1},"Timestamps & Speakers","\u002Fdocs\u002Frecorded\u002Ftimestamps-speakers","docs\u002F3.recorded\u002F3.timestamps-speakers",{"title":84,"path":85,"stem":86,"new":18,"type":19,"children":-1},"Subtitles","\u002Fdocs\u002Frecorded\u002Fsubtitles","docs\u002F3.recorded\u002F4.subtitles",{"title":88,"path":89,"stem":90,"new":18,"type":19,"children":-1},"Recorded Translation","\u002Fdocs\u002Frecorded\u002Ftranslation","docs\u002F3.recorded\u002F5.translation",{"title":92,"path":93,"stem":94,"new":18,"type":19,"children":-1},"Structured Results","\u002Fdocs\u002Frecorded\u002Fstructured-results","docs\u002F3.recorded\u002F6.structured-results",{"title":96,"path":97,"stem":98,"children":99,"new":18,"type":32},"Concepts","\u002Fdocs\u002Fconcepts","docs\u002F4.concepts\u002F1.index",[100,102,106,110,114,118,122,126],{"title":101,"path":97,"stem":98,"new":18,"type":19,"children":-1},"Voice Context Layer",{"title":103,"path":104,"stem":105,"new":18,"type":19,"children":-1},"Stable vs. Partial Text","\u002Fdocs\u002Fconcepts\u002Fstable-vs-partial-text","docs\u002F4.concepts\u002F2.stable-vs-partial-text",{"title":107,"path":108,"stem":109,"new":18,"type":19,"children":-1},"StableStream™","\u002Fdocs\u002Fconcepts\u002Fstablestream","docs\u002F4.concepts\u002F3.stablestream",{"title":111,"path":112,"stem":113,"new":18,"type":19,"children":-1},"Context-Aware Processing","\u002Fdocs\u002Fconcepts\u002Fcontext-aware-processing","docs\u002F4.concepts\u002F4.context-aware-processing",{"title":115,"path":116,"stem":117,"new":18,"type":19,"children":-1},"Understanding Latency","\u002Fdocs\u002Fconcepts\u002Flatency","docs\u002F4.concepts\u002F5.latency",{"title":119,"path":120,"stem":121,"new":18,"type":19,"children":-1},"Live Translation","\u002Fdocs\u002Fconcepts\u002Flive-translation","docs\u002F4.concepts\u002F6.live-translation",{"title":123,"path":124,"stem":125,"new":18,"type":19,"children":-1},"Trinity Engine","\u002Fdocs\u002Fconcepts\u002Ftrinity-engine","docs\u002F4.concepts\u002F7.trinity-engine",{"title":127,"path":128,"stem":129,"new":18,"type":19,"children":-1},"LiveFinal™","\u002Fdocs\u002Fconcepts\u002Flivefinal","docs\u002F4.concepts\u002F8.livefinal",{"title":131,"path":132,"stem":133,"children":134,"new":18,"type":32},"Guides","\u002Fdocs\u002Fguides","docs\u002F5.guides\u002F1.index",[135,137,141,145,149,153,157],{"title":136,"path":132,"stem":133,"new":18,"type":19,"children":-1},"Browser Live Captions",{"title":138,"path":139,"stem":140,"new":18,"type":19,"children":-1},"Server-side Streaming","\u002Fdocs\u002Fguides\u002Fserver-side-streaming","docs\u002F5.guides\u002F2.server-side-streaming",{"title":142,"path":143,"stem":144,"new":18,"type":19,"children":-1},"Build a Stable Caption UI","\u002Fdocs\u002Fguides\u002Fstable-caption-ui","docs\u002F5.guides\u002F3.stable-caption-ui",{"title":146,"path":147,"stem":148,"new":18,"type":19,"children":-1},"Build Live Translation","\u002Fdocs\u002Fguides\u002Flive-translation","docs\u002F5.guides\u002F4.live-translation",{"title":150,"path":151,"stem":152,"new":18,"type":19,"children":-1},"Save a Transcript","\u002Fdocs\u002Fguides\u002Fsave-transcript","docs\u002F5.guides\u002F5.save-transcript",{"title":154,"path":155,"stem":156,"new":18,"type":19,"children":-1},"Reconnect a Live Session","\u002Fdocs\u002Fguides\u002Freconnection","docs\u002F5.guides\u002F6.reconnection",{"title":158,"path":159,"stem":160,"new":18,"type":19,"children":-1},"Client-VAD speech segments","\u002Fdocs\u002Fguides\u002Fclient-vad-segments","docs\u002F5.guides\u002F7.client-vad-segments",{"title":162,"path":163,"stem":164,"children":165,"new":18,"type":32},"API Reference","\u002Fdocs\u002Fapi-reference","docs\u002F6.api-reference\u002F1.index",[166,168,172,176,180,184,188,192,196,200,204],{"title":167,"path":163,"stem":164,"new":18,"type":19,"children":-1},"API Reference Overview",{"title":169,"path":170,"stem":171,"new":18,"type":19,"children":-1},"Realtime API","\u002Fdocs\u002Fapi-reference\u002Frealtime-api","docs\u002F6.api-reference\u002F2.realtime-api",{"title":173,"path":174,"stem":175,"new":18,"type":19,"children":-1},"Client Messages","\u002Fdocs\u002Fapi-reference\u002Fclient-messages","docs\u002F6.api-reference\u002F3.client-messages",{"title":177,"path":178,"stem":179,"new":18,"type":19,"children":-1},"Server Events","\u002Fdocs\u002Fapi-reference\u002Fserver-events","docs\u002F6.api-reference\u002F4.server-events",{"title":181,"path":182,"stem":183,"new":18,"type":19,"children":-1},"Segment Transcription API","\u002Fdocs\u002Fapi-reference\u002Fsegment-transcription","docs\u002F6.api-reference\u002F5.segment-transcription",{"title":185,"path":186,"stem":187,"new":18,"type":19,"children":-1},"Batch Transcription Jobs","\u002Fdocs\u002Fapi-reference\u002Fbatch-jobs","docs\u002F6.api-reference\u002F6.batch-jobs",{"title":189,"path":190,"stem":191,"new":18,"type":19,"children":-1},"Languages & Models","\u002Fdocs\u002Fapi-reference\u002Flanguages","docs\u002F6.api-reference\u002F7.languages",{"title":193,"path":194,"stem":195,"new":18,"type":19,"children":-1},"Errors","\u002Fdocs\u002Fapi-reference\u002Ferrors","docs\u002F6.api-reference\u002F8.errors",{"title":197,"path":198,"stem":199,"new":18,"type":19,"children":-1},"Rate Limits","\u002Fdocs\u002Fapi-reference\u002Frate-limits","docs\u002F6.api-reference\u002F9.rate-limits",{"title":201,"path":202,"stem":203,"new":18,"type":19,"children":-1},"Admin API","\u002Fdocs\u002Fapi-reference\u002Fadmin","docs\u002F6.api-reference\u002F10.admin",{"title":205,"path":206,"stem":207,"new":18,"type":19,"children":-1},"Language Detection","\u002Fdocs\u002Fapi-reference\u002Flanguage-detection","docs\u002F6.api-reference\u002F11.language-detection",{"title":209,"path":210,"stem":211,"children":212,"new":18,"type":32},"Production","\u002Fdocs\u002Fproduction","docs\u002F7.production\u002F1.index",[213,215,219,223,227,231],{"title":214,"path":210,"stem":211,"new":18,"type":19,"children":-1},"Production Checklist",{"title":216,"path":217,"stem":218,"new":18,"type":19,"children":-1},"Reconnection & Retries","\u002Fdocs\u002Fproduction\u002Freconnection-retries","docs\u002F7.production\u002F2.reconnection-retries",{"title":220,"path":221,"stem":222,"new":18,"type":19,"children":-1},"Latency Best Practices","\u002Fdocs\u002Fproduction\u002Flatency-best-practices","docs\u002F7.production\u002F3.latency-best-practices",{"title":224,"path":225,"stem":226,"new":18,"type":19,"children":-1},"Security & Privacy","\u002Fdocs\u002Fproduction\u002Fsecurity-privacy","docs\u002F7.production\u002F4.security-privacy",{"title":228,"path":229,"stem":230,"new":18,"type":19,"children":-1},"Data Retention","\u002Fdocs\u002Fproduction\u002Fdata-retention","docs\u002F7.production\u002F5.data-retention",{"title":232,"path":233,"stem":234,"new":18,"type":19,"children":-1},"Changelog","\u002Fdocs\u002Fproduction\u002Fchangelog","docs\u002F7.production\u002F6.changelog",{"id":236,"title":173,"body":237,"description":748,"extension":749,"links":750,"meta":751,"navigation":753,"new":18,"path":174,"rawbody":754,"seo":755,"stem":175,"technology":750,"__hash__":756},"content\u002Fdocs\u002F6.api-reference\u002F3.client-messages.md",{"type":238,"value":239,"toc":734},"minimark",[240,244,249,341,344,347,357,409,414,427,431,446,449,452,458,464,467,470,476,481,581,595,602,606,632,649,664,667,713,717],[241,242,243],"p",{},"Messages the client sends over the WebSocket connection.",[245,246,248],"h2",{"id":247},"overview","Overview",[250,251,252,268],"table",{},[253,254,255],"thead",{},[256,257,258,262,265],"tr",{},[259,260,261],"th",{},"type",[259,263,264],{},"Transport",[259,266,267],{},"Purpose",[269,270,271,291,303,315],"tbody",{},[256,272,273,280,283],{},[274,275,276],"td",{},[277,278,279],"code",{},"input_audio_buffer.append",[274,281,282],{},"Text frame (JSON)",[274,284,285,286,290],{},"Send base64-encoded PCM audio (",[287,288,289],"strong",{},"supported",")",[256,292,293,298,300],{},[274,294,295],{},[277,296,297],{},"input_audio_buffer.flush",[274,299,282],{},[274,301,302],{},"Accepted compatibility message; no guaranteed segment finalization",[256,304,305,310,312],{},[274,306,307],{},[277,308,309],{},"flush",[274,311,282],{},[274,313,314],{},"Accepted alias; same limitation",[256,316,317,322,324],{},[274,318,319],{},[277,320,321],{},"session.update",[274,323,282],{},[274,325,326,327,330,331,330,334,337,338],{},"Set ",[277,328,329],{},"language",", ",[277,332,333],{},"refinement",[277,335,336],{},"target_languages",", or ",[277,339,340],{},"translate_to",[245,342,279],{"id":343},"input_audio_bufferappend",[241,345,346],{},"Send base64-encoded PCM16LE audio data.",[348,349,355],"pre",{"className":350,"code":352,"language":353,"meta":354},[351],"language-json","{\n  \"type\": \"input_audio_buffer.append\",\n  \"audio\": \"\u003CPCM16LE base64>\"\n}\n","json","",[277,356,352],{"__ignoreMap":354},[250,358,359,375],{},[253,360,361],{},[256,362,363,366,369,372],{},[259,364,365],{},"Field",[259,367,368],{},"Type",[259,370,371],{},"Required",[259,373,374],{},"Description",[269,376,377,395],{},[256,378,379,383,386,389],{},[274,380,381],{},[277,382,261],{},[274,384,385],{},"string",[274,387,388],{},"yes",[274,390,391,392],{},"Must be ",[277,393,394],{},"\"input_audio_buffer.append\"",[256,396,397,402,404,406],{},[274,398,399],{},[277,400,401],{},"audio",[274,403,385],{},[274,405,388],{},[274,407,408],{},"Base64-encoded PCM16LE audio data",[241,410,411,413],{},[287,412,193],{},":",[415,416,417],"ul",{},[418,419,420,423,424,426],"li",{},[277,421,422],{},"invalid_audio",": ",[277,425,401],{}," is empty or not valid base64",[245,428,430],{"id":429},"binary-audio-frames-not-supported-today","Binary audio frames — not supported today",[432,433,436],"callout",{"color":434,"icon":435},"amber","i-lucide-triangle-alert",[241,437,438,439,442,443,445],{},"The public gateway currently accepts binary WebSocket frames but ",[287,440,441],{},"does not transcribe them",". Only base64 JSON ",[277,444,279],{}," frames produce transcription events today. Do not use binary frames in production until this notice is removed.",[245,447,297],{"id":448},"input_audio_bufferflush",[241,450,451],{},"The message is accepted for compatibility, but the current public Realtime session handler does not implement a manual-flush action. Do not rely on it to end an utterance, deliver pending results, or produce a full-session final transcript.",[348,453,456],{"className":454,"code":455,"language":353,"meta":354},[351],"{ \"type\": \"input_audio_buffer.flush\" }\n",[277,457,455],{"__ignoreMap":354},[241,459,460,463],{},[277,461,462],{},"\"flush\""," is an accepted alias with the same limitation. Continue streaming audio, including natural silence, for server-side segmentation. Keep the socket open while expected utterance results are in flight.",[245,465,321],{"id":466},"sessionupdate",[241,468,469],{},"Optionally set the audio language before sending audio. Can also be sent at any time after connection to switch language.",[348,471,474],{"className":472,"code":473,"language":353,"meta":354},[351],"{\n  \"type\": \"session.update\",\n  \"language\": \"zh\"\n}\n",[277,475,473],{"__ignoreMap":354},[477,478,480],"h3",{"id":479},"supported-fields","Supported fields",[250,482,483,493],{},[253,484,485],{},[256,486,487,489,491],{},[259,488,365],{},[259,490,368],{},[259,492,374],{},[269,494,495,521,553,567],{},[256,496,497,501,504],{},[274,498,499],{},[277,500,329],{},[274,502,503],{},"string | null",[274,505,506,507,330,510,513,514,330,517,520],{},"Audio language. A concrete code (e.g. ",[277,508,509],{},"zh",[277,511,512],{},"en",") is recommended for accuracy; ",[277,515,516],{},"\"auto\"",[277,518,519],{},"null",", or omitting it enables detection.",[256,522,523,527,530],{},[274,524,525],{},[277,526,333],{},[274,528,529],{},"boolean | string",[274,531,532,533,536,537,540,541,544,545,548,549,552],{},"Opt in to per-utterance AI refinement before delivery. ",[277,534,535],{},"true"," selects the default ",[277,538,539],{},"lite"," profile; ",[277,542,543],{},"\"lite\""," \u002F ",[277,546,547],{},"\"pro\""," select a profile explicitly; ",[277,550,551],{},"false"," disables it. Off by default and fixed before audio. Lite is included in the base transcription price; Pro is billed as the realtime refinement add-on. Requires gateway availability.",[256,554,555,559,564],{},[274,556,557],{},[277,558,336],{},[274,560,385,561],{},[562,563],"span",{},[274,565,566],{},"Translation targets (BCP-47, max 8). Fixed for the session; send before audio.",[256,568,569,573,575],{},[274,570,571],{},[277,572,340],{},[274,574,385],{},[274,576,577,578,580],{},"Single-language shorthand for ",[277,579,336],{},". Fixed for the session.",[241,582,583,585,586,544,588,590,591,594],{},[277,584,329],{}," can change at any time. ",[277,587,336],{},[277,589,340],{}," are session-fixed: the first accepted value wins, and later changes return ",[277,592,593],{},"session_features_locked",".",[241,596,597,598,601],{},"The gateway confirms the applied state with a ",[277,599,600],{},"session.updated"," event.",[477,603,605],{"id":604},"switching-language-mid-session","Switching language mid-session",[415,607,608,611,624,629],{},[418,609,610],{},"A concrete code always wins: the session uses it immediately and does not run detection.",[418,612,613,614,616,617,619,620,623],{},"Sending ",[277,615,516],{}," (or ",[277,618,519],{},") ",[287,621,622],{},"resets detection state and re-triggers detection"," on subsequent speech. Use this when the language changes or becomes unknown.",[418,625,613,626,628],{},[277,627,516],{}," again while already in auto mode also resets and re-detects.",[418,630,631],{},"Transcripts already delivered keep their language; the new setting applies to speech transcribed after the update.",[432,633,636],{"color":634,"icon":635},"primary","i-lucide-info",[241,637,638,639,645,646,648],{},"You can detect the language yourself with ",[640,641,642],"a",{"href":206},[277,643,644],{},"POST \u002Fv1\u002Faudio\u002Flanguage-detection"," and send the result explicitly, or let the session detect it via ",[277,647,516],{},". An explicit language is more accurate and avoids detection latency.",[432,650,651],{"color":434,"icon":435},[241,652,653,654,330,657,330,660,663],{},"Tenant isolation\nIdentity and credential fields (",[277,655,656],{},"request_id",[277,658,659],{},"session_id",[277,661,662],{},"user_id",") are injected by the gateway and cannot be overridden by the client.",[477,665,193],{"id":666},"errors",[415,668,669,675,683,688,696,702,708],{},[418,670,671,674],{},[277,672,673],{},"bad_json",": JSON parse failure",[418,676,677,680,681],{},[277,678,679],{},"bad_message",": Not a JSON object or unsupported ",[277,682,261],{},[418,684,685,687],{},[277,686,422],{},": Invalid audio data",[418,689,690,693,694],{},[277,691,692],{},"invalid_target_languages",": No valid BCP-47 tag in ",[277,695,336],{},[418,697,698,701],{},[277,699,700],{},"translation_unavailable",": Translation is not configured on this gateway",[418,703,704,707],{},[277,705,706],{},"refinement_unavailable",": Correction is not configured on this gateway",[418,709,710,712],{},[277,711,593],{},": Tried to change translation targets after the session feature set was frozen",[245,714,716],{"id":715},"related","Related",[415,718,719,724,729],{},[418,720,721,723],{},[640,722,177],{"href":178}," — server-pushed events",[418,725,726,728],{},[640,727,61],{"href":62}," — session config details",[418,730,731,733],{},[640,732,49],{"href":50}," — audio format reference",{"title":354,"searchDepth":735,"depth":735,"links":736},2,[737,738,739,740,741,747],{"id":247,"depth":735,"text":248},{"id":343,"depth":735,"text":279},{"id":429,"depth":735,"text":430},{"id":448,"depth":735,"text":297},{"id":466,"depth":735,"text":321,"children":742},[743,745,746],{"id":479,"depth":744,"text":480},3,{"id":604,"depth":744,"text":605},{"id":666,"depth":744,"text":193},{"id":715,"depth":735,"text":716},"Client messages for the Lanson Live API Realtime connection.","md",null,{"updated":752},"2026-11-08",true,"---\ntitle: Client Messages\ndescription: Client messages for the Lanson Live API Realtime connection.\nupdated: 2026-11-08\n---\nMessages the client sends over the WebSocket connection.\n\n## Overview\n\n| type | Transport | Purpose |\n|---|---|---|\n| `input_audio_buffer.append` | Text frame (JSON) | Send base64-encoded PCM audio (**supported**) |\n| `input_audio_buffer.flush` | Text frame (JSON) | Accepted compatibility message; no guaranteed segment finalization |\n| `flush` | Text frame (JSON) | Accepted alias; same limitation |\n| `session.update` | Text frame (JSON) | Set `language`, `refinement`, `target_languages`, or `translate_to` |\n\n## input_audio_buffer.append\n\nSend base64-encoded PCM16LE audio data.\n\n```json\n{\n  \"type\": \"input_audio_buffer.append\",\n  \"audio\": \"\u003CPCM16LE base64>\"\n}\n```\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `type` | string | yes | Must be `\"input_audio_buffer.append\"` |\n| `audio` | string | yes | Base64-encoded PCM16LE audio data |\n\n**Errors**:\n- `invalid_audio`: `audio` is empty or not valid base64\n\n## Binary audio frames — not supported today\n\n::callout{icon=\"i-lucide-triangle-alert\" color=\"amber\"}\nThe public gateway currently accepts binary WebSocket frames but **does not transcribe them**. Only base64 JSON `input_audio_buffer.append` frames produce transcription events today. Do not use binary frames in production until this notice is removed.\n::\n\n## input_audio_buffer.flush\n\nThe message is accepted for compatibility, but the current public Realtime session handler does not implement a manual-flush action. Do not rely on it to end an utterance, deliver pending results, or produce a full-session final transcript.\n\n```json\n{ \"type\": \"input_audio_buffer.flush\" }\n```\n\n`\"flush\"` is an accepted alias with the same limitation. Continue streaming audio, including natural silence, for server-side segmentation. Keep the socket open while expected utterance results are in flight.\n\n## session.update\n\nOptionally set the audio language before sending audio. Can also be sent at any time after connection to switch language.\n\n```json\n{\n  \"type\": \"session.update\",\n  \"language\": \"zh\"\n}\n```\n\n### Supported fields\n\n| Field | Type | Description |\n|---|---|---|\n| `language` | string \\| null | Audio language. A concrete code (e.g. `zh`, `en`) is recommended for accuracy; `\"auto\"`, `null`, or omitting it enables detection. |\n| `refinement` | boolean \\| string | Opt in to per-utterance AI refinement before delivery. `true` selects the default `lite` profile; `\"lite\"` \u002F `\"pro\"` select a profile explicitly; `false` disables it. Off by default and fixed before audio. Lite is included in the base transcription price; Pro is billed as the realtime refinement add-on. Requires gateway availability. |\n| `target_languages` | string[] | Translation targets (BCP-47, max 8). Fixed for the session; send before audio. |\n| `translate_to` | string | Single-language shorthand for `target_languages`. Fixed for the session. |\n\n`language` can change at any time. `target_languages` \u002F `translate_to` are session-fixed: the first accepted value wins, and later changes return `session_features_locked`.\n\nThe gateway confirms the applied state with a `session.updated` event.\n\n### Switching language mid-session\n\n- A concrete code always wins: the session uses it immediately and does not run detection.\n- Sending `\"auto\"` (or `null`) **resets detection state and re-triggers detection** on subsequent speech. Use this when the language changes or becomes unknown.\n- Sending `\"auto\"` again while already in auto mode also resets and re-detects.\n- Transcripts already delivered keep their language; the new setting applies to speech transcribed after the update.\n\n::callout{icon=\"i-lucide-info\" color=\"primary\"}\nYou can detect the language yourself with [`POST \u002Fv1\u002Faudio\u002Flanguage-detection`](\u002Fdocs\u002Fapi-reference\u002Flanguage-detection) and send the result explicitly, or let the session detect it via `\"auto\"`. An explicit language is more accurate and avoids detection latency.\n::\n\n::callout{icon=\"i-lucide-triangle-alert\" color=\"amber\"}\nTenant isolation\nIdentity and credential fields (`request_id`, `session_id`, `user_id`) are injected by the gateway and cannot be overridden by the client.\n::\n\n### Errors\n\n- `bad_json`: JSON parse failure\n- `bad_message`: Not a JSON object or unsupported `type`\n- `invalid_audio`: Invalid audio data\n- `invalid_target_languages`: No valid BCP-47 tag in `target_languages`\n- `translation_unavailable`: Translation is not configured on this gateway\n- `refinement_unavailable`: Correction is not configured on this gateway\n- `session_features_locked`: Tried to change translation targets after the session feature set was frozen\n\n## Related\n\n- [Server Events](\u002Fdocs\u002Fapi-reference\u002Fserver-events) — server-pushed events\n- [Session Configuration](\u002Fdocs\u002Frealtime\u002Fsession-configuration) — session config details\n- [Audio Input](\u002Fdocs\u002Frealtime\u002Faudio-input) — audio format reference\n",{"title":173,"description":748},"SZ1FnklnIC-6HnPqIVxN9XtEbtFHflhIJog9nQyTgaE",[758,759],{"title":169,"path":170,"stem":171,"children":-1},{"title":177,"path":178,"stem":179,"children":-1},1795064386521]