[{"data":1,"prerenderedAt":560},["ShallowReactive",2],{"navigation":3,"\u002Fdocs\u002Frealtime":235,"surround-\u002Fdocs\u002Frealtime":557},[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":39,"body":237,"description":547,"extension":548,"links":549,"meta":550,"navigation":553,"new":18,"path":35,"rawbody":554,"seo":555,"stem":36,"technology":549,"__hash__":556},"content\u002Fdocs\u002F2.realtime\u002F1.index.md",{"type":238,"value":239,"toc":537},"minimark",[240,260,267,272,300,304,318,322,325,334,337,373,384,388,395,399,516,520],[241,242,243,246,247,250,251,255,256,259],"p",{},[244,245,34],"strong",{}," is the live-streaming path of ",[244,248,249],{},"Lanson Live API",", LansonAI's Voice Context Layer for Live Speech. Use ",[252,253,254],"a",{"href":182},"Segment"," for client-cut clips or ",[252,257,258],{"href":70},"Batch"," for recordings.",[241,261,262,263,266],{},"You send PCM16LE audio over WebSocket. Trinity Engine coordinates processing, and the API delivers stable, readable text through StableStream™ behavior. LiveFinal™ describes correction and segment finalization; see ",[252,264,265],{"href":128},"its current event boundaries",".",[268,269,271],"h2",{"id":270},"what-it-does","What it does",[273,274,275,282,288,294],"ul",{},[276,277,278,281],"li",{},[244,279,280],{},"Live captions",": text appears while the person is still speaking",[276,283,284,287],{},[244,285,286],{},"Real-time translation",": source and translated text together, per target language",[276,289,290,293],{},[244,291,292],{},"Multi-language",": Whisper-compatible language support",[276,295,296,299],{},[244,297,298],{},"Server-side VAD",": automatic speech segment detection, no client-side splitting needed",[268,301,303],{"id":302},"input","Input",[273,305,306,312,315],{},[276,307,308,309],{},"Audio format: ",[244,310,311],{},"PCM16LE \u002F 16kHz \u002F mono",[276,313,314],{},"Transport: JSON text frames (base64) — the supported transport today",[276,316,317],{},"Frame size: recommended 100ms frames (~3200 bytes), max 1 MiB",[268,319,321],{"id":320},"output","Output",[241,323,324],{},"Server pushes JSON events. The primary output is:",[273,326,327],{},[276,328,329,333],{},[330,331,332],"code",{},"conversation.item.input_audio_transcription.completed"," — a speech segment has been transcribed",[241,335,336],{},"Supporting events:",[273,338,339,349,355,361,367],{},[276,340,341,344,345,348],{},[330,342,343],{},"input_audio_buffer.speech_started"," \u002F ",[330,346,347],{},"speech_stopped"," — speech segment boundaries",[276,350,351,354],{},[330,352,353],{},"session.created"," — connection established",[276,356,357,360],{},[330,358,359],{},"session.updated"," — confirmed language and feature settings",[276,362,363,366],{},[330,364,365],{},"live.translation.completed"," — a target-language result when translation is enabled",[276,368,369,372],{},[330,370,371],{},"error"," — error events",[241,374,375,376,379,380,383],{},"The current public endpoint emits one completed result per successfully processed utterance, not partial-text revisions. Optional refinement runs before that result is delivered. It is off by default; the default ",[330,377,378],{},"lite"," profile is included in the base transcription price, and ",[330,381,382],{},"pro"," is billed as the realtime refinement add-on. Confirm feature availability and configure it before sending audio.",[268,385,387],{"id":386},"architecture","Architecture",[241,389,390],{},[391,392],"img",{"alt":393,"src":394},"Realtime API Architecture","\u002Fimages\u002Fdocs\u002Frealtime-architecture-flow.png",[268,396,398],{"id":397},"vs-segment-and-batch","vs. Segment and Batch",[400,401,402,421],"table",{},[403,404,405],"thead",{},[406,407,408,412,415,418],"tr",{},[409,410,411],"th",{},"Dimension",[409,413,414],{},"Realtime WS",[409,416,417],{},"Segment HTTP",[409,419,420],{},"Batch jobs",[422,423,424,439,453,469,482,502],"tbody",{},[406,425,426,430,433,436],{},[427,428,429],"td",{},"Transport",[427,431,432],{},"WebSocket",[427,434,435],{},"HTTP sync",[427,437,438],{},"HTTP async",[406,440,441,444,447,450],{},[427,442,443],{},"Latency",[427,445,446],{},"Milliseconds",[427,448,449],{},"~≤2.4s",[427,451,452],{},"Minutes",[406,454,455,457,460,466],{},[427,456,303],{},[427,458,459],{},"PCM16LE stream",[427,461,462,463],{},"Multipart ",[330,464,465],{},"file",[427,467,468],{},"Audio URL",[406,470,471,473,476,479],{},[427,472,321],{},[427,474,475],{},"Event stream",[427,477,478],{},"Transcript JSON",[427,480,481],{},"Complete job JSON",[406,483,484,487,492,497],{},[427,485,486],{},"VAD",[427,488,489],{},[244,490,491],{},"Server",[427,493,494],{},[244,495,496],{},"Client",[427,498,499,501],{},[244,500,491],{}," (slice)",[406,503,504,507,510,513],{},[427,505,506],{},"Best for",[427,508,509],{},"Live stream",[427,511,512],{},"Pre-cut utterances",[427,514,515],{},"Long files",[268,517,519],{"id":518},"next-steps","Next steps",[273,521,522,527,532],{},[276,523,524,526],{},[252,525,41],{"href":42}," — runnable example",[276,528,529,531],{},[252,530,45],{"href":46}," — connect, timeout, close",[276,533,534,536],{},[252,535,49],{"href":50}," — audio format reference",{"title":538,"searchDepth":539,"depth":539,"links":540},"",2,[541,542,543,544,545,546],{"id":270,"depth":539,"text":271},{"id":302,"depth":539,"text":303},{"id":320,"depth":539,"text":321},{"id":386,"depth":539,"text":387},{"id":397,"depth":539,"text":398},{"id":518,"depth":539,"text":519},"Stream live speech with Lanson Live API and receive stable, readable text.","md",null,{"status":551,"updated":552},"stable","2026-11-08",true,"---\ntitle: Realtime Overview\ndescription: Stream live speech with Lanson Live API and receive stable, readable text.\nstatus: stable\nupdated: 2026-11-08\n---\n\n**Realtime** is the live-streaming path of **Lanson Live API**, LansonAI's Voice Context Layer for Live Speech. Use [Segment](\u002Fdocs\u002Fapi-reference\u002Fsegment-transcription) for client-cut clips or [Batch](\u002Fdocs\u002Frecorded) for recordings.\n\nYou send PCM16LE audio over WebSocket. Trinity Engine coordinates processing, and the API delivers stable, readable text through StableStream™ behavior. LiveFinal™ describes correction and segment finalization; see [its current event boundaries](\u002Fdocs\u002Fconcepts\u002Flivefinal).\n\n## What it does\n\n- **Live captions**: text appears while the person is still speaking\n- **Real-time translation**: source and translated text together, per target language\n- **Multi-language**: Whisper-compatible language support\n- **Server-side VAD**: automatic speech segment detection, no client-side splitting needed\n\n## Input\n\n- Audio format: **PCM16LE \u002F 16kHz \u002F mono**\n- Transport: JSON text frames (base64) — the supported transport today\n- Frame size: recommended 100ms frames (~3200 bytes), max 1 MiB\n\n## Output\n\nServer pushes JSON events. The primary output is:\n\n- `conversation.item.input_audio_transcription.completed` — a speech segment has been transcribed\n\nSupporting events:\n\n- `input_audio_buffer.speech_started` \u002F `speech_stopped` — speech segment boundaries\n- `session.created` — connection established\n- `session.updated` — confirmed language and feature settings\n- `live.translation.completed` — a target-language result when translation is enabled\n- `error` — error events\n\nThe current public endpoint emits one completed result per successfully processed utterance, not partial-text revisions. Optional refinement runs before that result is delivered. It is off by default; the default `lite` profile is included in the base transcription price, and `pro` is billed as the realtime refinement add-on. Confirm feature availability and configure it before sending audio.\n\n## Architecture\n\n![Realtime API Architecture](\u002Fimages\u002Fdocs\u002Frealtime-architecture-flow.png)\n\n## vs. Segment and Batch\n\n| Dimension | Realtime WS | Segment HTTP | Batch jobs |\n|---|---|---|---|\n| Transport | WebSocket | HTTP sync | HTTP async |\n| Latency | Milliseconds | ~≤2.4s | Minutes |\n| Input | PCM16LE stream | Multipart `file` | Audio URL |\n| Output | Event stream | Transcript JSON | Complete job JSON |\n| VAD | **Server** | **Client** | **Server** (slice) |\n| Best for | Live stream | Pre-cut utterances | Long files |\n\n## Next steps\n\n- [Realtime Quickstart](\u002Fdocs\u002Frealtime\u002Fquickstart) — runnable example\n- [Connection Lifecycle](\u002Fdocs\u002Frealtime\u002Fconnection-lifecycle) — connect, timeout, close\n- [Audio Input](\u002Fdocs\u002Frealtime\u002Faudio-input) — audio format reference\n",{"title":39,"description":547},"yOrRHZacn8h60V8iRZ5tyYBmHYvh3IXvdwNSXlP2vIs",[558,559],{"title":29,"path":30,"stem":31,"children":-1},{"title":41,"path":42,"stem":43,"children":-1},1795064383654]