[{"data":1,"prerenderedAt":607},["ShallowReactive",2],{"navigation":3,"\u002Fdocs\u002Frealtime\u002Frealtime-translation":235,"surround-\u002Fdocs\u002Frealtime\u002Frealtime-translation":604},[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":57,"body":237,"description":595,"extension":596,"links":597,"meta":598,"navigation":600,"new":18,"path":58,"rawbody":601,"seo":602,"stem":59,"technology":597,"__hash__":603},"content\u002Fdocs\u002F2.realtime\u002F6.realtime-translation.md",{"type":238,"value":239,"toc":580},"minimark",[240,244,257,262,274,284,313,328,335,341,346,352,358,361,365,372,378,402,405,409,415,419,425,431,434,441,445,448,451,458,472,476,523,527,550,556,560],[241,242,243],"p",{},"Real-time translation: get translated text alongside transcription while speech is happening.",[245,246,249],"callout",{"color":247,"icon":248},"primary","i-lucide-info",[241,250,251,252,256],{},"Realtime translation is ",[253,254,255],"strong",{},"available"," on the public gateway. Declare the target languages once, before sending audio. The target set is fixed for the session; start a new session to change it.",[258,259,261],"h2",{"id":260},"configure-translation","Configure translation",[241,263,264,265,269,270,273],{},"Send ",[266,267,268],"code",{},"session.update"," right after ",[266,271,272],{},"session.created",", before the first audio frame:",[275,276,282],"pre",{"className":277,"code":279,"language":280,"meta":281},[278],"language-json","{\n  \"type\": \"session.update\",\n  \"language\": \"zh\",\n  \"target_languages\": [\"en\", \"ja\"]\n}\n","json","",[266,283,279],{"__ignoreMap":281},[285,286,287,298,304],"ul",{},[288,289,290,293,294,297],"li",{},[266,291,292],{},"language",": source language of the audio (optional; ",[266,295,296],{},"auto"," enables detection)",[288,299,300,303],{},[266,301,302],{},"target_languages",": array of BCP-47 target tags. Up to 8 languages per session.",[288,305,306,309,310],{},[266,307,308],{},"translate_to",": single-language shorthand, equivalent to ",[266,311,312],{},"target_languages: [value]",[241,314,315,316,319,320,323,324,327],{},"Both ",[266,317,318],{},"zh_CN"," and ",[266,321,322],{},"zh-CN"," are accepted and normalized. Invalid tags are dropped; if no valid tag remains the gateway returns ",[266,325,326],{},"invalid_target_languages",".",[241,329,330,331,334],{},"The gateway confirms the applied state with a ",[266,332,333],{},"session.updated"," event:",[275,336,339],{"className":337,"code":338,"language":280,"meta":281},[278],"{\n  \"type\": \"session.updated\",\n  \"request_id\": \"req_...\",\n  \"session_id\": \"sess_...\",\n  \"language\": \"zh\",\n  \"language_source\": \"client\",\n  \"target_languages\": [\"en\", \"ja\"],\n  \"features\": {\n    \"asr_correction\": false,\n    \"refinement\": false,\n    \"translation\": true\n  }\n}\n",[266,340,338],{"__ignoreMap":281},[342,343,345],"h3",{"id":344},"session-fixed-features","Session-fixed features",[241,347,348,349,351],{},"Translation is a session-level feature. The first accepted ",[266,350,302],{}," value is frozen before audio. If you send a different set later — or try to enable translation after audio has started — the gateway returns:",[275,353,356],{"className":354,"code":355,"language":280,"meta":281},[278],"{\n  \"type\": \"error\",\n  \"code\": \"session_features_locked\",\n  \"message\": \"Translation target languages are fixed for the session; start a new session to change them.\"\n}\n",[266,357,355],{"__ignoreMap":281},[241,359,360],{},"This keeps billing deterministic: every audio second in the session is billed with the same feature set.",[258,362,364],{"id":363},"translation-output","Translation output",[241,366,367,368,371],{},"Each target language produces its own ",[266,369,370],{},"live.translation.completed"," event. Events arrive independently, so a slow language never blocks the source transcript or another language:",[275,373,376],{"className":374,"code":375,"language":280,"meta":281},[278],"{\n  \"type\": \"live.translation.completed\",\n  \"request_id\": \"req_...\",\n  \"session_id\": \"sess_...\",\n  \"utterance_index\": 3,\n  \"language\": \"en\",\n  \"text\": \"We are shipping the new version next week.\",\n  \"source_text\": \"我们下周发布新版本\",\n  \"source_language\": \"zh\",\n  \"latency_ms\": 180\n}\n",[266,377,375],{"__ignoreMap":281},[285,379,380,386,392],{},[288,381,382,385],{},[266,383,384],{},"text",": translated text for this language",[288,387,388,391],{},[266,389,390],{},"source_text",": the raw ASR line the translation is based on",[288,393,394,397,398,401],{},[266,395,396],{},"utterance_index",": matches the ",[266,399,400],{},"conversation.item.input_audio_transcription.completed"," event for the same utterance",[241,403,404],{},"Translation runs in parallel with correction. It does not delay the source transcript event.",[258,406,408],{"id":407},"source-and-translated-text-correspondence","Source and translated text correspondence",[241,410,411,412,414],{},"Use ",[266,413,396],{}," to pair the source transcript with each translation. The source transcript arrives first; translations follow as they complete.",[258,416,418],{"id":417},"switching-languages","Switching languages",[241,420,421,422,424],{},"The source ",[266,423,292],{}," can change at any time during the session:",[275,426,429],{"className":427,"code":428,"language":280,"meta":281},[278],"{ \"type\": \"session.update\", \"language\": \"en\" }\n",[266,430,428],{"__ignoreMap":281},[241,432,433],{},"New utterances after the switch use the new source language. Transcripts already delivered keep their previous language.",[241,435,436,437,440],{},"The ",[253,438,439],{},"translation target set"," cannot change mid-session. Start a new session if the target languages change.",[258,442,444],{"id":443},"latency","Latency",[241,446,447],{},"Translation is an additional LLM call per utterance per target language. It runs off the transcript hot path, so the source transcript latency is unchanged. Typical translation latency is a few hundred milliseconds; it depends on audio length, context, and provider load.",[258,449,29],{"id":450},"pricing",[241,452,453,454,457],{},"Realtime translation is billed per target language × processed audio duration. See ",[455,456,29],"a",{"href":30}," for the current rate card.",[285,459,460,463,466],{},[288,461,462],{},"1 target language: base realtime rate + 1 × translation rate",[288,464,465],{},"2 target languages: base realtime rate + 2 × translation rate",[288,467,468,469,471],{},"Translation is only charged when ",[266,470,302],{}," was accepted for the session",[258,473,475],{"id":474},"multilingual-code-switching","Multilingual \u002F code-switching",[285,477,478,498,504],{},[288,479,480,483,484,486,487,490,491,494,495,497],{},[253,481,482],{},"Language code",": set a concrete ",[266,485,292],{}," such as ",[266,488,489],{},"en"," or ",[266,492,493],{},"zh"," when known; ",[266,496,296],{}," is also accepted and enables detection. A concrete code is more accurate.",[288,499,500,503],{},[253,501,502],{},"Mixed language",": upstream supports code-switching, accuracy depends on model and audio quality",[288,505,506,509,510,513,514,513,517,520,521],{},[253,507,508],{},"Chinese aliases",": ",[266,511,512],{},"zh-cn",", ",[266,515,516],{},"zh-tw",[266,518,519],{},"mandarin"," etc. are normalized to ",[266,522,493],{},[258,524,526],{"id":525},"ui-strategy","UI strategy",[528,529,530,536,541,547],"ol",{},[288,531,532,533,535],{},"Receive ",[266,534,400],{}," and display the source text",[288,537,532,538,540],{},[266,539,370],{}," for each target language",[288,542,543,544,546],{},"Match by ",[266,545,396],{}," and display each translation on its own line",[288,548,549],{},"No client-side replacement is needed; each utterance is independent",[241,551,552,553,555],{},"See ",[455,554,146],{"href":147}," for a detailed guide.",[258,557,559],{"id":558},"related","Related",[285,561,562,570,575],{},[288,563,564,566,567,569],{},[455,565,61],{"href":62}," — ",[266,568,268],{}," details",[288,571,572,574],{},[455,573,119],{"href":120}," — translation concepts",[288,576,577,579],{},[455,578,146],{"href":147}," — UI guide",{"title":281,"searchDepth":581,"depth":581,"links":582},2,[583,587,588,589,590,591,592,593,594],{"id":260,"depth":581,"text":261,"children":584},[585],{"id":344,"depth":586,"text":345},3,{"id":363,"depth":581,"text":364},{"id":407,"depth":581,"text":408},{"id":417,"depth":581,"text":418},{"id":443,"depth":581,"text":444},{"id":450,"depth":581,"text":29},{"id":474,"depth":581,"text":475},{"id":525,"depth":581,"text":526},{"id":558,"depth":581,"text":559},"Source and translated text correspondence, language config, switching, latency.","md",null,{"status":599},"preview",true,"---\ntitle: Realtime Translation\ndescription: Source and translated text correspondence, language config, switching, latency.\nstatus: preview\n---\nReal-time translation: get translated text alongside transcription while speech is happening.\n\n::callout{icon=\"i-lucide-info\" color=\"primary\"}\nRealtime translation is **available** on the public gateway. Declare the target languages once, before sending audio. The target set is fixed for the session; start a new session to change it.\n::\n\n## Configure translation\n\nSend `session.update` right after `session.created`, before the first audio frame:\n\n```json\n{\n  \"type\": \"session.update\",\n  \"language\": \"zh\",\n  \"target_languages\": [\"en\", \"ja\"]\n}\n```\n\n- `language`: source language of the audio (optional; `auto` enables detection)\n- `target_languages`: array of BCP-47 target tags. Up to 8 languages per session.\n- `translate_to`: single-language shorthand, equivalent to `target_languages: [value]`\n\nBoth `zh_CN` and `zh-CN` are accepted and normalized. Invalid tags are dropped; if no valid tag remains the gateway returns `invalid_target_languages`.\n\nThe gateway confirms the applied state with a `session.updated` event:\n\n```json\n{\n  \"type\": \"session.updated\",\n  \"request_id\": \"req_...\",\n  \"session_id\": \"sess_...\",\n  \"language\": \"zh\",\n  \"language_source\": \"client\",\n  \"target_languages\": [\"en\", \"ja\"],\n  \"features\": {\n    \"asr_correction\": false,\n    \"refinement\": false,\n    \"translation\": true\n  }\n}\n```\n\n### Session-fixed features\n\nTranslation is a session-level feature. The first accepted `target_languages` value is frozen before audio. If you send a different set later — or try to enable translation after audio has started — the gateway returns:\n\n```json\n{\n  \"type\": \"error\",\n  \"code\": \"session_features_locked\",\n  \"message\": \"Translation target languages are fixed for the session; start a new session to change them.\"\n}\n```\n\nThis keeps billing deterministic: every audio second in the session is billed with the same feature set.\n\n## Translation output\n\nEach target language produces its own `live.translation.completed` event. Events arrive independently, so a slow language never blocks the source transcript or another language:\n\n```json\n{\n  \"type\": \"live.translation.completed\",\n  \"request_id\": \"req_...\",\n  \"session_id\": \"sess_...\",\n  \"utterance_index\": 3,\n  \"language\": \"en\",\n  \"text\": \"We are shipping the new version next week.\",\n  \"source_text\": \"我们下周发布新版本\",\n  \"source_language\": \"zh\",\n  \"latency_ms\": 180\n}\n```\n\n- `text`: translated text for this language\n- `source_text`: the raw ASR line the translation is based on\n- `utterance_index`: matches the `conversation.item.input_audio_transcription.completed` event for the same utterance\n\nTranslation runs in parallel with correction. It does not delay the source transcript event.\n\n## Source and translated text correspondence\n\nUse `utterance_index` to pair the source transcript with each translation. The source transcript arrives first; translations follow as they complete.\n\n## Switching languages\n\nThe source `language` can change at any time during the session:\n\n```json\n{ \"type\": \"session.update\", \"language\": \"en\" }\n```\n\nNew utterances after the switch use the new source language. Transcripts already delivered keep their previous language.\n\nThe **translation target set** cannot change mid-session. Start a new session if the target languages change.\n\n## Latency\n\nTranslation is an additional LLM call per utterance per target language. It runs off the transcript hot path, so the source transcript latency is unchanged. Typical translation latency is a few hundred milliseconds; it depends on audio length, context, and provider load.\n\n## Pricing\n\nRealtime translation is billed per target language × processed audio duration. See [Pricing](\u002Fdocs\u002Fstart\u002Fpricing) for the current rate card.\n\n- 1 target language: base realtime rate + 1 × translation rate\n- 2 target languages: base realtime rate + 2 × translation rate\n- Translation is only charged when `target_languages` was accepted for the session\n\n## Multilingual \u002F code-switching\n\n- **Language code**: set a concrete `language` such as `en` or `zh` when known; `auto` is also accepted and enables detection. A concrete code is more accurate.\n- **Mixed language**: upstream supports code-switching, accuracy depends on model and audio quality\n- **Chinese aliases**: `zh-cn`, `zh-tw`, `mandarin` etc. are normalized to `zh`\n\n## UI strategy\n\n1. Receive `conversation.item.input_audio_transcription.completed` and display the source text\n2. Receive `live.translation.completed` for each target language\n3. Match by `utterance_index` and display each translation on its own line\n4. No client-side replacement is needed; each utterance is independent\n\nSee [Build Live Translation](\u002Fdocs\u002Fguides\u002Flive-translation) for a detailed guide.\n\n## Related\n\n- [Session Configuration](\u002Fdocs\u002Frealtime\u002Fsession-configuration) — `session.update` details\n- [Live Translation](\u002Fdocs\u002Fconcepts\u002Flive-translation) — translation concepts\n- [Build Live Translation](\u002Fdocs\u002Fguides\u002Flive-translation) — UI guide\n",{"title":57,"description":595},"ys3fffDRujqb_AK65iR4otfII1YrpQGpw_AEwlBfpyY",[605,606],{"title":53,"path":54,"stem":55,"children":-1},{"title":61,"path":62,"stem":63,"children":-1},1795064384698]