[{"data":1,"prerenderedAt":693},["ShallowReactive",2],{"navigation":3,"\u002Fdocs\u002Fstart\u002Fquickstart":235,"surround-\u002Fdocs\u002Fstart\u002Fquickstart":691},[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":15,"body":237,"description":682,"extension":683,"links":684,"meta":685,"navigation":687,"new":18,"path":16,"rawbody":688,"seo":689,"stem":17,"technology":684,"__hash__":690},"content\u002Fdocs\u002F1.start\u002F2.quickstart.md",{"type":238,"value":239,"toc":670},"minimark",[240,249,254,305,311,319,335,342,346,349,409,414,424,427,435,438,444,447,456,460,467,473,484,505,534,538,543,546,552,562,566,573,579,582,588,591,597,610,617,623,643,647],[241,242,243,244,248],"p",{},"Start streaming speech with ",[245,246,247],"strong",{},"Lanson Live API",", then use Segment for speech clips or Batch for recordings.",[250,251,253],"h2",{"id":252},"_1-get-an-api-key","1. Get an API key",[255,256,257,265,282,294],"ol",{},[258,259,260,261,264],"li",{},"Sign in to ",[245,262,263],{},"Lanson Live App",", or create a free account.",[258,266,267,268,277,278,281],{},"Open the ",[245,269,270],{},[271,272,276],"a",{"href":273,"rel":274},"https:\u002F\u002Flive.lansonai.com\u002F?panel=developer",[275],"nofollow","API Key Console",". This is the ",[245,279,280],{},"Developer"," panel in your Live account.",[258,283,284,285,288,289,293],{},"Click ",[245,286,287],{},"Create API key",". A label is optional (for example, ",[290,291,292],"code",{},"Production server",").",[258,295,296,297,300,301,304],{},"Copy the key when it is shown. It starts with ",[290,298,299],{},"sk-"," and is displayed ",[245,302,303],{},"only once",".",[241,306,307,308,310],{},"You can also open the console from the ",[245,309,280],{}," button in the Live page header — it is visible even before you sign in.",[241,312,313],{},[271,314,316],{"href":273,"rel":315},[275],[245,317,318],{},"Get an API key →",[320,321,324],"callout",{"icon":322,"color":323},"i-lucide-info","primary",[241,325,326,327,330,331,334],{},"New API developer accounts include ",[245,328,329],{},"$5 of free credit",". Usage is charged in USD at the published ",[271,332,333],{"href":30},"API rates","; when the balance is low, top up from the same Developer panel.",[320,336,339],{"icon":337,"color":338},"i-lucide-triangle-alert","amber",[241,340,341],{},"The plaintext key is returned only once at provisioning time. The server stores only a SHA-256 hash. Save it immediately.",[250,343,345],{"id":344},"_2-connect-to-live-speech","2. Connect to live speech",[241,347,348],{},"Use the Realtime WebSocket path when your application receives live microphone audio. It runs speech segmentation on the server and delivers completed text for each utterance.",[350,351,352,365],"table",{},[353,354,355],"thead",{},[356,357,358,362],"tr",{},[359,360,361],"th",{},"Setting",[359,363,364],{},"Value",[366,367,368,379,389,401],"tbody",{},[356,369,370,374],{},[371,372,373],"td",{},"Endpoint",[371,375,376],{},[290,377,378],{},"wss:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Faudio\u002Ftranscriptions\u002Fstream",[356,380,381,384],{},[371,382,383],{},"Server authentication",[371,385,386],{},[290,387,388],{},"Authorization: Bearer sk-...",[356,390,391,394],{},[371,392,393],{},"Browser authentication",[371,395,396,397,400],{},"Short-lived ",[290,398,399],{},"access_token"," issued by your backend",[356,402,403,406],{},[371,404,405],{},"Audio",[371,407,408],{},"PCM16LE, 16 kHz, mono, sent as base64 JSON frames",[241,410,411,412,304],{},"On your server, you can connect using your API key. In a browser, obtain a session token through your own backend; never ship the API key to the browser. See ",[271,413,21],{"href":22},[415,416,422],"pre",{"className":417,"code":419,"language":420,"meta":421},[418],"language-bash","BASE=\"https:\u002F\u002Faudio.lansonai.com\"\nSK=\"sk-...\"\n\n# Run on your backend to issue a short-lived browser session token.\nRT=$(curl -s -X POST \"$BASE\u002Fv1\u002Faudio\u002Ftranscriptions\u002Fsession-token\" \\\n  -H \"Authorization: Bearer $SK\" | jq -r .token)\n\n# Browser connection URL:\n# wss:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Faudio\u002Ftranscriptions\u002Fstream?access_token=$RT\n","bash","",[290,423,419],{"__ignoreMap":421},[241,425,426],{},"Before sending audio, configure its language when known:",[415,428,433],{"className":429,"code":431,"language":432,"meta":421},[430],"language-json","{ \"type\": \"session.update\", \"language\": \"en\" }\n","json",[290,434,431],{"__ignoreMap":421},[241,436,437],{},"Then stream audio frames containing your captured PCM audio (the placeholder below is not a literal audio payload):",[415,439,442],{"className":440,"code":441,"language":432,"meta":421},[430],"{ \"type\": \"input_audio_buffer.append\", \"audio\": \"\u003Cbase64 PCM16LE>\" }\n",[290,443,441],{"__ignoreMap":421},[241,445,446],{},"Continue sending audio, including natural pauses, so server-side VAD can detect utterance boundaries. Do not treat a flush message or socket close as a guarantee that the last transcript was delivered.",[241,448,449,450,452,453,304],{},"For Node.js, Python, and browser connection examples, continue with ",[271,451,41],{"href":42},". For microphone capture and PCM encoding, use the ",[271,454,455],{"href":132},"Browser Live Captions guide",[250,457,459],{"id":458},"_3-receive-stable-text","3. Receive stable text",[241,461,462,463,466],{},"The primary event is ",[290,464,465],{},"conversation.item.input_audio_transcription.completed",". A representative result is:",[415,468,471],{"className":469,"code":470,"language":432,"meta":421},[430],"{\n  \"type\": \"conversation.item.input_audio_transcription.completed\",\n  \"utterance_index\": 0,\n  \"text\": \"The weather is nice today\",\n  \"raw_text\": \"The weather is nice today\",\n  \"language\": \"en\",\n  \"language_source\": \"client\",\n  \"language_provisional\": false,\n  \"audio_duration_ms\": 3200,\n  \"latency_ms\": 124,\n  \"transcript\": {\n    \"state\": \"stable\",\n    \"revision\": 0,\n    \"safe_for_downstream\": true,\n    \"correction_applied\": false\n  }\n}\n",[290,472,470],{"__ignoreMap":421},[241,474,475,476,479,480,483],{},"Order results by ",[290,477,478],{},"utterance_index"," and display ",[290,481,482],{},"text",". The current endpoint emits one completed result per successfully processed utterance, rather than a stream of partial-text revisions.",[241,485,486,488,489,491,492,495,496,499,500,502,503,304],{},[245,487,107],{}," describes stable, readable live text. ",[245,490,127],{}," describes correction and segment finalization: when refinement is enabled, it runs before the completed event is delivered. Refinement is off by default. The default ",[290,493,494],{},"lite"," profile is included in the base transcription price; ",[290,497,498],{},"pro"," is billed as the realtime refinement add-on. See ",[271,501,127],{"href":128}," and ",[271,504,177],{"href":178},[320,506,507],{"icon":322,"color":323},[241,508,509,510,513,514,517,518,521,522,525,526,529,530,533],{},"Passing a known ",[290,511,512],{},"language"," is recommended. Omit it or send ",[290,515,516],{},"auto"," to use detection. ",[290,519,520],{},"language_provisional: true"," means detection is undecided; a detection error sets ",[290,523,524],{},"safe_for_downstream"," to ",[290,527,528],{},"false",". A ",[290,531,532],{},"true"," value is not a guarantee of transcription accuracy.",[250,535,537],{"id":536},"_4-choose-another-audio-path","4. Choose another audio path",[539,540,542],"h3",{"id":541},"segment-send-a-speech-clip","Segment: send a speech clip",[241,544,545],{},"If your application already detects utterance boundaries, send each clip synchronously:",[415,547,550],{"className":548,"code":549,"language":420,"meta":421},[418],"curl -X POST \"$BASE\u002Fv1\u002Faudio\u002Ftranscriptions\" \\\n  -H \"Authorization: Bearer $SK\" \\\n  -F \"file=@utterance.wav\" \\\n  -F \"language=en\"\n",[290,551,549],{"__ignoreMap":421},[241,553,554,555,558,559,304],{},"The response is ",[245,556,557],{},"200 OK"," with the transcript. Segment requires an explicit language and does not filter silence. See ",[271,560,561],{"href":182},"Segment API",[539,563,565],{"id":564},"batch-process-a-recording","Batch: process a recording",[241,567,568,569,572],{},"Submit a public URL, get a workflow id (",[290,570,571],{},"local…","), poll for the result:",[415,574,577],{"className":575,"code":576,"language":420,"meta":421},[418],"BASE=\"https:\u002F\u002Faudio.lansonai.com\"\nSK=\"sk-...\"\n\ncurl -X POST \"$BASE\u002Fv1\u002Faudio\u002Ftranscriptions\u002Fjobs\" \\\n  -H \"Authorization: Bearer $SK\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"audio_url\": \"https:\u002F\u002Fcdn.example.com\u002Faudio\u002Fmeeting.wav\" }'\n",[290,578,576],{"__ignoreMap":421},[241,580,581],{},"Response (202 Accepted):",[415,583,586],{"className":584,"code":585,"language":432,"meta":421},[430],"{\n  \"request_id\": \"...\",\n  \"workflow_id\": \"local...\",\n  \"status\": \"queued\",\n  \"poll_endpoint\": \"GET \u002Fv1\u002Faudio\u002Ftranscriptions\u002Fjobs\u002Flocal...\"\n}\n",[290,587,585],{"__ignoreMap":421},[241,589,590],{},"Poll:",[415,592,595],{"className":593,"code":594,"language":420,"meta":421},[418],"curl \"$BASE\u002Fv1\u002Faudio\u002Ftranscriptions\u002Fjobs\u002F\u003Cworkflow_id>\" \\\n  -H \"Authorization: Bearer $SK\"\n",[290,596,594],{"__ignoreMap":421},[320,598,599],{"icon":322},[241,600,601,602,605,606,609],{},"Batch jobs run LLM correction ",[245,603,604],{},"by default",". Add ",[290,607,608],{},"\"review\": false"," to the request body to get the raw transcript and skip the extra latency.",[241,611,612,613,616],{},"When the job reaches ",[290,614,615],{},"complete",", its output includes the transcript:",[415,618,621],{"className":619,"code":620,"language":432,"meta":421},[430],"{\n  \"workflow_id\": \"...\",\n  \"status\": \"complete\",\n  \"output\": {\n    \"result\": {\n      \"segments\": [\n        { \"id\": 0, \"start_time\": 0.0, \"end_time\": 3.2, \"text\": \"The weather is nice today\", \"confidence\": 0.95, \"timing\": \"estimated\" }\n      ],\n      \"summary\": { \"total_duration\": 120.5, \"num_segments\": 45 },\n      \"metadata\": { \"language\": \"zh\", \"chunk_count\": 3 }\n    }\n  }\n}\n",[290,622,620],{"__ignoreMap":421},[320,624,625],{"icon":322},[241,626,627,628,502,631,634,635,638,639,642],{},"With review on (the default), the result also includes ",[290,629,630],{},"raw_segments",[290,632,633],{},"metadata.correction",". ",[290,636,637],{},"confidence"," is ",[290,640,641],{},"0"," when the upstream does not provide a value.",[250,644,646],{"id":645},"next-steps","Next steps",[648,649,650,655,660,665],"ul",{},[258,651,652,654],{},[271,653,41],{"href":42}," — full WebSocket examples",[258,656,657,659],{},[271,658,76],{"href":77}," — offline transcription details",[258,661,662,664],{},[271,663,21],{"href":22}," — auth methods and browser security",[258,666,667,669],{},[271,668,127],{"href":128}," — correction and delivery behavior",{"title":421,"searchDepth":671,"depth":671,"links":672},2,[673,674,675,676,681],{"id":252,"depth":671,"text":253},{"id":344,"depth":671,"text":345},{"id":458,"depth":671,"text":459},{"id":536,"depth":671,"text":537,"children":677},[678,680],{"id":541,"depth":679,"text":542},3,{"id":564,"depth":679,"text":565},{"id":645,"depth":671,"text":646},"Connect to live speech first, then choose Segment or Batch for other audio workflows.","md",null,{"updated":686},"2026-11-08",true,"---\ntitle: Get started with Lanson Live API\ndescription: \"Connect to live speech first, then choose Segment or Batch for other audio workflows.\"\nupdated: 2026-11-08\n---\nStart streaming speech with **Lanson Live API**, then use Segment for speech clips or Batch for recordings.\n\n## 1. Get an API key\n\n1. Sign in to **Lanson Live App**, or create a free account.\n2. Open the **[API Key Console](https:\u002F\u002Flive.lansonai.com\u002F?panel=developer)**. This is the **Developer** panel in your Live account.\n3. Click **Create API key**. A label is optional (for example, `Production server`).\n4. Copy the key when it is shown. It starts with `sk-` and is displayed **only once**.\n\nYou can also open the console from the **Developer** button in the Live page header — it is visible even before you sign in.\n\n[**Get an API key →**](https:\u002F\u002Flive.lansonai.com\u002F?panel=developer)\n\n::callout{icon=\"i-lucide-info\" color=\"primary\"}\nNew API developer accounts include **$5 of free credit**. Usage is charged in USD at the published [API rates](\u002Fdocs\u002Fstart\u002Fpricing); when the balance is low, top up from the same Developer panel.\n::\n\n::callout{icon=\"i-lucide-triangle-alert\" color=\"amber\"}\nThe plaintext key is returned only once at provisioning time. The server stores only a SHA-256 hash. Save it immediately.\n::\n\n## 2. Connect to live speech\n\nUse the Realtime WebSocket path when your application receives live microphone audio. It runs speech segmentation on the server and delivers completed text for each utterance.\n\n| Setting | Value |\n|---|---|\n| Endpoint | `wss:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Faudio\u002Ftranscriptions\u002Fstream` |\n| Server authentication | `Authorization: Bearer sk-...` |\n| Browser authentication | Short-lived `access_token` issued by your backend |\n| Audio | PCM16LE, 16 kHz, mono, sent as base64 JSON frames |\n\nOn your server, you can connect using your API key. In a browser, obtain a session token through your own backend; never ship the API key to the browser. See [Authentication](\u002Fdocs\u002Fstart\u002Fauthentication).\n\n```bash\nBASE=\"https:\u002F\u002Faudio.lansonai.com\"\nSK=\"sk-...\"\n\n# Run on your backend to issue a short-lived browser session token.\nRT=$(curl -s -X POST \"$BASE\u002Fv1\u002Faudio\u002Ftranscriptions\u002Fsession-token\" \\\n  -H \"Authorization: Bearer $SK\" | jq -r .token)\n\n# Browser connection URL:\n# wss:\u002F\u002Faudio.lansonai.com\u002Fv1\u002Faudio\u002Ftranscriptions\u002Fstream?access_token=$RT\n```\n\nBefore sending audio, configure its language when known:\n\n```json\n{ \"type\": \"session.update\", \"language\": \"en\" }\n```\n\nThen stream audio frames containing your captured PCM audio (the placeholder below is not a literal audio payload):\n\n```json\n{ \"type\": \"input_audio_buffer.append\", \"audio\": \"\u003Cbase64 PCM16LE>\" }\n```\n\nContinue sending audio, including natural pauses, so server-side VAD can detect utterance boundaries. Do not treat a flush message or socket close as a guarantee that the last transcript was delivered.\n\nFor Node.js, Python, and browser connection examples, continue with [Realtime Quickstart](\u002Fdocs\u002Frealtime\u002Fquickstart). For microphone capture and PCM encoding, use the [Browser Live Captions guide](\u002Fdocs\u002Fguides).\n\n## 3. Receive stable text\n\nThe primary event is `conversation.item.input_audio_transcription.completed`. A representative result is:\n\n```json\n{\n  \"type\": \"conversation.item.input_audio_transcription.completed\",\n  \"utterance_index\": 0,\n  \"text\": \"The weather is nice today\",\n  \"raw_text\": \"The weather is nice today\",\n  \"language\": \"en\",\n  \"language_source\": \"client\",\n  \"language_provisional\": false,\n  \"audio_duration_ms\": 3200,\n  \"latency_ms\": 124,\n  \"transcript\": {\n    \"state\": \"stable\",\n    \"revision\": 0,\n    \"safe_for_downstream\": true,\n    \"correction_applied\": false\n  }\n}\n```\n\nOrder results by `utterance_index` and display `text`. The current endpoint emits one completed result per successfully processed utterance, rather than a stream of partial-text revisions.\n\n**StableStream™** describes stable, readable live text. **LiveFinal™** describes correction and segment finalization: when refinement is enabled, it runs before the completed event is delivered. Refinement is off by default. The default `lite` profile is included in the base transcription price; `pro` is billed as the realtime refinement add-on. See [LiveFinal™](\u002Fdocs\u002Fconcepts\u002Flivefinal) and [Server Events](\u002Fdocs\u002Fapi-reference\u002Fserver-events).\n\n::callout{icon=\"i-lucide-info\" color=\"primary\"}\nPassing a known `language` is recommended. Omit it or send `auto` to use detection. `language_provisional: true` means detection is undecided; a detection error sets `safe_for_downstream` to `false`. A `true` value is not a guarantee of transcription accuracy.\n::\n\n## 4. Choose another audio path\n\n### Segment: send a speech clip\n\nIf your application already detects utterance boundaries, send each clip synchronously:\n\n```bash\ncurl -X POST \"$BASE\u002Fv1\u002Faudio\u002Ftranscriptions\" \\\n  -H \"Authorization: Bearer $SK\" \\\n  -F \"file=@utterance.wav\" \\\n  -F \"language=en\"\n```\n\nThe response is **200 OK** with the transcript. Segment requires an explicit language and does not filter silence. See [Segment API](\u002Fdocs\u002Fapi-reference\u002Fsegment-transcription).\n\n### Batch: process a recording\n\nSubmit a public URL, get a workflow id (`local…`), poll for the result:\n\n```bash\nBASE=\"https:\u002F\u002Faudio.lansonai.com\"\nSK=\"sk-...\"\n\ncurl -X POST \"$BASE\u002Fv1\u002Faudio\u002Ftranscriptions\u002Fjobs\" \\\n  -H \"Authorization: Bearer $SK\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"audio_url\": \"https:\u002F\u002Fcdn.example.com\u002Faudio\u002Fmeeting.wav\" }'\n```\n\nResponse (202 Accepted):\n\n```json\n{\n  \"request_id\": \"...\",\n  \"workflow_id\": \"local...\",\n  \"status\": \"queued\",\n  \"poll_endpoint\": \"GET \u002Fv1\u002Faudio\u002Ftranscriptions\u002Fjobs\u002Flocal...\"\n}\n```\n\nPoll:\n\n```bash\ncurl \"$BASE\u002Fv1\u002Faudio\u002Ftranscriptions\u002Fjobs\u002F\u003Cworkflow_id>\" \\\n  -H \"Authorization: Bearer $SK\"\n```\n\n::callout{icon=\"i-lucide-info\"}\nBatch jobs run LLM correction **by default**. Add `\"review\": false` to the request body to get the raw transcript and skip the extra latency.\n::\n\nWhen the job reaches `complete`, its output includes the transcript:\n\n```json\n{\n  \"workflow_id\": \"...\",\n  \"status\": \"complete\",\n  \"output\": {\n    \"result\": {\n      \"segments\": [\n        { \"id\": 0, \"start_time\": 0.0, \"end_time\": 3.2, \"text\": \"The weather is nice today\", \"confidence\": 0.95, \"timing\": \"estimated\" }\n      ],\n      \"summary\": { \"total_duration\": 120.5, \"num_segments\": 45 },\n      \"metadata\": { \"language\": \"zh\", \"chunk_count\": 3 }\n    }\n  }\n}\n```\n\n::callout{icon=\"i-lucide-info\"}\nWith review on (the default), the result also includes `raw_segments` and `metadata.correction`. `confidence` is `0` when the upstream does not provide a value.\n::\n\n## Next steps\n\n- [Realtime Quickstart](\u002Fdocs\u002Frealtime\u002Fquickstart) — full WebSocket examples\n- [Transcribe Audio](\u002Fdocs\u002Frecorded\u002Ftranscribe-audio) — offline transcription details\n- [Authentication](\u002Fdocs\u002Fstart\u002Fauthentication) — auth methods and browser security\n- [LiveFinal™](\u002Fdocs\u002Fconcepts\u002Flivefinal) — correction and delivery behavior\n",{"title":15,"description":682},"eR7RShrZ8fpG3e96S-6DvkJpnF-sR-Y0EttP95EYwZc",[684,692],{"title":21,"path":22,"stem":23,"children":-1},1795064383653]