[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-elevenlabs-speech-to-text":3,"mdc-ibmx4p-key":40,"related-org-elevenlabs-speech-to-text":3963,"related-repo-elevenlabs-speech-to-text":4070},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":35,"sourceUrl":38,"mdContent":39},"speech-to-text","transcribe audio with ElevenLabs","Transcribe audio to text using ElevenLabs Scribe v2. Use when converting audio\u002Fvideo to text, generating subtitles, transcribing meetings, or processing spoken content.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"elevenlabs","ElevenLabs","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Felevenlabs.png",[12,16,19,20],{"name":13,"slug":14,"type":15},"Transcription","transcription","tag",{"name":17,"slug":18,"type":15},"Audio","audio",{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},"Speech","speech",374,"https:\u002F\u002Fgithub.com\u002Felevenlabs\u002Fskills","2026-07-24T05:40:06.834756","MIT",48,[29,8,30,31,32,33,34],"ai-agents","music","sfx","skills","stt","tts",{"repoUrl":24,"stars":23,"forks":27,"topics":36,"description":37},[29,8,30,31,32,33,34],"Collections of skills for building with ElevenLabs","https:\u002F\u002Fgithub.com\u002Felevenlabs\u002Fskills\u002Ftree\u002FHEAD\u002Fspeech-to-text","---\nname: speech-to-text\ndescription: Transcribe audio to text using ElevenLabs Scribe v2. Use when converting audio\u002Fvideo to text, generating subtitles, transcribing meetings, or processing spoken content.\nlicense: MIT\ncompatibility: Requires internet access and an ElevenLabs API key (ELEVENLABS_API_KEY).\nmetadata: {\"openclaw\": {\"requires\": {\"env\": [\"ELEVENLABS_API_KEY\"]}, \"primaryEnv\": \"ELEVENLABS_API_KEY\"}}\n---\n\n# ElevenLabs Speech-to-Text\n\nTranscribe audio to text with Scribe v2 - supports 90+ languages, speaker diarization, and word-level timestamps.\n\n> **Setup:** See [Installation Guide](references\u002Finstallation.md). For JavaScript, use `@elevenlabs\u002F*` packages only.\n\n## Quick Start\n\n### Python\n\n```python\nfrom elevenlabs import ElevenLabs\n\nclient = ElevenLabs()\n\nwith open(\"audio.mp3\", \"rb\") as audio_file:\n    result = client.speech_to_text.convert(file=audio_file, model_id=\"scribe_v2\")\n\nprint(result.text)\n```\n\n### JavaScript\n\n```javascript\nimport { ElevenLabsClient } from \"@elevenlabs\u002Felevenlabs-js\";\nimport { createReadStream } from \"fs\";\n\nconst client = new ElevenLabsClient();\nconst result = await client.speechToText.convert({\n  file: createReadStream(\"audio.mp3\"),\n  modelId: \"scribe_v2\",\n});\nconsole.log(result.text);\n```\n\n### cURL\n\n```bash\ncurl -X POST \"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fspeech-to-text\" \\\n  -H \"xi-api-key: $ELEVENLABS_API_KEY\" -F \"file=@audio.mp3\" -F \"model_id=scribe_v2\"\n```\n\n## Models\n\n| Model ID | Description | Best For |\n|----------|-------------|----------|\n| `scribe_v2` | State-of-the-art accuracy, 90+ languages | Batch transcription, subtitles, long-form audio |\n| `scribe_v2_realtime` | Low latency (~150ms) | Live transcription, voice agents |\n| `scribe_v2_realtime_turbo` | Realtime transcription variant | Live transcription |\n| `scribe_v2_realtime_lite` | Realtime transcription variant | Live transcription |\n\n## Transcription with Timestamps\n\nWord-level timestamps include type classification and speaker identification:\n\n```python\nresult = client.speech_to_text.convert(\n    file=audio_file, model_id=\"scribe_v2\", timestamps_granularity=\"word\"\n)\n\nfor word in result.words:\n    print(f\"{word.text}: {word.start}s - {word.end}s (type: {word.type})\")\n\n```\n\n## Speaker Diarization\n\nIdentify WHO said WHAT - the model labels each word with a speaker ID, useful for meetings, interviews, or any multi-speaker audio:\n\n```python\nresult = client.speech_to_text.convert(\n    file=audio_file,\n    model_id=\"scribe_v2\",\n    diarize=True\n)\n\nfor word in result.words:\n    print(f\"[{word.speaker_id}] {word.text}\")\n```\n\nFor call recordings, the batch API can label diarized speakers as `agent` and `customer` by setting `detect_speaker_roles=true` alongside `diarize=true`. This option is not compatible with `use_multi_channel=true`.\n\nIf your workspace has registered speaker profiles, set `use_speaker_library=true` with `diarize=true` to match detected speakers against the speaker library.\n\n```bash\ncurl -X POST \"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fspeech-to-text\" \\\n  -H \"xi-api-key: $ELEVENLABS_API_KEY\" \\\n  -F \"file=@call.mp3\" \\\n  -F \"model_id=scribe_v2\" \\\n  -F \"diarize=true\" \\\n  -F \"detect_speaker_roles=true\" \\\n  -F \"use_speaker_library=true\"\n```\n\n## Multichannel Audio\n\nUse `use_multi_channel=true` when each speaker is isolated on a separate audio channel. By default, the API returns one transcript per channel under `transcripts`; set `multichannel_output_style=\"combined\"` to receive one transcript merged by timestamp, with `channel_index` on each word.\n\n```python\nresult = client.speech_to_text.convert(\n    file=audio_file,\n    model_id=\"scribe_v2\",\n    use_multi_channel=True,\n    multichannel_output_style=\"combined\",\n)\n```\n\n## Keyterm Prompting\n\nHelp the model recognize specific words it might otherwise mishear - product names, technical jargon, or unusual spellings (up to 100 terms):\n\n```python\nresult = client.speech_to_text.convert(\n    file=audio_file,\n    model_id=\"scribe_v2\",\n    keyterms=[\"ElevenLabs\", \"Scribe\", \"API\"]\n)\n```\n\n## Language Detection\n\nAutomatic detection with optional language hint:\n\n```python\nresult = client.speech_to_text.convert(\n    file=audio_file,\n    model_id=\"scribe_v2\",\n    language_code=\"eng\"  # ISO 639-1 or ISO 639-3 code\n)\n\nprint(f\"Detected: {result.language_code} ({result.language_probability:.0%})\")\n```\n\n## Supported Formats\n\n**Audio:** MP3, WAV, M4A, FLAC, OGG, WebM, AAC, AIFF, Opus\n**Video:** MP4, AVI, MKV, MOV, WMV, FLV, WebM, MPEG, 3GPP\n\n**Limits:** Up to 5.0GB file size, 10 hours duration\n\n## Response Format\n\n```json\n{\n  \"text\": \"The full transcription text\",\n  \"language_code\": \"eng\",\n  \"language_probability\": 0.98,\n  \"words\": [\n    {\"text\": \"The\", \"start\": 0.0, \"end\": 0.15, \"type\": \"word\", \"speaker_id\": \"speaker_0\"},\n    {\"text\": \" \", \"start\": 0.15, \"end\": 0.16, \"type\": \"spacing\", \"speaker_id\": \"speaker_0\"}\n  ]\n}\n```\n\n**Word types:**\n- `word` - An actual spoken word\n- `spacing` - Whitespace between words (useful for precise timing)\n- `audio_event` - Non-speech sounds the model detected (laughter, applause, music, etc.)\n\n## Error Handling\n\n```python\ntry:\n    result = client.speech_to_text.convert(file=audio_file, model_id=\"scribe_v2\")\nexcept Exception as e:\n    print(f\"Transcription failed: {e}\")\n```\n\nCommon errors:\n- **401**: Invalid API key\n- **422**: Invalid parameters\n- **429**: Rate limit exceeded\n\n## Tracking Costs\n\nMonitor usage via `request-id` response header:\n\n```python\nresponse = client.speech_to_text.convert.with_raw_response(file=audio_file, model_id=\"scribe_v2\")\nresult = response.parse()\nprint(f\"Request ID: {response.headers.get('request-id')}\")\n```\n\n## Real-Time Streaming\n\nFor live transcription with ultra-low latency (~150ms), use the real-time API. The real-time API produces two types of transcripts:\n\n- **Partial transcripts**: Interim results that update frequently as audio is processed - use these for live feedback (e.g., showing text as the user speaks)\n- **Committed transcripts**: Final, stable results after you \"commit\" - use these as the source of truth for your application\n\nA \"commit\" tells the model to finalize the current segment. You can commit manually (e.g., when the user pauses) or use Voice Activity Detection (VAD) to auto-commit on silence.\n\n### Python (Server-Side)\n\n```python\nimport asyncio\nfrom elevenlabs import ElevenLabs\n\nclient = ElevenLabs()\n\nasync def transcribe_realtime():\n    async with client.speech_to_text.realtime.connect(\n        model_id=\"scribe_v2_realtime\",\n        include_timestamps=True,\n        keyterms=[\"ElevenLabs\", \"Scribe\"],\n        no_verbatim=True,\n    ) as connection:\n        await connection.stream_url(\"https:\u002F\u002Fexample.com\u002Faudio.mp3\")\n\n        async for event in connection:\n            if event.type == \"partial_transcript\":\n                print(f\"Partial: {event.text}\")\n            elif event.type == \"committed_transcript\":\n                print(f\"Final: {event.text}\")\n\nasyncio.run(transcribe_realtime())\n```\n\n### JavaScript (Client-Side with React)\n\n```typescript\nimport { useScribe, CommitStrategy } from \"@elevenlabs\u002Freact\";\n\nfunction TranscriptionComponent() {\n  const [transcript, setTranscript] = useState(\"\");\n\n  const scribe = useScribe({\n    modelId: \"scribe_v2_realtime\",\n    commitStrategy: CommitStrategy.VAD, \u002F\u002F Auto-commit on silence for mic input\n    keyterms: [\"ElevenLabs\", \"Scribe\"],\n    noVerbatim: true,\n    includeLanguageDetection: true,\n    onPartialTranscript: (data) => console.log(\"Partial:\", data.text),\n    onCommittedTranscript: (data) => setTranscript((prev) => prev + data.text),\n  });\n\n  const start = async () => {\n    \u002F\u002F Get token from your backend (never expose API key to client)\n    const { token } = await fetch(\"\u002Fscribe-token\").then((r) => r.json());\n\n    await scribe.connect({\n      token,\n      microphone: { echoCancellation: true, noiseSuppression: true },\n    });\n  };\n\n  return \u003Cbutton onClick={start}>Start Recording\u003C\u002Fbutton>;\n}\n```\n\n### Commit Strategies\n\n| Strategy | Description |\n|----------|-------------|\n| **Manual** | You call `commit()` when ready - use for file processing or when you control the audio segments |\n| **VAD** | Voice Activity Detection auto-commits when silence is detected - use for live microphone input |\n\nSet `includeLanguageDetection: true` to receive the detected language code on committed transcript\nevents that include timestamps.\n\n```typescript\n\u002F\u002F React: set commitStrategy on the hook (recommended for mic input)\nimport { useScribe, CommitStrategy } from \"@elevenlabs\u002Freact\";\n\nconst scribe = useScribe({\n  modelId: \"scribe_v2_realtime\",\n  commitStrategy: CommitStrategy.VAD,\n  keyterms: [\"ElevenLabs\", \"Scribe\"],\n  noVerbatim: true,\n  \u002F\u002F Optional VAD tuning:\n  vadSilenceThresholdSecs: 1.5,\n  vadThreshold: 0.4,\n});\n```\n\n```javascript\n\u002F\u002F JavaScript client: pass vad config on connect\nconst connection = await client.speechToText.realtime.connect({\n  modelId: \"scribe_v2_realtime\",\n  keyterms: [\"ElevenLabs\", \"Scribe\"],\n  noVerbatim: true,\n  vad: {\n    silenceThresholdSecs: 1.5,\n    threshold: 0.4,\n  },\n});\n```\n\n### Event Types\n\n| Event | Description |\n|-------|-------------|\n| `partial_transcript` | Live interim results |\n| `committed_transcript` | Final results after commit |\n| `committed_transcript_with_timestamps` | Final with word timing |\n| `error` | Error occurred |\n\nSee real-time references for complete documentation.\n\n## References\n\n- [Installation Guide](references\u002Finstallation.md)\n- [Transcription Options](references\u002Ftranscription-options.md)\n- [Real-Time Client-Side Streaming](references\u002Frealtime-client-side.md)\n- [Real-Time Server-Side Streaming](references\u002Frealtime-server-side.md)\n- [Commit Strategies](references\u002Frealtime-commit-strategies.md)\n- [Real-Time Event Reference](references\u002Frealtime-events.md)\n",{"data":41,"body":48},{"name":4,"description":6,"license":26,"compatibility":42,"metadata":43},"Requires internet access and an ElevenLabs API key (ELEVENLABS_API_KEY).",{"openclaw":44},{"requires":45,"primaryEnv":47},{"env":46},[47],"ELEVENLABS_API_KEY",{"type":49,"children":50},"root",[51,60,66,99,106,113,196,202,529,535,642,648,766,772,777,831,837,842,909,953,973,1151,1157,1193,1244,1250,1255,1298,1304,1309,1367,1373,1390,1400,1406,1879,1887,1923,1929,1967,1972,2005,2011,2024,2055,2061,2066,2089,2094,2100,2281,2287,3181,3187,3247,3260,3549,3797,3803,3892,3897,3903,3957],{"type":52,"tag":53,"props":54,"children":56},"element","h1",{"id":55},"elevenlabs-speech-to-text",[57],{"type":58,"value":59},"text","ElevenLabs Speech-to-Text",{"type":52,"tag":61,"props":62,"children":63},"p",{},[64],{"type":58,"value":65},"Transcribe audio to text with Scribe v2 - supports 90+ languages, speaker diarization, and word-level timestamps.",{"type":52,"tag":67,"props":68,"children":69},"blockquote",{},[70],{"type":52,"tag":61,"props":71,"children":72},{},[73,79,81,88,90,97],{"type":52,"tag":74,"props":75,"children":76},"strong",{},[77],{"type":58,"value":78},"Setup:",{"type":58,"value":80}," See ",{"type":52,"tag":82,"props":83,"children":85},"a",{"href":84},"references\u002Finstallation.md",[86],{"type":58,"value":87},"Installation Guide",{"type":58,"value":89},". For JavaScript, use ",{"type":52,"tag":91,"props":92,"children":94},"code",{"className":93},[],[95],{"type":58,"value":96},"@elevenlabs\u002F*",{"type":58,"value":98}," packages only.",{"type":52,"tag":100,"props":101,"children":103},"h2",{"id":102},"quick-start",[104],{"type":58,"value":105},"Quick Start",{"type":52,"tag":107,"props":108,"children":110},"h3",{"id":109},"python",[111],{"type":58,"value":112},"Python",{"type":52,"tag":114,"props":115,"children":119},"pre",{"className":116,"code":117,"language":109,"meta":118,"style":118},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from elevenlabs import ElevenLabs\n\nclient = ElevenLabs()\n\nwith open(\"audio.mp3\", \"rb\") as audio_file:\n    result = client.speech_to_text.convert(file=audio_file, model_id=\"scribe_v2\")\n\nprint(result.text)\n","",[120],{"type":52,"tag":91,"props":121,"children":122},{"__ignoreMap":118},[123,134,144,153,161,170,179,187],{"type":52,"tag":124,"props":125,"children":128},"span",{"class":126,"line":127},"line",1,[129],{"type":52,"tag":124,"props":130,"children":131},{},[132],{"type":58,"value":133},"from elevenlabs import ElevenLabs\n",{"type":52,"tag":124,"props":135,"children":137},{"class":126,"line":136},2,[138],{"type":52,"tag":124,"props":139,"children":141},{"emptyLinePlaceholder":140},true,[142],{"type":58,"value":143},"\n",{"type":52,"tag":124,"props":145,"children":147},{"class":126,"line":146},3,[148],{"type":52,"tag":124,"props":149,"children":150},{},[151],{"type":58,"value":152},"client = ElevenLabs()\n",{"type":52,"tag":124,"props":154,"children":156},{"class":126,"line":155},4,[157],{"type":52,"tag":124,"props":158,"children":159},{"emptyLinePlaceholder":140},[160],{"type":58,"value":143},{"type":52,"tag":124,"props":162,"children":164},{"class":126,"line":163},5,[165],{"type":52,"tag":124,"props":166,"children":167},{},[168],{"type":58,"value":169},"with open(\"audio.mp3\", \"rb\") as audio_file:\n",{"type":52,"tag":124,"props":171,"children":173},{"class":126,"line":172},6,[174],{"type":52,"tag":124,"props":175,"children":176},{},[177],{"type":58,"value":178},"    result = client.speech_to_text.convert(file=audio_file, model_id=\"scribe_v2\")\n",{"type":52,"tag":124,"props":180,"children":182},{"class":126,"line":181},7,[183],{"type":52,"tag":124,"props":184,"children":185},{"emptyLinePlaceholder":140},[186],{"type":58,"value":143},{"type":52,"tag":124,"props":188,"children":190},{"class":126,"line":189},8,[191],{"type":52,"tag":124,"props":192,"children":193},{},[194],{"type":58,"value":195},"print(result.text)\n",{"type":52,"tag":107,"props":197,"children":199},{"id":198},"javascript",[200],{"type":58,"value":201},"JavaScript",{"type":52,"tag":114,"props":203,"children":206},{"className":204,"code":205,"language":198,"meta":118,"style":118},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { ElevenLabsClient } from \"@elevenlabs\u002Felevenlabs-js\";\nimport { createReadStream } from \"fs\";\n\nconst client = new ElevenLabsClient();\nconst result = await client.speechToText.convert({\n  file: createReadStream(\"audio.mp3\"),\n  modelId: \"scribe_v2\",\n});\nconsole.log(result.text);\n",[207],{"type":52,"tag":91,"props":208,"children":209},{"__ignoreMap":118},[210,262,303,310,348,403,448,477,493],{"type":52,"tag":124,"props":211,"children":212},{"class":126,"line":127},[213,219,225,231,236,241,246,252,257],{"type":52,"tag":124,"props":214,"children":216},{"style":215},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[217],{"type":58,"value":218},"import",{"type":52,"tag":124,"props":220,"children":222},{"style":221},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[223],{"type":58,"value":224}," {",{"type":52,"tag":124,"props":226,"children":228},{"style":227},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[229],{"type":58,"value":230}," ElevenLabsClient",{"type":52,"tag":124,"props":232,"children":233},{"style":221},[234],{"type":58,"value":235}," }",{"type":52,"tag":124,"props":237,"children":238},{"style":215},[239],{"type":58,"value":240}," from",{"type":52,"tag":124,"props":242,"children":243},{"style":221},[244],{"type":58,"value":245}," \"",{"type":52,"tag":124,"props":247,"children":249},{"style":248},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[250],{"type":58,"value":251},"@elevenlabs\u002Felevenlabs-js",{"type":52,"tag":124,"props":253,"children":254},{"style":221},[255],{"type":58,"value":256},"\"",{"type":52,"tag":124,"props":258,"children":259},{"style":221},[260],{"type":58,"value":261},";\n",{"type":52,"tag":124,"props":263,"children":264},{"class":126,"line":136},[265,269,273,278,282,286,290,295,299],{"type":52,"tag":124,"props":266,"children":267},{"style":215},[268],{"type":58,"value":218},{"type":52,"tag":124,"props":270,"children":271},{"style":221},[272],{"type":58,"value":224},{"type":52,"tag":124,"props":274,"children":275},{"style":227},[276],{"type":58,"value":277}," createReadStream",{"type":52,"tag":124,"props":279,"children":280},{"style":221},[281],{"type":58,"value":235},{"type":52,"tag":124,"props":283,"children":284},{"style":215},[285],{"type":58,"value":240},{"type":52,"tag":124,"props":287,"children":288},{"style":221},[289],{"type":58,"value":245},{"type":52,"tag":124,"props":291,"children":292},{"style":248},[293],{"type":58,"value":294},"fs",{"type":52,"tag":124,"props":296,"children":297},{"style":221},[298],{"type":58,"value":256},{"type":52,"tag":124,"props":300,"children":301},{"style":221},[302],{"type":58,"value":261},{"type":52,"tag":124,"props":304,"children":305},{"class":126,"line":146},[306],{"type":52,"tag":124,"props":307,"children":308},{"emptyLinePlaceholder":140},[309],{"type":58,"value":143},{"type":52,"tag":124,"props":311,"children":312},{"class":126,"line":155},[313,319,324,329,334,339,344],{"type":52,"tag":124,"props":314,"children":316},{"style":315},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[317],{"type":58,"value":318},"const",{"type":52,"tag":124,"props":320,"children":321},{"style":227},[322],{"type":58,"value":323}," client ",{"type":52,"tag":124,"props":325,"children":326},{"style":221},[327],{"type":58,"value":328},"=",{"type":52,"tag":124,"props":330,"children":331},{"style":221},[332],{"type":58,"value":333}," new",{"type":52,"tag":124,"props":335,"children":337},{"style":336},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[338],{"type":58,"value":230},{"type":52,"tag":124,"props":340,"children":341},{"style":227},[342],{"type":58,"value":343},"()",{"type":52,"tag":124,"props":345,"children":346},{"style":221},[347],{"type":58,"value":261},{"type":52,"tag":124,"props":349,"children":350},{"class":126,"line":163},[351,355,360,364,369,374,379,384,388,393,398],{"type":52,"tag":124,"props":352,"children":353},{"style":315},[354],{"type":58,"value":318},{"type":52,"tag":124,"props":356,"children":357},{"style":227},[358],{"type":58,"value":359}," result ",{"type":52,"tag":124,"props":361,"children":362},{"style":221},[363],{"type":58,"value":328},{"type":52,"tag":124,"props":365,"children":366},{"style":215},[367],{"type":58,"value":368}," await",{"type":52,"tag":124,"props":370,"children":371},{"style":227},[372],{"type":58,"value":373}," client",{"type":52,"tag":124,"props":375,"children":376},{"style":221},[377],{"type":58,"value":378},".",{"type":52,"tag":124,"props":380,"children":381},{"style":227},[382],{"type":58,"value":383},"speechToText",{"type":52,"tag":124,"props":385,"children":386},{"style":221},[387],{"type":58,"value":378},{"type":52,"tag":124,"props":389,"children":390},{"style":336},[391],{"type":58,"value":392},"convert",{"type":52,"tag":124,"props":394,"children":395},{"style":227},[396],{"type":58,"value":397},"(",{"type":52,"tag":124,"props":399,"children":400},{"style":221},[401],{"type":58,"value":402},"{\n",{"type":52,"tag":124,"props":404,"children":405},{"class":126,"line":172},[406,412,417,421,425,429,434,438,443],{"type":52,"tag":124,"props":407,"children":409},{"style":408},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[410],{"type":58,"value":411},"  file",{"type":52,"tag":124,"props":413,"children":414},{"style":221},[415],{"type":58,"value":416},":",{"type":52,"tag":124,"props":418,"children":419},{"style":336},[420],{"type":58,"value":277},{"type":52,"tag":124,"props":422,"children":423},{"style":227},[424],{"type":58,"value":397},{"type":52,"tag":124,"props":426,"children":427},{"style":221},[428],{"type":58,"value":256},{"type":52,"tag":124,"props":430,"children":431},{"style":248},[432],{"type":58,"value":433},"audio.mp3",{"type":52,"tag":124,"props":435,"children":436},{"style":221},[437],{"type":58,"value":256},{"type":52,"tag":124,"props":439,"children":440},{"style":227},[441],{"type":58,"value":442},")",{"type":52,"tag":124,"props":444,"children":445},{"style":221},[446],{"type":58,"value":447},",\n",{"type":52,"tag":124,"props":449,"children":450},{"class":126,"line":181},[451,456,460,464,469,473],{"type":52,"tag":124,"props":452,"children":453},{"style":408},[454],{"type":58,"value":455},"  modelId",{"type":52,"tag":124,"props":457,"children":458},{"style":221},[459],{"type":58,"value":416},{"type":52,"tag":124,"props":461,"children":462},{"style":221},[463],{"type":58,"value":245},{"type":52,"tag":124,"props":465,"children":466},{"style":248},[467],{"type":58,"value":468},"scribe_v2",{"type":52,"tag":124,"props":470,"children":471},{"style":221},[472],{"type":58,"value":256},{"type":52,"tag":124,"props":474,"children":475},{"style":221},[476],{"type":58,"value":447},{"type":52,"tag":124,"props":478,"children":479},{"class":126,"line":189},[480,485,489],{"type":52,"tag":124,"props":481,"children":482},{"style":221},[483],{"type":58,"value":484},"}",{"type":52,"tag":124,"props":486,"children":487},{"style":227},[488],{"type":58,"value":442},{"type":52,"tag":124,"props":490,"children":491},{"style":221},[492],{"type":58,"value":261},{"type":52,"tag":124,"props":494,"children":496},{"class":126,"line":495},9,[497,502,506,511,516,520,525],{"type":52,"tag":124,"props":498,"children":499},{"style":227},[500],{"type":58,"value":501},"console",{"type":52,"tag":124,"props":503,"children":504},{"style":221},[505],{"type":58,"value":378},{"type":52,"tag":124,"props":507,"children":508},{"style":336},[509],{"type":58,"value":510},"log",{"type":52,"tag":124,"props":512,"children":513},{"style":227},[514],{"type":58,"value":515},"(result",{"type":52,"tag":124,"props":517,"children":518},{"style":221},[519],{"type":58,"value":378},{"type":52,"tag":124,"props":521,"children":522},{"style":227},[523],{"type":58,"value":524},"text)",{"type":52,"tag":124,"props":526,"children":527},{"style":221},[528],{"type":58,"value":261},{"type":52,"tag":107,"props":530,"children":532},{"id":531},"curl",[533],{"type":58,"value":534},"cURL",{"type":52,"tag":114,"props":536,"children":540},{"className":537,"code":538,"language":539,"meta":118,"style":118},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -X POST \"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fspeech-to-text\" \\\n  -H \"xi-api-key: $ELEVENLABS_API_KEY\" -F \"file=@audio.mp3\" -F \"model_id=scribe_v2\"\n","bash",[541],{"type":52,"tag":91,"props":542,"children":543},{"__ignoreMap":118},[544,580],{"type":52,"tag":124,"props":545,"children":546},{"class":126,"line":127},[547,552,557,562,566,571,575],{"type":52,"tag":124,"props":548,"children":550},{"style":549},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[551],{"type":58,"value":531},{"type":52,"tag":124,"props":553,"children":554},{"style":248},[555],{"type":58,"value":556}," -X",{"type":52,"tag":124,"props":558,"children":559},{"style":248},[560],{"type":58,"value":561}," POST",{"type":52,"tag":124,"props":563,"children":564},{"style":221},[565],{"type":58,"value":245},{"type":52,"tag":124,"props":567,"children":568},{"style":248},[569],{"type":58,"value":570},"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fspeech-to-text",{"type":52,"tag":124,"props":572,"children":573},{"style":221},[574],{"type":58,"value":256},{"type":52,"tag":124,"props":576,"children":577},{"style":227},[578],{"type":58,"value":579}," \\\n",{"type":52,"tag":124,"props":581,"children":582},{"class":126,"line":136},[583,588,592,597,602,606,611,615,620,624,628,632,637],{"type":52,"tag":124,"props":584,"children":585},{"style":248},[586],{"type":58,"value":587},"  -H",{"type":52,"tag":124,"props":589,"children":590},{"style":221},[591],{"type":58,"value":245},{"type":52,"tag":124,"props":593,"children":594},{"style":248},[595],{"type":58,"value":596},"xi-api-key: ",{"type":52,"tag":124,"props":598,"children":599},{"style":227},[600],{"type":58,"value":601},"$ELEVENLABS_API_KEY",{"type":52,"tag":124,"props":603,"children":604},{"style":221},[605],{"type":58,"value":256},{"type":52,"tag":124,"props":607,"children":608},{"style":248},[609],{"type":58,"value":610}," -F",{"type":52,"tag":124,"props":612,"children":613},{"style":221},[614],{"type":58,"value":245},{"type":52,"tag":124,"props":616,"children":617},{"style":248},[618],{"type":58,"value":619},"file=@audio.mp3",{"type":52,"tag":124,"props":621,"children":622},{"style":221},[623],{"type":58,"value":256},{"type":52,"tag":124,"props":625,"children":626},{"style":248},[627],{"type":58,"value":610},{"type":52,"tag":124,"props":629,"children":630},{"style":221},[631],{"type":58,"value":245},{"type":52,"tag":124,"props":633,"children":634},{"style":248},[635],{"type":58,"value":636},"model_id=scribe_v2",{"type":52,"tag":124,"props":638,"children":639},{"style":221},[640],{"type":58,"value":641},"\"\n",{"type":52,"tag":100,"props":643,"children":645},{"id":644},"models",[646],{"type":58,"value":647},"Models",{"type":52,"tag":649,"props":650,"children":651},"table",{},[652,676],{"type":52,"tag":653,"props":654,"children":655},"thead",{},[656],{"type":52,"tag":657,"props":658,"children":659},"tr",{},[660,666,671],{"type":52,"tag":661,"props":662,"children":663},"th",{},[664],{"type":58,"value":665},"Model ID",{"type":52,"tag":661,"props":667,"children":668},{},[669],{"type":58,"value":670},"Description",{"type":52,"tag":661,"props":672,"children":673},{},[674],{"type":58,"value":675},"Best For",{"type":52,"tag":677,"props":678,"children":679},"tbody",{},[680,702,724,746],{"type":52,"tag":657,"props":681,"children":682},{},[683,692,697],{"type":52,"tag":684,"props":685,"children":686},"td",{},[687],{"type":52,"tag":91,"props":688,"children":690},{"className":689},[],[691],{"type":58,"value":468},{"type":52,"tag":684,"props":693,"children":694},{},[695],{"type":58,"value":696},"State-of-the-art accuracy, 90+ languages",{"type":52,"tag":684,"props":698,"children":699},{},[700],{"type":58,"value":701},"Batch transcription, subtitles, long-form audio",{"type":52,"tag":657,"props":703,"children":704},{},[705,714,719],{"type":52,"tag":684,"props":706,"children":707},{},[708],{"type":52,"tag":91,"props":709,"children":711},{"className":710},[],[712],{"type":58,"value":713},"scribe_v2_realtime",{"type":52,"tag":684,"props":715,"children":716},{},[717],{"type":58,"value":718},"Low latency (~150ms)",{"type":52,"tag":684,"props":720,"children":721},{},[722],{"type":58,"value":723},"Live transcription, voice agents",{"type":52,"tag":657,"props":725,"children":726},{},[727,736,741],{"type":52,"tag":684,"props":728,"children":729},{},[730],{"type":52,"tag":91,"props":731,"children":733},{"className":732},[],[734],{"type":58,"value":735},"scribe_v2_realtime_turbo",{"type":52,"tag":684,"props":737,"children":738},{},[739],{"type":58,"value":740},"Realtime transcription variant",{"type":52,"tag":684,"props":742,"children":743},{},[744],{"type":58,"value":745},"Live transcription",{"type":52,"tag":657,"props":747,"children":748},{},[749,758,762],{"type":52,"tag":684,"props":750,"children":751},{},[752],{"type":52,"tag":91,"props":753,"children":755},{"className":754},[],[756],{"type":58,"value":757},"scribe_v2_realtime_lite",{"type":52,"tag":684,"props":759,"children":760},{},[761],{"type":58,"value":740},{"type":52,"tag":684,"props":763,"children":764},{},[765],{"type":58,"value":745},{"type":52,"tag":100,"props":767,"children":769},{"id":768},"transcription-with-timestamps",[770],{"type":58,"value":771},"Transcription with Timestamps",{"type":52,"tag":61,"props":773,"children":774},{},[775],{"type":58,"value":776},"Word-level timestamps include type classification and speaker identification:",{"type":52,"tag":114,"props":778,"children":780},{"className":116,"code":779,"language":109,"meta":118,"style":118},"result = client.speech_to_text.convert(\n    file=audio_file, model_id=\"scribe_v2\", timestamps_granularity=\"word\"\n)\n\nfor word in result.words:\n    print(f\"{word.text}: {word.start}s - {word.end}s (type: {word.type})\")\n\n",[781],{"type":52,"tag":91,"props":782,"children":783},{"__ignoreMap":118},[784,792,800,808,815,823],{"type":52,"tag":124,"props":785,"children":786},{"class":126,"line":127},[787],{"type":52,"tag":124,"props":788,"children":789},{},[790],{"type":58,"value":791},"result = client.speech_to_text.convert(\n",{"type":52,"tag":124,"props":793,"children":794},{"class":126,"line":136},[795],{"type":52,"tag":124,"props":796,"children":797},{},[798],{"type":58,"value":799},"    file=audio_file, model_id=\"scribe_v2\", timestamps_granularity=\"word\"\n",{"type":52,"tag":124,"props":801,"children":802},{"class":126,"line":146},[803],{"type":52,"tag":124,"props":804,"children":805},{},[806],{"type":58,"value":807},")\n",{"type":52,"tag":124,"props":809,"children":810},{"class":126,"line":155},[811],{"type":52,"tag":124,"props":812,"children":813},{"emptyLinePlaceholder":140},[814],{"type":58,"value":143},{"type":52,"tag":124,"props":816,"children":817},{"class":126,"line":163},[818],{"type":52,"tag":124,"props":819,"children":820},{},[821],{"type":58,"value":822},"for word in result.words:\n",{"type":52,"tag":124,"props":824,"children":825},{"class":126,"line":172},[826],{"type":52,"tag":124,"props":827,"children":828},{},[829],{"type":58,"value":830},"    print(f\"{word.text}: {word.start}s - {word.end}s (type: {word.type})\")\n",{"type":52,"tag":100,"props":832,"children":834},{"id":833},"speaker-diarization",[835],{"type":58,"value":836},"Speaker Diarization",{"type":52,"tag":61,"props":838,"children":839},{},[840],{"type":58,"value":841},"Identify WHO said WHAT - the model labels each word with a speaker ID, useful for meetings, interviews, or any multi-speaker audio:",{"type":52,"tag":114,"props":843,"children":845},{"className":116,"code":844,"language":109,"meta":118,"style":118},"result = client.speech_to_text.convert(\n    file=audio_file,\n    model_id=\"scribe_v2\",\n    diarize=True\n)\n\nfor word in result.words:\n    print(f\"[{word.speaker_id}] {word.text}\")\n",[846],{"type":52,"tag":91,"props":847,"children":848},{"__ignoreMap":118},[849,856,864,872,880,887,894,901],{"type":52,"tag":124,"props":850,"children":851},{"class":126,"line":127},[852],{"type":52,"tag":124,"props":853,"children":854},{},[855],{"type":58,"value":791},{"type":52,"tag":124,"props":857,"children":858},{"class":126,"line":136},[859],{"type":52,"tag":124,"props":860,"children":861},{},[862],{"type":58,"value":863},"    file=audio_file,\n",{"type":52,"tag":124,"props":865,"children":866},{"class":126,"line":146},[867],{"type":52,"tag":124,"props":868,"children":869},{},[870],{"type":58,"value":871},"    model_id=\"scribe_v2\",\n",{"type":52,"tag":124,"props":873,"children":874},{"class":126,"line":155},[875],{"type":52,"tag":124,"props":876,"children":877},{},[878],{"type":58,"value":879},"    diarize=True\n",{"type":52,"tag":124,"props":881,"children":882},{"class":126,"line":163},[883],{"type":52,"tag":124,"props":884,"children":885},{},[886],{"type":58,"value":807},{"type":52,"tag":124,"props":888,"children":889},{"class":126,"line":172},[890],{"type":52,"tag":124,"props":891,"children":892},{"emptyLinePlaceholder":140},[893],{"type":58,"value":143},{"type":52,"tag":124,"props":895,"children":896},{"class":126,"line":181},[897],{"type":52,"tag":124,"props":898,"children":899},{},[900],{"type":58,"value":822},{"type":52,"tag":124,"props":902,"children":903},{"class":126,"line":189},[904],{"type":52,"tag":124,"props":905,"children":906},{},[907],{"type":58,"value":908},"    print(f\"[{word.speaker_id}] {word.text}\")\n",{"type":52,"tag":61,"props":910,"children":911},{},[912,914,920,922,928,930,936,938,944,946,952],{"type":58,"value":913},"For call recordings, the batch API can label diarized speakers as ",{"type":52,"tag":91,"props":915,"children":917},{"className":916},[],[918],{"type":58,"value":919},"agent",{"type":58,"value":921}," and ",{"type":52,"tag":91,"props":923,"children":925},{"className":924},[],[926],{"type":58,"value":927},"customer",{"type":58,"value":929}," by setting ",{"type":52,"tag":91,"props":931,"children":933},{"className":932},[],[934],{"type":58,"value":935},"detect_speaker_roles=true",{"type":58,"value":937}," alongside ",{"type":52,"tag":91,"props":939,"children":941},{"className":940},[],[942],{"type":58,"value":943},"diarize=true",{"type":58,"value":945},". This option is not compatible with ",{"type":52,"tag":91,"props":947,"children":949},{"className":948},[],[950],{"type":58,"value":951},"use_multi_channel=true",{"type":58,"value":378},{"type":52,"tag":61,"props":954,"children":955},{},[956,958,964,966,971],{"type":58,"value":957},"If your workspace has registered speaker profiles, set ",{"type":52,"tag":91,"props":959,"children":961},{"className":960},[],[962],{"type":58,"value":963},"use_speaker_library=true",{"type":58,"value":965}," with ",{"type":52,"tag":91,"props":967,"children":969},{"className":968},[],[970],{"type":58,"value":943},{"type":58,"value":972}," to match detected speakers against the speaker library.",{"type":52,"tag":114,"props":974,"children":976},{"className":537,"code":975,"language":539,"meta":118,"style":118},"curl -X POST \"https:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Fspeech-to-text\" \\\n  -H \"xi-api-key: $ELEVENLABS_API_KEY\" \\\n  -F \"file=@call.mp3\" \\\n  -F \"model_id=scribe_v2\" \\\n  -F \"diarize=true\" \\\n  -F \"detect_speaker_roles=true\" \\\n  -F \"use_speaker_library=true\"\n",[977],{"type":52,"tag":91,"props":978,"children":979},{"__ignoreMap":118},[980,1011,1038,1063,1086,1109,1132],{"type":52,"tag":124,"props":981,"children":982},{"class":126,"line":127},[983,987,991,995,999,1003,1007],{"type":52,"tag":124,"props":984,"children":985},{"style":549},[986],{"type":58,"value":531},{"type":52,"tag":124,"props":988,"children":989},{"style":248},[990],{"type":58,"value":556},{"type":52,"tag":124,"props":992,"children":993},{"style":248},[994],{"type":58,"value":561},{"type":52,"tag":124,"props":996,"children":997},{"style":221},[998],{"type":58,"value":245},{"type":52,"tag":124,"props":1000,"children":1001},{"style":248},[1002],{"type":58,"value":570},{"type":52,"tag":124,"props":1004,"children":1005},{"style":221},[1006],{"type":58,"value":256},{"type":52,"tag":124,"props":1008,"children":1009},{"style":227},[1010],{"type":58,"value":579},{"type":52,"tag":124,"props":1012,"children":1013},{"class":126,"line":136},[1014,1018,1022,1026,1030,1034],{"type":52,"tag":124,"props":1015,"children":1016},{"style":248},[1017],{"type":58,"value":587},{"type":52,"tag":124,"props":1019,"children":1020},{"style":221},[1021],{"type":58,"value":245},{"type":52,"tag":124,"props":1023,"children":1024},{"style":248},[1025],{"type":58,"value":596},{"type":52,"tag":124,"props":1027,"children":1028},{"style":227},[1029],{"type":58,"value":601},{"type":52,"tag":124,"props":1031,"children":1032},{"style":221},[1033],{"type":58,"value":256},{"type":52,"tag":124,"props":1035,"children":1036},{"style":227},[1037],{"type":58,"value":579},{"type":52,"tag":124,"props":1039,"children":1040},{"class":126,"line":146},[1041,1046,1050,1055,1059],{"type":52,"tag":124,"props":1042,"children":1043},{"style":248},[1044],{"type":58,"value":1045},"  -F",{"type":52,"tag":124,"props":1047,"children":1048},{"style":221},[1049],{"type":58,"value":245},{"type":52,"tag":124,"props":1051,"children":1052},{"style":248},[1053],{"type":58,"value":1054},"file=@call.mp3",{"type":52,"tag":124,"props":1056,"children":1057},{"style":221},[1058],{"type":58,"value":256},{"type":52,"tag":124,"props":1060,"children":1061},{"style":227},[1062],{"type":58,"value":579},{"type":52,"tag":124,"props":1064,"children":1065},{"class":126,"line":155},[1066,1070,1074,1078,1082],{"type":52,"tag":124,"props":1067,"children":1068},{"style":248},[1069],{"type":58,"value":1045},{"type":52,"tag":124,"props":1071,"children":1072},{"style":221},[1073],{"type":58,"value":245},{"type":52,"tag":124,"props":1075,"children":1076},{"style":248},[1077],{"type":58,"value":636},{"type":52,"tag":124,"props":1079,"children":1080},{"style":221},[1081],{"type":58,"value":256},{"type":52,"tag":124,"props":1083,"children":1084},{"style":227},[1085],{"type":58,"value":579},{"type":52,"tag":124,"props":1087,"children":1088},{"class":126,"line":163},[1089,1093,1097,1101,1105],{"type":52,"tag":124,"props":1090,"children":1091},{"style":248},[1092],{"type":58,"value":1045},{"type":52,"tag":124,"props":1094,"children":1095},{"style":221},[1096],{"type":58,"value":245},{"type":52,"tag":124,"props":1098,"children":1099},{"style":248},[1100],{"type":58,"value":943},{"type":52,"tag":124,"props":1102,"children":1103},{"style":221},[1104],{"type":58,"value":256},{"type":52,"tag":124,"props":1106,"children":1107},{"style":227},[1108],{"type":58,"value":579},{"type":52,"tag":124,"props":1110,"children":1111},{"class":126,"line":172},[1112,1116,1120,1124,1128],{"type":52,"tag":124,"props":1113,"children":1114},{"style":248},[1115],{"type":58,"value":1045},{"type":52,"tag":124,"props":1117,"children":1118},{"style":221},[1119],{"type":58,"value":245},{"type":52,"tag":124,"props":1121,"children":1122},{"style":248},[1123],{"type":58,"value":935},{"type":52,"tag":124,"props":1125,"children":1126},{"style":221},[1127],{"type":58,"value":256},{"type":52,"tag":124,"props":1129,"children":1130},{"style":227},[1131],{"type":58,"value":579},{"type":52,"tag":124,"props":1133,"children":1134},{"class":126,"line":181},[1135,1139,1143,1147],{"type":52,"tag":124,"props":1136,"children":1137},{"style":248},[1138],{"type":58,"value":1045},{"type":52,"tag":124,"props":1140,"children":1141},{"style":221},[1142],{"type":58,"value":245},{"type":52,"tag":124,"props":1144,"children":1145},{"style":248},[1146],{"type":58,"value":963},{"type":52,"tag":124,"props":1148,"children":1149},{"style":221},[1150],{"type":58,"value":641},{"type":52,"tag":100,"props":1152,"children":1154},{"id":1153},"multichannel-audio",[1155],{"type":58,"value":1156},"Multichannel Audio",{"type":52,"tag":61,"props":1158,"children":1159},{},[1160,1162,1167,1169,1175,1177,1183,1185,1191],{"type":58,"value":1161},"Use ",{"type":52,"tag":91,"props":1163,"children":1165},{"className":1164},[],[1166],{"type":58,"value":951},{"type":58,"value":1168}," when each speaker is isolated on a separate audio channel. By default, the API returns one transcript per channel under ",{"type":52,"tag":91,"props":1170,"children":1172},{"className":1171},[],[1173],{"type":58,"value":1174},"transcripts",{"type":58,"value":1176},"; set ",{"type":52,"tag":91,"props":1178,"children":1180},{"className":1179},[],[1181],{"type":58,"value":1182},"multichannel_output_style=\"combined\"",{"type":58,"value":1184}," to receive one transcript merged by timestamp, with ",{"type":52,"tag":91,"props":1186,"children":1188},{"className":1187},[],[1189],{"type":58,"value":1190},"channel_index",{"type":58,"value":1192}," on each word.",{"type":52,"tag":114,"props":1194,"children":1196},{"className":116,"code":1195,"language":109,"meta":118,"style":118},"result = client.speech_to_text.convert(\n    file=audio_file,\n    model_id=\"scribe_v2\",\n    use_multi_channel=True,\n    multichannel_output_style=\"combined\",\n)\n",[1197],{"type":52,"tag":91,"props":1198,"children":1199},{"__ignoreMap":118},[1200,1207,1214,1221,1229,1237],{"type":52,"tag":124,"props":1201,"children":1202},{"class":126,"line":127},[1203],{"type":52,"tag":124,"props":1204,"children":1205},{},[1206],{"type":58,"value":791},{"type":52,"tag":124,"props":1208,"children":1209},{"class":126,"line":136},[1210],{"type":52,"tag":124,"props":1211,"children":1212},{},[1213],{"type":58,"value":863},{"type":52,"tag":124,"props":1215,"children":1216},{"class":126,"line":146},[1217],{"type":52,"tag":124,"props":1218,"children":1219},{},[1220],{"type":58,"value":871},{"type":52,"tag":124,"props":1222,"children":1223},{"class":126,"line":155},[1224],{"type":52,"tag":124,"props":1225,"children":1226},{},[1227],{"type":58,"value":1228},"    use_multi_channel=True,\n",{"type":52,"tag":124,"props":1230,"children":1231},{"class":126,"line":163},[1232],{"type":52,"tag":124,"props":1233,"children":1234},{},[1235],{"type":58,"value":1236},"    multichannel_output_style=\"combined\",\n",{"type":52,"tag":124,"props":1238,"children":1239},{"class":126,"line":172},[1240],{"type":52,"tag":124,"props":1241,"children":1242},{},[1243],{"type":58,"value":807},{"type":52,"tag":100,"props":1245,"children":1247},{"id":1246},"keyterm-prompting",[1248],{"type":58,"value":1249},"Keyterm Prompting",{"type":52,"tag":61,"props":1251,"children":1252},{},[1253],{"type":58,"value":1254},"Help the model recognize specific words it might otherwise mishear - product names, technical jargon, or unusual spellings (up to 100 terms):",{"type":52,"tag":114,"props":1256,"children":1258},{"className":116,"code":1257,"language":109,"meta":118,"style":118},"result = client.speech_to_text.convert(\n    file=audio_file,\n    model_id=\"scribe_v2\",\n    keyterms=[\"ElevenLabs\", \"Scribe\", \"API\"]\n)\n",[1259],{"type":52,"tag":91,"props":1260,"children":1261},{"__ignoreMap":118},[1262,1269,1276,1283,1291],{"type":52,"tag":124,"props":1263,"children":1264},{"class":126,"line":127},[1265],{"type":52,"tag":124,"props":1266,"children":1267},{},[1268],{"type":58,"value":791},{"type":52,"tag":124,"props":1270,"children":1271},{"class":126,"line":136},[1272],{"type":52,"tag":124,"props":1273,"children":1274},{},[1275],{"type":58,"value":863},{"type":52,"tag":124,"props":1277,"children":1278},{"class":126,"line":146},[1279],{"type":52,"tag":124,"props":1280,"children":1281},{},[1282],{"type":58,"value":871},{"type":52,"tag":124,"props":1284,"children":1285},{"class":126,"line":155},[1286],{"type":52,"tag":124,"props":1287,"children":1288},{},[1289],{"type":58,"value":1290},"    keyterms=[\"ElevenLabs\", \"Scribe\", \"API\"]\n",{"type":52,"tag":124,"props":1292,"children":1293},{"class":126,"line":163},[1294],{"type":52,"tag":124,"props":1295,"children":1296},{},[1297],{"type":58,"value":807},{"type":52,"tag":100,"props":1299,"children":1301},{"id":1300},"language-detection",[1302],{"type":58,"value":1303},"Language Detection",{"type":52,"tag":61,"props":1305,"children":1306},{},[1307],{"type":58,"value":1308},"Automatic detection with optional language hint:",{"type":52,"tag":114,"props":1310,"children":1312},{"className":116,"code":1311,"language":109,"meta":118,"style":118},"result = client.speech_to_text.convert(\n    file=audio_file,\n    model_id=\"scribe_v2\",\n    language_code=\"eng\"  # ISO 639-1 or ISO 639-3 code\n)\n\nprint(f\"Detected: {result.language_code} ({result.language_probability:.0%})\")\n",[1313],{"type":52,"tag":91,"props":1314,"children":1315},{"__ignoreMap":118},[1316,1323,1330,1337,1345,1352,1359],{"type":52,"tag":124,"props":1317,"children":1318},{"class":126,"line":127},[1319],{"type":52,"tag":124,"props":1320,"children":1321},{},[1322],{"type":58,"value":791},{"type":52,"tag":124,"props":1324,"children":1325},{"class":126,"line":136},[1326],{"type":52,"tag":124,"props":1327,"children":1328},{},[1329],{"type":58,"value":863},{"type":52,"tag":124,"props":1331,"children":1332},{"class":126,"line":146},[1333],{"type":52,"tag":124,"props":1334,"children":1335},{},[1336],{"type":58,"value":871},{"type":52,"tag":124,"props":1338,"children":1339},{"class":126,"line":155},[1340],{"type":52,"tag":124,"props":1341,"children":1342},{},[1343],{"type":58,"value":1344},"    language_code=\"eng\"  # ISO 639-1 or ISO 639-3 code\n",{"type":52,"tag":124,"props":1346,"children":1347},{"class":126,"line":163},[1348],{"type":52,"tag":124,"props":1349,"children":1350},{},[1351],{"type":58,"value":807},{"type":52,"tag":124,"props":1353,"children":1354},{"class":126,"line":172},[1355],{"type":52,"tag":124,"props":1356,"children":1357},{"emptyLinePlaceholder":140},[1358],{"type":58,"value":143},{"type":52,"tag":124,"props":1360,"children":1361},{"class":126,"line":181},[1362],{"type":52,"tag":124,"props":1363,"children":1364},{},[1365],{"type":58,"value":1366},"print(f\"Detected: {result.language_code} ({result.language_probability:.0%})\")\n",{"type":52,"tag":100,"props":1368,"children":1370},{"id":1369},"supported-formats",[1371],{"type":58,"value":1372},"Supported Formats",{"type":52,"tag":61,"props":1374,"children":1375},{},[1376,1381,1383,1388],{"type":52,"tag":74,"props":1377,"children":1378},{},[1379],{"type":58,"value":1380},"Audio:",{"type":58,"value":1382}," MP3, WAV, M4A, FLAC, OGG, WebM, AAC, AIFF, Opus\n",{"type":52,"tag":74,"props":1384,"children":1385},{},[1386],{"type":58,"value":1387},"Video:",{"type":58,"value":1389}," MP4, AVI, MKV, MOV, WMV, FLV, WebM, MPEG, 3GPP",{"type":52,"tag":61,"props":1391,"children":1392},{},[1393,1398],{"type":52,"tag":74,"props":1394,"children":1395},{},[1396],{"type":58,"value":1397},"Limits:",{"type":58,"value":1399}," Up to 5.0GB file size, 10 hours duration",{"type":52,"tag":100,"props":1401,"children":1403},{"id":1402},"response-format",[1404],{"type":58,"value":1405},"Response Format",{"type":52,"tag":114,"props":1407,"children":1411},{"className":1408,"code":1409,"language":1410,"meta":118,"style":118},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"text\": \"The full transcription text\",\n  \"language_code\": \"eng\",\n  \"language_probability\": 0.98,\n  \"words\": [\n    {\"text\": \"The\", \"start\": 0.0, \"end\": 0.15, \"type\": \"word\", \"speaker_id\": \"speaker_0\"},\n    {\"text\": \" \", \"start\": 0.15, \"end\": 0.16, \"type\": \"spacing\", \"speaker_id\": \"speaker_0\"}\n  ]\n}\n","json",[1412],{"type":52,"tag":91,"props":1413,"children":1414},{"__ignoreMap":118},[1415,1422,1459,1496,1526,1551,1714,1864,1872],{"type":52,"tag":124,"props":1416,"children":1417},{"class":126,"line":127},[1418],{"type":52,"tag":124,"props":1419,"children":1420},{"style":221},[1421],{"type":58,"value":402},{"type":52,"tag":124,"props":1423,"children":1424},{"class":126,"line":136},[1425,1430,1434,1438,1442,1446,1451,1455],{"type":52,"tag":124,"props":1426,"children":1427},{"style":221},[1428],{"type":58,"value":1429},"  \"",{"type":52,"tag":124,"props":1431,"children":1432},{"style":315},[1433],{"type":58,"value":58},{"type":52,"tag":124,"props":1435,"children":1436},{"style":221},[1437],{"type":58,"value":256},{"type":52,"tag":124,"props":1439,"children":1440},{"style":221},[1441],{"type":58,"value":416},{"type":52,"tag":124,"props":1443,"children":1444},{"style":221},[1445],{"type":58,"value":245},{"type":52,"tag":124,"props":1447,"children":1448},{"style":248},[1449],{"type":58,"value":1450},"The full transcription text",{"type":52,"tag":124,"props":1452,"children":1453},{"style":221},[1454],{"type":58,"value":256},{"type":52,"tag":124,"props":1456,"children":1457},{"style":221},[1458],{"type":58,"value":447},{"type":52,"tag":124,"props":1460,"children":1461},{"class":126,"line":146},[1462,1466,1471,1475,1479,1483,1488,1492],{"type":52,"tag":124,"props":1463,"children":1464},{"style":221},[1465],{"type":58,"value":1429},{"type":52,"tag":124,"props":1467,"children":1468},{"style":315},[1469],{"type":58,"value":1470},"language_code",{"type":52,"tag":124,"props":1472,"children":1473},{"style":221},[1474],{"type":58,"value":256},{"type":52,"tag":124,"props":1476,"children":1477},{"style":221},[1478],{"type":58,"value":416},{"type":52,"tag":124,"props":1480,"children":1481},{"style":221},[1482],{"type":58,"value":245},{"type":52,"tag":124,"props":1484,"children":1485},{"style":248},[1486],{"type":58,"value":1487},"eng",{"type":52,"tag":124,"props":1489,"children":1490},{"style":221},[1491],{"type":58,"value":256},{"type":52,"tag":124,"props":1493,"children":1494},{"style":221},[1495],{"type":58,"value":447},{"type":52,"tag":124,"props":1497,"children":1498},{"class":126,"line":155},[1499,1503,1508,1512,1516,1522],{"type":52,"tag":124,"props":1500,"children":1501},{"style":221},[1502],{"type":58,"value":1429},{"type":52,"tag":124,"props":1504,"children":1505},{"style":315},[1506],{"type":58,"value":1507},"language_probability",{"type":52,"tag":124,"props":1509,"children":1510},{"style":221},[1511],{"type":58,"value":256},{"type":52,"tag":124,"props":1513,"children":1514},{"style":221},[1515],{"type":58,"value":416},{"type":52,"tag":124,"props":1517,"children":1519},{"style":1518},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1520],{"type":58,"value":1521}," 0.98",{"type":52,"tag":124,"props":1523,"children":1524},{"style":221},[1525],{"type":58,"value":447},{"type":52,"tag":124,"props":1527,"children":1528},{"class":126,"line":163},[1529,1533,1538,1542,1546],{"type":52,"tag":124,"props":1530,"children":1531},{"style":221},[1532],{"type":58,"value":1429},{"type":52,"tag":124,"props":1534,"children":1535},{"style":315},[1536],{"type":58,"value":1537},"words",{"type":52,"tag":124,"props":1539,"children":1540},{"style":221},[1541],{"type":58,"value":256},{"type":52,"tag":124,"props":1543,"children":1544},{"style":221},[1545],{"type":58,"value":416},{"type":52,"tag":124,"props":1547,"children":1548},{"style":221},[1549],{"type":58,"value":1550}," [\n",{"type":52,"tag":124,"props":1552,"children":1553},{"class":126,"line":172},[1554,1559,1563,1567,1571,1575,1579,1584,1588,1593,1597,1602,1606,1610,1615,1619,1623,1628,1632,1636,1641,1645,1649,1654,1658,1662,1666,1671,1675,1679,1683,1688,1692,1696,1700,1705,1709],{"type":52,"tag":124,"props":1555,"children":1556},{"style":221},[1557],{"type":58,"value":1558},"    {",{"type":52,"tag":124,"props":1560,"children":1561},{"style":221},[1562],{"type":58,"value":256},{"type":52,"tag":124,"props":1564,"children":1565},{"style":549},[1566],{"type":58,"value":58},{"type":52,"tag":124,"props":1568,"children":1569},{"style":221},[1570],{"type":58,"value":256},{"type":52,"tag":124,"props":1572,"children":1573},{"style":221},[1574],{"type":58,"value":416},{"type":52,"tag":124,"props":1576,"children":1577},{"style":221},[1578],{"type":58,"value":245},{"type":52,"tag":124,"props":1580,"children":1581},{"style":248},[1582],{"type":58,"value":1583},"The",{"type":52,"tag":124,"props":1585,"children":1586},{"style":221},[1587],{"type":58,"value":256},{"type":52,"tag":124,"props":1589,"children":1590},{"style":221},[1591],{"type":58,"value":1592},",",{"type":52,"tag":124,"props":1594,"children":1595},{"style":221},[1596],{"type":58,"value":245},{"type":52,"tag":124,"props":1598,"children":1599},{"style":549},[1600],{"type":58,"value":1601},"start",{"type":52,"tag":124,"props":1603,"children":1604},{"style":221},[1605],{"type":58,"value":256},{"type":52,"tag":124,"props":1607,"children":1608},{"style":221},[1609],{"type":58,"value":416},{"type":52,"tag":124,"props":1611,"children":1612},{"style":1518},[1613],{"type":58,"value":1614}," 0.0",{"type":52,"tag":124,"props":1616,"children":1617},{"style":221},[1618],{"type":58,"value":1592},{"type":52,"tag":124,"props":1620,"children":1621},{"style":221},[1622],{"type":58,"value":245},{"type":52,"tag":124,"props":1624,"children":1625},{"style":549},[1626],{"type":58,"value":1627},"end",{"type":52,"tag":124,"props":1629,"children":1630},{"style":221},[1631],{"type":58,"value":256},{"type":52,"tag":124,"props":1633,"children":1634},{"style":221},[1635],{"type":58,"value":416},{"type":52,"tag":124,"props":1637,"children":1638},{"style":1518},[1639],{"type":58,"value":1640}," 0.15",{"type":52,"tag":124,"props":1642,"children":1643},{"style":221},[1644],{"type":58,"value":1592},{"type":52,"tag":124,"props":1646,"children":1647},{"style":221},[1648],{"type":58,"value":245},{"type":52,"tag":124,"props":1650,"children":1651},{"style":549},[1652],{"type":58,"value":1653},"type",{"type":52,"tag":124,"props":1655,"children":1656},{"style":221},[1657],{"type":58,"value":256},{"type":52,"tag":124,"props":1659,"children":1660},{"style":221},[1661],{"type":58,"value":416},{"type":52,"tag":124,"props":1663,"children":1664},{"style":221},[1665],{"type":58,"value":245},{"type":52,"tag":124,"props":1667,"children":1668},{"style":248},[1669],{"type":58,"value":1670},"word",{"type":52,"tag":124,"props":1672,"children":1673},{"style":221},[1674],{"type":58,"value":256},{"type":52,"tag":124,"props":1676,"children":1677},{"style":221},[1678],{"type":58,"value":1592},{"type":52,"tag":124,"props":1680,"children":1681},{"style":221},[1682],{"type":58,"value":245},{"type":52,"tag":124,"props":1684,"children":1685},{"style":549},[1686],{"type":58,"value":1687},"speaker_id",{"type":52,"tag":124,"props":1689,"children":1690},{"style":221},[1691],{"type":58,"value":256},{"type":52,"tag":124,"props":1693,"children":1694},{"style":221},[1695],{"type":58,"value":416},{"type":52,"tag":124,"props":1697,"children":1698},{"style":221},[1699],{"type":58,"value":245},{"type":52,"tag":124,"props":1701,"children":1702},{"style":248},[1703],{"type":58,"value":1704},"speaker_0",{"type":52,"tag":124,"props":1706,"children":1707},{"style":221},[1708],{"type":58,"value":256},{"type":52,"tag":124,"props":1710,"children":1711},{"style":221},[1712],{"type":58,"value":1713},"},\n",{"type":52,"tag":124,"props":1715,"children":1716},{"class":126,"line":181},[1717,1721,1725,1729,1733,1737,1741,1745,1749,1753,1757,1761,1765,1769,1773,1777,1781,1785,1789,1794,1798,1802,1806,1810,1814,1818,1823,1827,1831,1835,1839,1843,1847,1851,1855,1859],{"type":52,"tag":124,"props":1718,"children":1719},{"style":221},[1720],{"type":58,"value":1558},{"type":52,"tag":124,"props":1722,"children":1723},{"style":221},[1724],{"type":58,"value":256},{"type":52,"tag":124,"props":1726,"children":1727},{"style":549},[1728],{"type":58,"value":58},{"type":52,"tag":124,"props":1730,"children":1731},{"style":221},[1732],{"type":58,"value":256},{"type":52,"tag":124,"props":1734,"children":1735},{"style":221},[1736],{"type":58,"value":416},{"type":52,"tag":124,"props":1738,"children":1739},{"style":221},[1740],{"type":58,"value":245},{"type":52,"tag":124,"props":1742,"children":1743},{"style":221},[1744],{"type":58,"value":245},{"type":52,"tag":124,"props":1746,"children":1747},{"style":221},[1748],{"type":58,"value":1592},{"type":52,"tag":124,"props":1750,"children":1751},{"style":221},[1752],{"type":58,"value":245},{"type":52,"tag":124,"props":1754,"children":1755},{"style":549},[1756],{"type":58,"value":1601},{"type":52,"tag":124,"props":1758,"children":1759},{"style":221},[1760],{"type":58,"value":256},{"type":52,"tag":124,"props":1762,"children":1763},{"style":221},[1764],{"type":58,"value":416},{"type":52,"tag":124,"props":1766,"children":1767},{"style":1518},[1768],{"type":58,"value":1640},{"type":52,"tag":124,"props":1770,"children":1771},{"style":221},[1772],{"type":58,"value":1592},{"type":52,"tag":124,"props":1774,"children":1775},{"style":221},[1776],{"type":58,"value":245},{"type":52,"tag":124,"props":1778,"children":1779},{"style":549},[1780],{"type":58,"value":1627},{"type":52,"tag":124,"props":1782,"children":1783},{"style":221},[1784],{"type":58,"value":256},{"type":52,"tag":124,"props":1786,"children":1787},{"style":221},[1788],{"type":58,"value":416},{"type":52,"tag":124,"props":1790,"children":1791},{"style":1518},[1792],{"type":58,"value":1793}," 0.16",{"type":52,"tag":124,"props":1795,"children":1796},{"style":221},[1797],{"type":58,"value":1592},{"type":52,"tag":124,"props":1799,"children":1800},{"style":221},[1801],{"type":58,"value":245},{"type":52,"tag":124,"props":1803,"children":1804},{"style":549},[1805],{"type":58,"value":1653},{"type":52,"tag":124,"props":1807,"children":1808},{"style":221},[1809],{"type":58,"value":256},{"type":52,"tag":124,"props":1811,"children":1812},{"style":221},[1813],{"type":58,"value":416},{"type":52,"tag":124,"props":1815,"children":1816},{"style":221},[1817],{"type":58,"value":245},{"type":52,"tag":124,"props":1819,"children":1820},{"style":248},[1821],{"type":58,"value":1822},"spacing",{"type":52,"tag":124,"props":1824,"children":1825},{"style":221},[1826],{"type":58,"value":256},{"type":52,"tag":124,"props":1828,"children":1829},{"style":221},[1830],{"type":58,"value":1592},{"type":52,"tag":124,"props":1832,"children":1833},{"style":221},[1834],{"type":58,"value":245},{"type":52,"tag":124,"props":1836,"children":1837},{"style":549},[1838],{"type":58,"value":1687},{"type":52,"tag":124,"props":1840,"children":1841},{"style":221},[1842],{"type":58,"value":256},{"type":52,"tag":124,"props":1844,"children":1845},{"style":221},[1846],{"type":58,"value":416},{"type":52,"tag":124,"props":1848,"children":1849},{"style":221},[1850],{"type":58,"value":245},{"type":52,"tag":124,"props":1852,"children":1853},{"style":248},[1854],{"type":58,"value":1704},{"type":52,"tag":124,"props":1856,"children":1857},{"style":221},[1858],{"type":58,"value":256},{"type":52,"tag":124,"props":1860,"children":1861},{"style":221},[1862],{"type":58,"value":1863},"}\n",{"type":52,"tag":124,"props":1865,"children":1866},{"class":126,"line":189},[1867],{"type":52,"tag":124,"props":1868,"children":1869},{"style":221},[1870],{"type":58,"value":1871},"  ]\n",{"type":52,"tag":124,"props":1873,"children":1874},{"class":126,"line":495},[1875],{"type":52,"tag":124,"props":1876,"children":1877},{"style":221},[1878],{"type":58,"value":1863},{"type":52,"tag":61,"props":1880,"children":1881},{},[1882],{"type":52,"tag":74,"props":1883,"children":1884},{},[1885],{"type":58,"value":1886},"Word types:",{"type":52,"tag":1888,"props":1889,"children":1890},"ul",{},[1891,1902,1912],{"type":52,"tag":1892,"props":1893,"children":1894},"li",{},[1895,1900],{"type":52,"tag":91,"props":1896,"children":1898},{"className":1897},[],[1899],{"type":58,"value":1670},{"type":58,"value":1901}," - An actual spoken word",{"type":52,"tag":1892,"props":1903,"children":1904},{},[1905,1910],{"type":52,"tag":91,"props":1906,"children":1908},{"className":1907},[],[1909],{"type":58,"value":1822},{"type":58,"value":1911}," - Whitespace between words (useful for precise timing)",{"type":52,"tag":1892,"props":1913,"children":1914},{},[1915,1921],{"type":52,"tag":91,"props":1916,"children":1918},{"className":1917},[],[1919],{"type":58,"value":1920},"audio_event",{"type":58,"value":1922}," - Non-speech sounds the model detected (laughter, applause, music, etc.)",{"type":52,"tag":100,"props":1924,"children":1926},{"id":1925},"error-handling",[1927],{"type":58,"value":1928},"Error Handling",{"type":52,"tag":114,"props":1930,"children":1932},{"className":116,"code":1931,"language":109,"meta":118,"style":118},"try:\n    result = client.speech_to_text.convert(file=audio_file, model_id=\"scribe_v2\")\nexcept Exception as e:\n    print(f\"Transcription failed: {e}\")\n",[1933],{"type":52,"tag":91,"props":1934,"children":1935},{"__ignoreMap":118},[1936,1944,1951,1959],{"type":52,"tag":124,"props":1937,"children":1938},{"class":126,"line":127},[1939],{"type":52,"tag":124,"props":1940,"children":1941},{},[1942],{"type":58,"value":1943},"try:\n",{"type":52,"tag":124,"props":1945,"children":1946},{"class":126,"line":136},[1947],{"type":52,"tag":124,"props":1948,"children":1949},{},[1950],{"type":58,"value":178},{"type":52,"tag":124,"props":1952,"children":1953},{"class":126,"line":146},[1954],{"type":52,"tag":124,"props":1955,"children":1956},{},[1957],{"type":58,"value":1958},"except Exception as e:\n",{"type":52,"tag":124,"props":1960,"children":1961},{"class":126,"line":155},[1962],{"type":52,"tag":124,"props":1963,"children":1964},{},[1965],{"type":58,"value":1966},"    print(f\"Transcription failed: {e}\")\n",{"type":52,"tag":61,"props":1968,"children":1969},{},[1970],{"type":58,"value":1971},"Common errors:",{"type":52,"tag":1888,"props":1973,"children":1974},{},[1975,1985,1995],{"type":52,"tag":1892,"props":1976,"children":1977},{},[1978,1983],{"type":52,"tag":74,"props":1979,"children":1980},{},[1981],{"type":58,"value":1982},"401",{"type":58,"value":1984},": Invalid API key",{"type":52,"tag":1892,"props":1986,"children":1987},{},[1988,1993],{"type":52,"tag":74,"props":1989,"children":1990},{},[1991],{"type":58,"value":1992},"422",{"type":58,"value":1994},": Invalid parameters",{"type":52,"tag":1892,"props":1996,"children":1997},{},[1998,2003],{"type":52,"tag":74,"props":1999,"children":2000},{},[2001],{"type":58,"value":2002},"429",{"type":58,"value":2004},": Rate limit exceeded",{"type":52,"tag":100,"props":2006,"children":2008},{"id":2007},"tracking-costs",[2009],{"type":58,"value":2010},"Tracking Costs",{"type":52,"tag":61,"props":2012,"children":2013},{},[2014,2016,2022],{"type":58,"value":2015},"Monitor usage via ",{"type":52,"tag":91,"props":2017,"children":2019},{"className":2018},[],[2020],{"type":58,"value":2021},"request-id",{"type":58,"value":2023}," response header:",{"type":52,"tag":114,"props":2025,"children":2027},{"className":116,"code":2026,"language":109,"meta":118,"style":118},"response = client.speech_to_text.convert.with_raw_response(file=audio_file, model_id=\"scribe_v2\")\nresult = response.parse()\nprint(f\"Request ID: {response.headers.get('request-id')}\")\n",[2028],{"type":52,"tag":91,"props":2029,"children":2030},{"__ignoreMap":118},[2031,2039,2047],{"type":52,"tag":124,"props":2032,"children":2033},{"class":126,"line":127},[2034],{"type":52,"tag":124,"props":2035,"children":2036},{},[2037],{"type":58,"value":2038},"response = client.speech_to_text.convert.with_raw_response(file=audio_file, model_id=\"scribe_v2\")\n",{"type":52,"tag":124,"props":2040,"children":2041},{"class":126,"line":136},[2042],{"type":52,"tag":124,"props":2043,"children":2044},{},[2045],{"type":58,"value":2046},"result = response.parse()\n",{"type":52,"tag":124,"props":2048,"children":2049},{"class":126,"line":146},[2050],{"type":52,"tag":124,"props":2051,"children":2052},{},[2053],{"type":58,"value":2054},"print(f\"Request ID: {response.headers.get('request-id')}\")\n",{"type":52,"tag":100,"props":2056,"children":2058},{"id":2057},"real-time-streaming",[2059],{"type":58,"value":2060},"Real-Time Streaming",{"type":52,"tag":61,"props":2062,"children":2063},{},[2064],{"type":58,"value":2065},"For live transcription with ultra-low latency (~150ms), use the real-time API. The real-time API produces two types of transcripts:",{"type":52,"tag":1888,"props":2067,"children":2068},{},[2069,2079],{"type":52,"tag":1892,"props":2070,"children":2071},{},[2072,2077],{"type":52,"tag":74,"props":2073,"children":2074},{},[2075],{"type":58,"value":2076},"Partial transcripts",{"type":58,"value":2078},": Interim results that update frequently as audio is processed - use these for live feedback (e.g., showing text as the user speaks)",{"type":52,"tag":1892,"props":2080,"children":2081},{},[2082,2087],{"type":52,"tag":74,"props":2083,"children":2084},{},[2085],{"type":58,"value":2086},"Committed transcripts",{"type":58,"value":2088},": Final, stable results after you \"commit\" - use these as the source of truth for your application",{"type":52,"tag":61,"props":2090,"children":2091},{},[2092],{"type":58,"value":2093},"A \"commit\" tells the model to finalize the current segment. You can commit manually (e.g., when the user pauses) or use Voice Activity Detection (VAD) to auto-commit on silence.",{"type":52,"tag":107,"props":2095,"children":2097},{"id":2096},"python-server-side",[2098],{"type":58,"value":2099},"Python (Server-Side)",{"type":52,"tag":114,"props":2101,"children":2103},{"className":116,"code":2102,"language":109,"meta":118,"style":118},"import asyncio\nfrom elevenlabs import ElevenLabs\n\nclient = ElevenLabs()\n\nasync def transcribe_realtime():\n    async with client.speech_to_text.realtime.connect(\n        model_id=\"scribe_v2_realtime\",\n        include_timestamps=True,\n        keyterms=[\"ElevenLabs\", \"Scribe\"],\n        no_verbatim=True,\n    ) as connection:\n        await connection.stream_url(\"https:\u002F\u002Fexample.com\u002Faudio.mp3\")\n\n        async for event in connection:\n            if event.type == \"partial_transcript\":\n                print(f\"Partial: {event.text}\")\n            elif event.type == \"committed_transcript\":\n                print(f\"Final: {event.text}\")\n\nasyncio.run(transcribe_realtime())\n",[2104],{"type":52,"tag":91,"props":2105,"children":2106},{"__ignoreMap":118},[2107,2115,2122,2129,2136,2143,2151,2159,2167,2175,2184,2193,2202,2211,2219,2228,2237,2246,2255,2264,2272],{"type":52,"tag":124,"props":2108,"children":2109},{"class":126,"line":127},[2110],{"type":52,"tag":124,"props":2111,"children":2112},{},[2113],{"type":58,"value":2114},"import asyncio\n",{"type":52,"tag":124,"props":2116,"children":2117},{"class":126,"line":136},[2118],{"type":52,"tag":124,"props":2119,"children":2120},{},[2121],{"type":58,"value":133},{"type":52,"tag":124,"props":2123,"children":2124},{"class":126,"line":146},[2125],{"type":52,"tag":124,"props":2126,"children":2127},{"emptyLinePlaceholder":140},[2128],{"type":58,"value":143},{"type":52,"tag":124,"props":2130,"children":2131},{"class":126,"line":155},[2132],{"type":52,"tag":124,"props":2133,"children":2134},{},[2135],{"type":58,"value":152},{"type":52,"tag":124,"props":2137,"children":2138},{"class":126,"line":163},[2139],{"type":52,"tag":124,"props":2140,"children":2141},{"emptyLinePlaceholder":140},[2142],{"type":58,"value":143},{"type":52,"tag":124,"props":2144,"children":2145},{"class":126,"line":172},[2146],{"type":52,"tag":124,"props":2147,"children":2148},{},[2149],{"type":58,"value":2150},"async def transcribe_realtime():\n",{"type":52,"tag":124,"props":2152,"children":2153},{"class":126,"line":181},[2154],{"type":52,"tag":124,"props":2155,"children":2156},{},[2157],{"type":58,"value":2158},"    async with client.speech_to_text.realtime.connect(\n",{"type":52,"tag":124,"props":2160,"children":2161},{"class":126,"line":189},[2162],{"type":52,"tag":124,"props":2163,"children":2164},{},[2165],{"type":58,"value":2166},"        model_id=\"scribe_v2_realtime\",\n",{"type":52,"tag":124,"props":2168,"children":2169},{"class":126,"line":495},[2170],{"type":52,"tag":124,"props":2171,"children":2172},{},[2173],{"type":58,"value":2174},"        include_timestamps=True,\n",{"type":52,"tag":124,"props":2176,"children":2178},{"class":126,"line":2177},10,[2179],{"type":52,"tag":124,"props":2180,"children":2181},{},[2182],{"type":58,"value":2183},"        keyterms=[\"ElevenLabs\", \"Scribe\"],\n",{"type":52,"tag":124,"props":2185,"children":2187},{"class":126,"line":2186},11,[2188],{"type":52,"tag":124,"props":2189,"children":2190},{},[2191],{"type":58,"value":2192},"        no_verbatim=True,\n",{"type":52,"tag":124,"props":2194,"children":2196},{"class":126,"line":2195},12,[2197],{"type":52,"tag":124,"props":2198,"children":2199},{},[2200],{"type":58,"value":2201},"    ) as connection:\n",{"type":52,"tag":124,"props":2203,"children":2205},{"class":126,"line":2204},13,[2206],{"type":52,"tag":124,"props":2207,"children":2208},{},[2209],{"type":58,"value":2210},"        await connection.stream_url(\"https:\u002F\u002Fexample.com\u002Faudio.mp3\")\n",{"type":52,"tag":124,"props":2212,"children":2214},{"class":126,"line":2213},14,[2215],{"type":52,"tag":124,"props":2216,"children":2217},{"emptyLinePlaceholder":140},[2218],{"type":58,"value":143},{"type":52,"tag":124,"props":2220,"children":2222},{"class":126,"line":2221},15,[2223],{"type":52,"tag":124,"props":2224,"children":2225},{},[2226],{"type":58,"value":2227},"        async for event in connection:\n",{"type":52,"tag":124,"props":2229,"children":2231},{"class":126,"line":2230},16,[2232],{"type":52,"tag":124,"props":2233,"children":2234},{},[2235],{"type":58,"value":2236},"            if event.type == \"partial_transcript\":\n",{"type":52,"tag":124,"props":2238,"children":2240},{"class":126,"line":2239},17,[2241],{"type":52,"tag":124,"props":2242,"children":2243},{},[2244],{"type":58,"value":2245},"                print(f\"Partial: {event.text}\")\n",{"type":52,"tag":124,"props":2247,"children":2249},{"class":126,"line":2248},18,[2250],{"type":52,"tag":124,"props":2251,"children":2252},{},[2253],{"type":58,"value":2254},"            elif event.type == \"committed_transcript\":\n",{"type":52,"tag":124,"props":2256,"children":2258},{"class":126,"line":2257},19,[2259],{"type":52,"tag":124,"props":2260,"children":2261},{},[2262],{"type":58,"value":2263},"                print(f\"Final: {event.text}\")\n",{"type":52,"tag":124,"props":2265,"children":2267},{"class":126,"line":2266},20,[2268],{"type":52,"tag":124,"props":2269,"children":2270},{"emptyLinePlaceholder":140},[2271],{"type":58,"value":143},{"type":52,"tag":124,"props":2273,"children":2275},{"class":126,"line":2274},21,[2276],{"type":52,"tag":124,"props":2277,"children":2278},{},[2279],{"type":58,"value":2280},"asyncio.run(transcribe_realtime())\n",{"type":52,"tag":107,"props":2282,"children":2284},{"id":2283},"javascript-client-side-with-react",[2285],{"type":58,"value":2286},"JavaScript (Client-Side with React)",{"type":52,"tag":114,"props":2288,"children":2292},{"className":2289,"code":2290,"language":2291,"meta":118,"style":118},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { useScribe, CommitStrategy } from \"@elevenlabs\u002Freact\";\n\nfunction TranscriptionComponent() {\n  const [transcript, setTranscript] = useState(\"\");\n\n  const scribe = useScribe({\n    modelId: \"scribe_v2_realtime\",\n    commitStrategy: CommitStrategy.VAD, \u002F\u002F Auto-commit on silence for mic input\n    keyterms: [\"ElevenLabs\", \"Scribe\"],\n    noVerbatim: true,\n    includeLanguageDetection: true,\n    onPartialTranscript: (data) => console.log(\"Partial:\", data.text),\n    onCommittedTranscript: (data) => setTranscript((prev) => prev + data.text),\n  });\n\n  const start = async () => {\n    \u002F\u002F Get token from your backend (never expose API key to client)\n    const { token } = await fetch(\"\u002Fscribe-token\").then((r) => r.json());\n\n    await scribe.connect({\n      token,\n      microphone: { echoCancellation: true, noiseSuppression: true },\n    });\n  };\n\n  return \u003Cbutton onClick={start}>Start Recording\u003C\u002Fbutton>;\n}\n","typescript",[2293],{"type":52,"tag":91,"props":2294,"children":2295},{"__ignoreMap":118},[2296,2346,2353,2375,2434,2441,2469,2497,2532,2585,2607,2627,2714,2797,2813,2820,2854,2862,2969,2976,3005,3017,3069,3086,3095,3103,3173],{"type":52,"tag":124,"props":2297,"children":2298},{"class":126,"line":127},[2299,2303,2307,2312,2316,2321,2325,2329,2333,2338,2342],{"type":52,"tag":124,"props":2300,"children":2301},{"style":215},[2302],{"type":58,"value":218},{"type":52,"tag":124,"props":2304,"children":2305},{"style":221},[2306],{"type":58,"value":224},{"type":52,"tag":124,"props":2308,"children":2309},{"style":227},[2310],{"type":58,"value":2311}," useScribe",{"type":52,"tag":124,"props":2313,"children":2314},{"style":221},[2315],{"type":58,"value":1592},{"type":52,"tag":124,"props":2317,"children":2318},{"style":227},[2319],{"type":58,"value":2320}," CommitStrategy",{"type":52,"tag":124,"props":2322,"children":2323},{"style":221},[2324],{"type":58,"value":235},{"type":52,"tag":124,"props":2326,"children":2327},{"style":215},[2328],{"type":58,"value":240},{"type":52,"tag":124,"props":2330,"children":2331},{"style":221},[2332],{"type":58,"value":245},{"type":52,"tag":124,"props":2334,"children":2335},{"style":248},[2336],{"type":58,"value":2337},"@elevenlabs\u002Freact",{"type":52,"tag":124,"props":2339,"children":2340},{"style":221},[2341],{"type":58,"value":256},{"type":52,"tag":124,"props":2343,"children":2344},{"style":221},[2345],{"type":58,"value":261},{"type":52,"tag":124,"props":2347,"children":2348},{"class":126,"line":136},[2349],{"type":52,"tag":124,"props":2350,"children":2351},{"emptyLinePlaceholder":140},[2352],{"type":58,"value":143},{"type":52,"tag":124,"props":2354,"children":2355},{"class":126,"line":146},[2356,2361,2366,2370],{"type":52,"tag":124,"props":2357,"children":2358},{"style":315},[2359],{"type":58,"value":2360},"function",{"type":52,"tag":124,"props":2362,"children":2363},{"style":336},[2364],{"type":58,"value":2365}," TranscriptionComponent",{"type":52,"tag":124,"props":2367,"children":2368},{"style":221},[2369],{"type":58,"value":343},{"type":52,"tag":124,"props":2371,"children":2372},{"style":221},[2373],{"type":58,"value":2374}," {\n",{"type":52,"tag":124,"props":2376,"children":2377},{"class":126,"line":155},[2378,2383,2388,2393,2397,2402,2407,2412,2417,2421,2426,2430],{"type":52,"tag":124,"props":2379,"children":2380},{"style":315},[2381],{"type":58,"value":2382},"  const",{"type":52,"tag":124,"props":2384,"children":2385},{"style":221},[2386],{"type":58,"value":2387}," [",{"type":52,"tag":124,"props":2389,"children":2390},{"style":227},[2391],{"type":58,"value":2392},"transcript",{"type":52,"tag":124,"props":2394,"children":2395},{"style":221},[2396],{"type":58,"value":1592},{"type":52,"tag":124,"props":2398,"children":2399},{"style":227},[2400],{"type":58,"value":2401}," setTranscript",{"type":52,"tag":124,"props":2403,"children":2404},{"style":221},[2405],{"type":58,"value":2406},"]",{"type":52,"tag":124,"props":2408,"children":2409},{"style":221},[2410],{"type":58,"value":2411}," =",{"type":52,"tag":124,"props":2413,"children":2414},{"style":336},[2415],{"type":58,"value":2416}," useState",{"type":52,"tag":124,"props":2418,"children":2419},{"style":408},[2420],{"type":58,"value":397},{"type":52,"tag":124,"props":2422,"children":2423},{"style":221},[2424],{"type":58,"value":2425},"\"\"",{"type":52,"tag":124,"props":2427,"children":2428},{"style":408},[2429],{"type":58,"value":442},{"type":52,"tag":124,"props":2431,"children":2432},{"style":221},[2433],{"type":58,"value":261},{"type":52,"tag":124,"props":2435,"children":2436},{"class":126,"line":163},[2437],{"type":52,"tag":124,"props":2438,"children":2439},{"emptyLinePlaceholder":140},[2440],{"type":58,"value":143},{"type":52,"tag":124,"props":2442,"children":2443},{"class":126,"line":172},[2444,2448,2453,2457,2461,2465],{"type":52,"tag":124,"props":2445,"children":2446},{"style":315},[2447],{"type":58,"value":2382},{"type":52,"tag":124,"props":2449,"children":2450},{"style":227},[2451],{"type":58,"value":2452}," scribe",{"type":52,"tag":124,"props":2454,"children":2455},{"style":221},[2456],{"type":58,"value":2411},{"type":52,"tag":124,"props":2458,"children":2459},{"style":336},[2460],{"type":58,"value":2311},{"type":52,"tag":124,"props":2462,"children":2463},{"style":408},[2464],{"type":58,"value":397},{"type":52,"tag":124,"props":2466,"children":2467},{"style":221},[2468],{"type":58,"value":402},{"type":52,"tag":124,"props":2470,"children":2471},{"class":126,"line":181},[2472,2477,2481,2485,2489,2493],{"type":52,"tag":124,"props":2473,"children":2474},{"style":408},[2475],{"type":58,"value":2476},"    modelId",{"type":52,"tag":124,"props":2478,"children":2479},{"style":221},[2480],{"type":58,"value":416},{"type":52,"tag":124,"props":2482,"children":2483},{"style":221},[2484],{"type":58,"value":245},{"type":52,"tag":124,"props":2486,"children":2487},{"style":248},[2488],{"type":58,"value":713},{"type":52,"tag":124,"props":2490,"children":2491},{"style":221},[2492],{"type":58,"value":256},{"type":52,"tag":124,"props":2494,"children":2495},{"style":221},[2496],{"type":58,"value":447},{"type":52,"tag":124,"props":2498,"children":2499},{"class":126,"line":189},[2500,2505,2509,2513,2517,2522,2526],{"type":52,"tag":124,"props":2501,"children":2502},{"style":408},[2503],{"type":58,"value":2504},"    commitStrategy",{"type":52,"tag":124,"props":2506,"children":2507},{"style":221},[2508],{"type":58,"value":416},{"type":52,"tag":124,"props":2510,"children":2511},{"style":227},[2512],{"type":58,"value":2320},{"type":52,"tag":124,"props":2514,"children":2515},{"style":221},[2516],{"type":58,"value":378},{"type":52,"tag":124,"props":2518,"children":2519},{"style":227},[2520],{"type":58,"value":2521},"VAD",{"type":52,"tag":124,"props":2523,"children":2524},{"style":221},[2525],{"type":58,"value":1592},{"type":52,"tag":124,"props":2527,"children":2529},{"style":2528},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[2530],{"type":58,"value":2531}," \u002F\u002F Auto-commit on silence for mic input\n",{"type":52,"tag":124,"props":2533,"children":2534},{"class":126,"line":495},[2535,2540,2544,2548,2552,2556,2560,2564,2568,2573,2577,2581],{"type":52,"tag":124,"props":2536,"children":2537},{"style":408},[2538],{"type":58,"value":2539},"    keyterms",{"type":52,"tag":124,"props":2541,"children":2542},{"style":221},[2543],{"type":58,"value":416},{"type":52,"tag":124,"props":2545,"children":2546},{"style":408},[2547],{"type":58,"value":2387},{"type":52,"tag":124,"props":2549,"children":2550},{"style":221},[2551],{"type":58,"value":256},{"type":52,"tag":124,"props":2553,"children":2554},{"style":248},[2555],{"type":58,"value":9},{"type":52,"tag":124,"props":2557,"children":2558},{"style":221},[2559],{"type":58,"value":256},{"type":52,"tag":124,"props":2561,"children":2562},{"style":221},[2563],{"type":58,"value":1592},{"type":52,"tag":124,"props":2565,"children":2566},{"style":221},[2567],{"type":58,"value":245},{"type":52,"tag":124,"props":2569,"children":2570},{"style":248},[2571],{"type":58,"value":2572},"Scribe",{"type":52,"tag":124,"props":2574,"children":2575},{"style":221},[2576],{"type":58,"value":256},{"type":52,"tag":124,"props":2578,"children":2579},{"style":408},[2580],{"type":58,"value":2406},{"type":52,"tag":124,"props":2582,"children":2583},{"style":221},[2584],{"type":58,"value":447},{"type":52,"tag":124,"props":2586,"children":2587},{"class":126,"line":2177},[2588,2593,2597,2603],{"type":52,"tag":124,"props":2589,"children":2590},{"style":408},[2591],{"type":58,"value":2592},"    noVerbatim",{"type":52,"tag":124,"props":2594,"children":2595},{"style":221},[2596],{"type":58,"value":416},{"type":52,"tag":124,"props":2598,"children":2600},{"style":2599},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[2601],{"type":58,"value":2602}," true",{"type":52,"tag":124,"props":2604,"children":2605},{"style":221},[2606],{"type":58,"value":447},{"type":52,"tag":124,"props":2608,"children":2609},{"class":126,"line":2186},[2610,2615,2619,2623],{"type":52,"tag":124,"props":2611,"children":2612},{"style":408},[2613],{"type":58,"value":2614},"    includeLanguageDetection",{"type":52,"tag":124,"props":2616,"children":2617},{"style":221},[2618],{"type":58,"value":416},{"type":52,"tag":124,"props":2620,"children":2621},{"style":2599},[2622],{"type":58,"value":2602},{"type":52,"tag":124,"props":2624,"children":2625},{"style":221},[2626],{"type":58,"value":447},{"type":52,"tag":124,"props":2628,"children":2629},{"class":126,"line":2195},[2630,2635,2639,2644,2650,2654,2659,2664,2668,2672,2676,2680,2685,2689,2693,2698,2702,2706,2710],{"type":52,"tag":124,"props":2631,"children":2632},{"style":336},[2633],{"type":58,"value":2634},"    onPartialTranscript",{"type":52,"tag":124,"props":2636,"children":2637},{"style":221},[2638],{"type":58,"value":416},{"type":52,"tag":124,"props":2640,"children":2641},{"style":221},[2642],{"type":58,"value":2643}," (",{"type":52,"tag":124,"props":2645,"children":2647},{"style":2646},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[2648],{"type":58,"value":2649},"data",{"type":52,"tag":124,"props":2651,"children":2652},{"style":221},[2653],{"type":58,"value":442},{"type":52,"tag":124,"props":2655,"children":2656},{"style":315},[2657],{"type":58,"value":2658}," =>",{"type":52,"tag":124,"props":2660,"children":2661},{"style":227},[2662],{"type":58,"value":2663}," console",{"type":52,"tag":124,"props":2665,"children":2666},{"style":221},[2667],{"type":58,"value":378},{"type":52,"tag":124,"props":2669,"children":2670},{"style":336},[2671],{"type":58,"value":510},{"type":52,"tag":124,"props":2673,"children":2674},{"style":408},[2675],{"type":58,"value":397},{"type":52,"tag":124,"props":2677,"children":2678},{"style":221},[2679],{"type":58,"value":256},{"type":52,"tag":124,"props":2681,"children":2682},{"style":248},[2683],{"type":58,"value":2684},"Partial:",{"type":52,"tag":124,"props":2686,"children":2687},{"style":221},[2688],{"type":58,"value":256},{"type":52,"tag":124,"props":2690,"children":2691},{"style":221},[2692],{"type":58,"value":1592},{"type":52,"tag":124,"props":2694,"children":2695},{"style":227},[2696],{"type":58,"value":2697}," data",{"type":52,"tag":124,"props":2699,"children":2700},{"style":221},[2701],{"type":58,"value":378},{"type":52,"tag":124,"props":2703,"children":2704},{"style":227},[2705],{"type":58,"value":58},{"type":52,"tag":124,"props":2707,"children":2708},{"style":408},[2709],{"type":58,"value":442},{"type":52,"tag":124,"props":2711,"children":2712},{"style":221},[2713],{"type":58,"value":447},{"type":52,"tag":124,"props":2715,"children":2716},{"class":126,"line":2204},[2717,2722,2726,2730,2734,2738,2742,2746,2750,2754,2759,2763,2767,2772,2777,2781,2785,2789,2793],{"type":52,"tag":124,"props":2718,"children":2719},{"style":336},[2720],{"type":58,"value":2721},"    onCommittedTranscript",{"type":52,"tag":124,"props":2723,"children":2724},{"style":221},[2725],{"type":58,"value":416},{"type":52,"tag":124,"props":2727,"children":2728},{"style":221},[2729],{"type":58,"value":2643},{"type":52,"tag":124,"props":2731,"children":2732},{"style":2646},[2733],{"type":58,"value":2649},{"type":52,"tag":124,"props":2735,"children":2736},{"style":221},[2737],{"type":58,"value":442},{"type":52,"tag":124,"props":2739,"children":2740},{"style":315},[2741],{"type":58,"value":2658},{"type":52,"tag":124,"props":2743,"children":2744},{"style":336},[2745],{"type":58,"value":2401},{"type":52,"tag":124,"props":2747,"children":2748},{"style":408},[2749],{"type":58,"value":397},{"type":52,"tag":124,"props":2751,"children":2752},{"style":221},[2753],{"type":58,"value":397},{"type":52,"tag":124,"props":2755,"children":2756},{"style":2646},[2757],{"type":58,"value":2758},"prev",{"type":52,"tag":124,"props":2760,"children":2761},{"style":221},[2762],{"type":58,"value":442},{"type":52,"tag":124,"props":2764,"children":2765},{"style":315},[2766],{"type":58,"value":2658},{"type":52,"tag":124,"props":2768,"children":2769},{"style":227},[2770],{"type":58,"value":2771}," prev",{"type":52,"tag":124,"props":2773,"children":2774},{"style":221},[2775],{"type":58,"value":2776}," +",{"type":52,"tag":124,"props":2778,"children":2779},{"style":227},[2780],{"type":58,"value":2697},{"type":52,"tag":124,"props":2782,"children":2783},{"style":221},[2784],{"type":58,"value":378},{"type":52,"tag":124,"props":2786,"children":2787},{"style":227},[2788],{"type":58,"value":58},{"type":52,"tag":124,"props":2790,"children":2791},{"style":408},[2792],{"type":58,"value":442},{"type":52,"tag":124,"props":2794,"children":2795},{"style":221},[2796],{"type":58,"value":447},{"type":52,"tag":124,"props":2798,"children":2799},{"class":126,"line":2213},[2800,2805,2809],{"type":52,"tag":124,"props":2801,"children":2802},{"style":221},[2803],{"type":58,"value":2804},"  }",{"type":52,"tag":124,"props":2806,"children":2807},{"style":408},[2808],{"type":58,"value":442},{"type":52,"tag":124,"props":2810,"children":2811},{"style":221},[2812],{"type":58,"value":261},{"type":52,"tag":124,"props":2814,"children":2815},{"class":126,"line":2221},[2816],{"type":52,"tag":124,"props":2817,"children":2818},{"emptyLinePlaceholder":140},[2819],{"type":58,"value":143},{"type":52,"tag":124,"props":2821,"children":2822},{"class":126,"line":2230},[2823,2827,2832,2836,2841,2846,2850],{"type":52,"tag":124,"props":2824,"children":2825},{"style":315},[2826],{"type":58,"value":2382},{"type":52,"tag":124,"props":2828,"children":2829},{"style":227},[2830],{"type":58,"value":2831}," start",{"type":52,"tag":124,"props":2833,"children":2834},{"style":221},[2835],{"type":58,"value":2411},{"type":52,"tag":124,"props":2837,"children":2838},{"style":315},[2839],{"type":58,"value":2840}," async",{"type":52,"tag":124,"props":2842,"children":2843},{"style":221},[2844],{"type":58,"value":2845}," ()",{"type":52,"tag":124,"props":2847,"children":2848},{"style":315},[2849],{"type":58,"value":2658},{"type":52,"tag":124,"props":2851,"children":2852},{"style":221},[2853],{"type":58,"value":2374},{"type":52,"tag":124,"props":2855,"children":2856},{"class":126,"line":2239},[2857],{"type":52,"tag":124,"props":2858,"children":2859},{"style":2528},[2860],{"type":58,"value":2861},"    \u002F\u002F Get token from your backend (never expose API key to client)\n",{"type":52,"tag":124,"props":2863,"children":2864},{"class":126,"line":2248},[2865,2870,2874,2879,2883,2887,2891,2896,2900,2904,2909,2913,2917,2921,2926,2930,2934,2939,2943,2947,2952,2956,2960,2965],{"type":52,"tag":124,"props":2866,"children":2867},{"style":315},[2868],{"type":58,"value":2869},"    const",{"type":52,"tag":124,"props":2871,"children":2872},{"style":221},[2873],{"type":58,"value":224},{"type":52,"tag":124,"props":2875,"children":2876},{"style":227},[2877],{"type":58,"value":2878}," token",{"type":52,"tag":124,"props":2880,"children":2881},{"style":221},[2882],{"type":58,"value":235},{"type":52,"tag":124,"props":2884,"children":2885},{"style":221},[2886],{"type":58,"value":2411},{"type":52,"tag":124,"props":2888,"children":2889},{"style":215},[2890],{"type":58,"value":368},{"type":52,"tag":124,"props":2892,"children":2893},{"style":336},[2894],{"type":58,"value":2895}," fetch",{"type":52,"tag":124,"props":2897,"children":2898},{"style":408},[2899],{"type":58,"value":397},{"type":52,"tag":124,"props":2901,"children":2902},{"style":221},[2903],{"type":58,"value":256},{"type":52,"tag":124,"props":2905,"children":2906},{"style":248},[2907],{"type":58,"value":2908},"\u002Fscribe-token",{"type":52,"tag":124,"props":2910,"children":2911},{"style":221},[2912],{"type":58,"value":256},{"type":52,"tag":124,"props":2914,"children":2915},{"style":408},[2916],{"type":58,"value":442},{"type":52,"tag":124,"props":2918,"children":2919},{"style":221},[2920],{"type":58,"value":378},{"type":52,"tag":124,"props":2922,"children":2923},{"style":336},[2924],{"type":58,"value":2925},"then",{"type":52,"tag":124,"props":2927,"children":2928},{"style":408},[2929],{"type":58,"value":397},{"type":52,"tag":124,"props":2931,"children":2932},{"style":221},[2933],{"type":58,"value":397},{"type":52,"tag":124,"props":2935,"children":2936},{"style":2646},[2937],{"type":58,"value":2938},"r",{"type":52,"tag":124,"props":2940,"children":2941},{"style":221},[2942],{"type":58,"value":442},{"type":52,"tag":124,"props":2944,"children":2945},{"style":315},[2946],{"type":58,"value":2658},{"type":52,"tag":124,"props":2948,"children":2949},{"style":227},[2950],{"type":58,"value":2951}," r",{"type":52,"tag":124,"props":2953,"children":2954},{"style":221},[2955],{"type":58,"value":378},{"type":52,"tag":124,"props":2957,"children":2958},{"style":336},[2959],{"type":58,"value":1410},{"type":52,"tag":124,"props":2961,"children":2962},{"style":408},[2963],{"type":58,"value":2964},"())",{"type":52,"tag":124,"props":2966,"children":2967},{"style":221},[2968],{"type":58,"value":261},{"type":52,"tag":124,"props":2970,"children":2971},{"class":126,"line":2257},[2972],{"type":52,"tag":124,"props":2973,"children":2974},{"emptyLinePlaceholder":140},[2975],{"type":58,"value":143},{"type":52,"tag":124,"props":2977,"children":2978},{"class":126,"line":2266},[2979,2984,2988,2992,2997,3001],{"type":52,"tag":124,"props":2980,"children":2981},{"style":215},[2982],{"type":58,"value":2983},"    await",{"type":52,"tag":124,"props":2985,"children":2986},{"style":227},[2987],{"type":58,"value":2452},{"type":52,"tag":124,"props":2989,"children":2990},{"style":221},[2991],{"type":58,"value":378},{"type":52,"tag":124,"props":2993,"children":2994},{"style":336},[2995],{"type":58,"value":2996},"connect",{"type":52,"tag":124,"props":2998,"children":2999},{"style":408},[3000],{"type":58,"value":397},{"type":52,"tag":124,"props":3002,"children":3003},{"style":221},[3004],{"type":58,"value":402},{"type":52,"tag":124,"props":3006,"children":3007},{"class":126,"line":2274},[3008,3013],{"type":52,"tag":124,"props":3009,"children":3010},{"style":227},[3011],{"type":58,"value":3012},"      token",{"type":52,"tag":124,"props":3014,"children":3015},{"style":221},[3016],{"type":58,"value":447},{"type":52,"tag":124,"props":3018,"children":3020},{"class":126,"line":3019},22,[3021,3026,3030,3034,3039,3043,3047,3051,3056,3060,3064],{"type":52,"tag":124,"props":3022,"children":3023},{"style":408},[3024],{"type":58,"value":3025},"      microphone",{"type":52,"tag":124,"props":3027,"children":3028},{"style":221},[3029],{"type":58,"value":416},{"type":52,"tag":124,"props":3031,"children":3032},{"style":221},[3033],{"type":58,"value":224},{"type":52,"tag":124,"props":3035,"children":3036},{"style":408},[3037],{"type":58,"value":3038}," echoCancellation",{"type":52,"tag":124,"props":3040,"children":3041},{"style":221},[3042],{"type":58,"value":416},{"type":52,"tag":124,"props":3044,"children":3045},{"style":2599},[3046],{"type":58,"value":2602},{"type":52,"tag":124,"props":3048,"children":3049},{"style":221},[3050],{"type":58,"value":1592},{"type":52,"tag":124,"props":3052,"children":3053},{"style":408},[3054],{"type":58,"value":3055}," noiseSuppression",{"type":52,"tag":124,"props":3057,"children":3058},{"style":221},[3059],{"type":58,"value":416},{"type":52,"tag":124,"props":3061,"children":3062},{"style":2599},[3063],{"type":58,"value":2602},{"type":52,"tag":124,"props":3065,"children":3066},{"style":221},[3067],{"type":58,"value":3068}," },\n",{"type":52,"tag":124,"props":3070,"children":3072},{"class":126,"line":3071},23,[3073,3078,3082],{"type":52,"tag":124,"props":3074,"children":3075},{"style":221},[3076],{"type":58,"value":3077},"    }",{"type":52,"tag":124,"props":3079,"children":3080},{"style":408},[3081],{"type":58,"value":442},{"type":52,"tag":124,"props":3083,"children":3084},{"style":221},[3085],{"type":58,"value":261},{"type":52,"tag":124,"props":3087,"children":3089},{"class":126,"line":3088},24,[3090],{"type":52,"tag":124,"props":3091,"children":3092},{"style":221},[3093],{"type":58,"value":3094},"  };\n",{"type":52,"tag":124,"props":3096,"children":3098},{"class":126,"line":3097},25,[3099],{"type":52,"tag":124,"props":3100,"children":3101},{"emptyLinePlaceholder":140},[3102],{"type":58,"value":143},{"type":52,"tag":124,"props":3104,"children":3106},{"class":126,"line":3105},26,[3107,3112,3117,3122,3127,3131,3136,3140,3144,3149,3154,3159,3164,3168],{"type":52,"tag":124,"props":3108,"children":3109},{"style":215},[3110],{"type":58,"value":3111},"  return",{"type":52,"tag":124,"props":3113,"children":3114},{"style":408},[3115],{"type":58,"value":3116}," \u003C",{"type":52,"tag":124,"props":3118,"children":3119},{"style":549},[3120],{"type":58,"value":3121},"button",{"type":52,"tag":124,"props":3123,"children":3124},{"style":549},[3125],{"type":58,"value":3126}," onClick",{"type":52,"tag":124,"props":3128,"children":3129},{"style":408},[3130],{"type":58,"value":328},{"type":52,"tag":124,"props":3132,"children":3133},{"style":221},[3134],{"type":58,"value":3135},"{",{"type":52,"tag":124,"props":3137,"children":3138},{"style":408},[3139],{"type":58,"value":1601},{"type":52,"tag":124,"props":3141,"children":3142},{"style":221},[3143],{"type":58,"value":484},{"type":52,"tag":124,"props":3145,"children":3146},{"style":408},[3147],{"type":58,"value":3148},">",{"type":52,"tag":124,"props":3150,"children":3151},{"style":227},[3152],{"type":58,"value":3153},"Start",{"type":52,"tag":124,"props":3155,"children":3156},{"style":227},[3157],{"type":58,"value":3158}," Recording",{"type":52,"tag":124,"props":3160,"children":3161},{"style":221},[3162],{"type":58,"value":3163},"\u003C\u002F",{"type":52,"tag":124,"props":3165,"children":3166},{"style":227},[3167],{"type":58,"value":3121},{"type":52,"tag":124,"props":3169,"children":3170},{"style":221},[3171],{"type":58,"value":3172},">;\n",{"type":52,"tag":124,"props":3174,"children":3176},{"class":126,"line":3175},27,[3177],{"type":52,"tag":124,"props":3178,"children":3179},{"style":221},[3180],{"type":58,"value":1863},{"type":52,"tag":107,"props":3182,"children":3184},{"id":3183},"commit-strategies",[3185],{"type":58,"value":3186},"Commit Strategies",{"type":52,"tag":649,"props":3188,"children":3189},{},[3190,3205],{"type":52,"tag":653,"props":3191,"children":3192},{},[3193],{"type":52,"tag":657,"props":3194,"children":3195},{},[3196,3201],{"type":52,"tag":661,"props":3197,"children":3198},{},[3199],{"type":58,"value":3200},"Strategy",{"type":52,"tag":661,"props":3202,"children":3203},{},[3204],{"type":58,"value":670},{"type":52,"tag":677,"props":3206,"children":3207},{},[3208,3232],{"type":52,"tag":657,"props":3209,"children":3210},{},[3211,3219],{"type":52,"tag":684,"props":3212,"children":3213},{},[3214],{"type":52,"tag":74,"props":3215,"children":3216},{},[3217],{"type":58,"value":3218},"Manual",{"type":52,"tag":684,"props":3220,"children":3221},{},[3222,3224,3230],{"type":58,"value":3223},"You call ",{"type":52,"tag":91,"props":3225,"children":3227},{"className":3226},[],[3228],{"type":58,"value":3229},"commit()",{"type":58,"value":3231}," when ready - use for file processing or when you control the audio segments",{"type":52,"tag":657,"props":3233,"children":3234},{},[3235,3242],{"type":52,"tag":684,"props":3236,"children":3237},{},[3238],{"type":52,"tag":74,"props":3239,"children":3240},{},[3241],{"type":58,"value":2521},{"type":52,"tag":684,"props":3243,"children":3244},{},[3245],{"type":58,"value":3246},"Voice Activity Detection auto-commits when silence is detected - use for live microphone input",{"type":52,"tag":61,"props":3248,"children":3249},{},[3250,3252,3258],{"type":58,"value":3251},"Set ",{"type":52,"tag":91,"props":3253,"children":3255},{"className":3254},[],[3256],{"type":58,"value":3257},"includeLanguageDetection: true",{"type":58,"value":3259}," to receive the detected language code on committed transcript\nevents that include timestamps.",{"type":52,"tag":114,"props":3261,"children":3263},{"className":2289,"code":3262,"language":2291,"meta":118,"style":118},"\u002F\u002F React: set commitStrategy on the hook (recommended for mic input)\nimport { useScribe, CommitStrategy } from \"@elevenlabs\u002Freact\";\n\nconst scribe = useScribe({\n  modelId: \"scribe_v2_realtime\",\n  commitStrategy: CommitStrategy.VAD,\n  keyterms: [\"ElevenLabs\", \"Scribe\"],\n  noVerbatim: true,\n  \u002F\u002F Optional VAD tuning:\n  vadSilenceThresholdSecs: 1.5,\n  vadThreshold: 0.4,\n});\n",[3264],{"type":52,"tag":91,"props":3265,"children":3266},{"__ignoreMap":118},[3267,3275,3322,3329,3357,3384,3412,3464,3484,3492,3513,3534],{"type":52,"tag":124,"props":3268,"children":3269},{"class":126,"line":127},[3270],{"type":52,"tag":124,"props":3271,"children":3272},{"style":2528},[3273],{"type":58,"value":3274},"\u002F\u002F React: set commitStrategy on the hook (recommended for mic input)\n",{"type":52,"tag":124,"props":3276,"children":3277},{"class":126,"line":136},[3278,3282,3286,3290,3294,3298,3302,3306,3310,3314,3318],{"type":52,"tag":124,"props":3279,"children":3280},{"style":215},[3281],{"type":58,"value":218},{"type":52,"tag":124,"props":3283,"children":3284},{"style":221},[3285],{"type":58,"value":224},{"type":52,"tag":124,"props":3287,"children":3288},{"style":227},[3289],{"type":58,"value":2311},{"type":52,"tag":124,"props":3291,"children":3292},{"style":221},[3293],{"type":58,"value":1592},{"type":52,"tag":124,"props":3295,"children":3296},{"style":227},[3297],{"type":58,"value":2320},{"type":52,"tag":124,"props":3299,"children":3300},{"style":221},[3301],{"type":58,"value":235},{"type":52,"tag":124,"props":3303,"children":3304},{"style":215},[3305],{"type":58,"value":240},{"type":52,"tag":124,"props":3307,"children":3308},{"style":221},[3309],{"type":58,"value":245},{"type":52,"tag":124,"props":3311,"children":3312},{"style":248},[3313],{"type":58,"value":2337},{"type":52,"tag":124,"props":3315,"children":3316},{"style":221},[3317],{"type":58,"value":256},{"type":52,"tag":124,"props":3319,"children":3320},{"style":221},[3321],{"type":58,"value":261},{"type":52,"tag":124,"props":3323,"children":3324},{"class":126,"line":146},[3325],{"type":52,"tag":124,"props":3326,"children":3327},{"emptyLinePlaceholder":140},[3328],{"type":58,"value":143},{"type":52,"tag":124,"props":3330,"children":3331},{"class":126,"line":155},[3332,3336,3341,3345,3349,3353],{"type":52,"tag":124,"props":3333,"children":3334},{"style":315},[3335],{"type":58,"value":318},{"type":52,"tag":124,"props":3337,"children":3338},{"style":227},[3339],{"type":58,"value":3340}," scribe ",{"type":52,"tag":124,"props":3342,"children":3343},{"style":221},[3344],{"type":58,"value":328},{"type":52,"tag":124,"props":3346,"children":3347},{"style":336},[3348],{"type":58,"value":2311},{"type":52,"tag":124,"props":3350,"children":3351},{"style":227},[3352],{"type":58,"value":397},{"type":52,"tag":124,"props":3354,"children":3355},{"style":221},[3356],{"type":58,"value":402},{"type":52,"tag":124,"props":3358,"children":3359},{"class":126,"line":163},[3360,3364,3368,3372,3376,3380],{"type":52,"tag":124,"props":3361,"children":3362},{"style":408},[3363],{"type":58,"value":455},{"type":52,"tag":124,"props":3365,"children":3366},{"style":221},[3367],{"type":58,"value":416},{"type":52,"tag":124,"props":3369,"children":3370},{"style":221},[3371],{"type":58,"value":245},{"type":52,"tag":124,"props":3373,"children":3374},{"style":248},[3375],{"type":58,"value":713},{"type":52,"tag":124,"props":3377,"children":3378},{"style":221},[3379],{"type":58,"value":256},{"type":52,"tag":124,"props":3381,"children":3382},{"style":221},[3383],{"type":58,"value":447},{"type":52,"tag":124,"props":3385,"children":3386},{"class":126,"line":172},[3387,3392,3396,3400,3404,3408],{"type":52,"tag":124,"props":3388,"children":3389},{"style":408},[3390],{"type":58,"value":3391},"  commitStrategy",{"type":52,"tag":124,"props":3393,"children":3394},{"style":221},[3395],{"type":58,"value":416},{"type":52,"tag":124,"props":3397,"children":3398},{"style":227},[3399],{"type":58,"value":2320},{"type":52,"tag":124,"props":3401,"children":3402},{"style":221},[3403],{"type":58,"value":378},{"type":52,"tag":124,"props":3405,"children":3406},{"style":227},[3407],{"type":58,"value":2521},{"type":52,"tag":124,"props":3409,"children":3410},{"style":221},[3411],{"type":58,"value":447},{"type":52,"tag":124,"props":3413,"children":3414},{"class":126,"line":181},[3415,3420,3424,3428,3432,3436,3440,3444,3448,3452,3456,3460],{"type":52,"tag":124,"props":3416,"children":3417},{"style":408},[3418],{"type":58,"value":3419},"  keyterms",{"type":52,"tag":124,"props":3421,"children":3422},{"style":221},[3423],{"type":58,"value":416},{"type":52,"tag":124,"props":3425,"children":3426},{"style":227},[3427],{"type":58,"value":2387},{"type":52,"tag":124,"props":3429,"children":3430},{"style":221},[3431],{"type":58,"value":256},{"type":52,"tag":124,"props":3433,"children":3434},{"style":248},[3435],{"type":58,"value":9},{"type":52,"tag":124,"props":3437,"children":3438},{"style":221},[3439],{"type":58,"value":256},{"type":52,"tag":124,"props":3441,"children":3442},{"style":221},[3443],{"type":58,"value":1592},{"type":52,"tag":124,"props":3445,"children":3446},{"style":221},[3447],{"type":58,"value":245},{"type":52,"tag":124,"props":3449,"children":3450},{"style":248},[3451],{"type":58,"value":2572},{"type":52,"tag":124,"props":3453,"children":3454},{"style":221},[3455],{"type":58,"value":256},{"type":52,"tag":124,"props":3457,"children":3458},{"style":227},[3459],{"type":58,"value":2406},{"type":52,"tag":124,"props":3461,"children":3462},{"style":221},[3463],{"type":58,"value":447},{"type":52,"tag":124,"props":3465,"children":3466},{"class":126,"line":189},[3467,3472,3476,3480],{"type":52,"tag":124,"props":3468,"children":3469},{"style":408},[3470],{"type":58,"value":3471},"  noVerbatim",{"type":52,"tag":124,"props":3473,"children":3474},{"style":221},[3475],{"type":58,"value":416},{"type":52,"tag":124,"props":3477,"children":3478},{"style":2599},[3479],{"type":58,"value":2602},{"type":52,"tag":124,"props":3481,"children":3482},{"style":221},[3483],{"type":58,"value":447},{"type":52,"tag":124,"props":3485,"children":3486},{"class":126,"line":495},[3487],{"type":52,"tag":124,"props":3488,"children":3489},{"style":2528},[3490],{"type":58,"value":3491},"  \u002F\u002F Optional VAD tuning:\n",{"type":52,"tag":124,"props":3493,"children":3494},{"class":126,"line":2177},[3495,3500,3504,3509],{"type":52,"tag":124,"props":3496,"children":3497},{"style":408},[3498],{"type":58,"value":3499},"  vadSilenceThresholdSecs",{"type":52,"tag":124,"props":3501,"children":3502},{"style":221},[3503],{"type":58,"value":416},{"type":52,"tag":124,"props":3505,"children":3506},{"style":1518},[3507],{"type":58,"value":3508}," 1.5",{"type":52,"tag":124,"props":3510,"children":3511},{"style":221},[3512],{"type":58,"value":447},{"type":52,"tag":124,"props":3514,"children":3515},{"class":126,"line":2186},[3516,3521,3525,3530],{"type":52,"tag":124,"props":3517,"children":3518},{"style":408},[3519],{"type":58,"value":3520},"  vadThreshold",{"type":52,"tag":124,"props":3522,"children":3523},{"style":221},[3524],{"type":58,"value":416},{"type":52,"tag":124,"props":3526,"children":3527},{"style":1518},[3528],{"type":58,"value":3529}," 0.4",{"type":52,"tag":124,"props":3531,"children":3532},{"style":221},[3533],{"type":58,"value":447},{"type":52,"tag":124,"props":3535,"children":3536},{"class":126,"line":2195},[3537,3541,3545],{"type":52,"tag":124,"props":3538,"children":3539},{"style":221},[3540],{"type":58,"value":484},{"type":52,"tag":124,"props":3542,"children":3543},{"style":227},[3544],{"type":58,"value":442},{"type":52,"tag":124,"props":3546,"children":3547},{"style":221},[3548],{"type":58,"value":261},{"type":52,"tag":114,"props":3550,"children":3552},{"className":204,"code":3551,"language":198,"meta":118,"style":118},"\u002F\u002F JavaScript client: pass vad config on connect\nconst connection = await client.speechToText.realtime.connect({\n  modelId: \"scribe_v2_realtime\",\n  keyterms: [\"ElevenLabs\", \"Scribe\"],\n  noVerbatim: true,\n  vad: {\n    silenceThresholdSecs: 1.5,\n    threshold: 0.4,\n  },\n});\n",[3553],{"type":52,"tag":91,"props":3554,"children":3555},{"__ignoreMap":118},[3556,3564,3621,3648,3699,3718,3734,3754,3774,3782],{"type":52,"tag":124,"props":3557,"children":3558},{"class":126,"line":127},[3559],{"type":52,"tag":124,"props":3560,"children":3561},{"style":2528},[3562],{"type":58,"value":3563},"\u002F\u002F JavaScript client: pass vad config on connect\n",{"type":52,"tag":124,"props":3565,"children":3566},{"class":126,"line":136},[3567,3571,3576,3580,3584,3588,3592,3596,3600,3605,3609,3613,3617],{"type":52,"tag":124,"props":3568,"children":3569},{"style":315},[3570],{"type":58,"value":318},{"type":52,"tag":124,"props":3572,"children":3573},{"style":227},[3574],{"type":58,"value":3575}," connection ",{"type":52,"tag":124,"props":3577,"children":3578},{"style":221},[3579],{"type":58,"value":328},{"type":52,"tag":124,"props":3581,"children":3582},{"style":215},[3583],{"type":58,"value":368},{"type":52,"tag":124,"props":3585,"children":3586},{"style":227},[3587],{"type":58,"value":373},{"type":52,"tag":124,"props":3589,"children":3590},{"style":221},[3591],{"type":58,"value":378},{"type":52,"tag":124,"props":3593,"children":3594},{"style":227},[3595],{"type":58,"value":383},{"type":52,"tag":124,"props":3597,"children":3598},{"style":221},[3599],{"type":58,"value":378},{"type":52,"tag":124,"props":3601,"children":3602},{"style":227},[3603],{"type":58,"value":3604},"realtime",{"type":52,"tag":124,"props":3606,"children":3607},{"style":221},[3608],{"type":58,"value":378},{"type":52,"tag":124,"props":3610,"children":3611},{"style":336},[3612],{"type":58,"value":2996},{"type":52,"tag":124,"props":3614,"children":3615},{"style":227},[3616],{"type":58,"value":397},{"type":52,"tag":124,"props":3618,"children":3619},{"style":221},[3620],{"type":58,"value":402},{"type":52,"tag":124,"props":3622,"children":3623},{"class":126,"line":146},[3624,3628,3632,3636,3640,3644],{"type":52,"tag":124,"props":3625,"children":3626},{"style":408},[3627],{"type":58,"value":455},{"type":52,"tag":124,"props":3629,"children":3630},{"style":221},[3631],{"type":58,"value":416},{"type":52,"tag":124,"props":3633,"children":3634},{"style":221},[3635],{"type":58,"value":245},{"type":52,"tag":124,"props":3637,"children":3638},{"style":248},[3639],{"type":58,"value":713},{"type":52,"tag":124,"props":3641,"children":3642},{"style":221},[3643],{"type":58,"value":256},{"type":52,"tag":124,"props":3645,"children":3646},{"style":221},[3647],{"type":58,"value":447},{"type":52,"tag":124,"props":3649,"children":3650},{"class":126,"line":155},[3651,3655,3659,3663,3667,3671,3675,3679,3683,3687,3691,3695],{"type":52,"tag":124,"props":3652,"children":3653},{"style":408},[3654],{"type":58,"value":3419},{"type":52,"tag":124,"props":3656,"children":3657},{"style":221},[3658],{"type":58,"value":416},{"type":52,"tag":124,"props":3660,"children":3661},{"style":227},[3662],{"type":58,"value":2387},{"type":52,"tag":124,"props":3664,"children":3665},{"style":221},[3666],{"type":58,"value":256},{"type":52,"tag":124,"props":3668,"children":3669},{"style":248},[3670],{"type":58,"value":9},{"type":52,"tag":124,"props":3672,"children":3673},{"style":221},[3674],{"type":58,"value":256},{"type":52,"tag":124,"props":3676,"children":3677},{"style":221},[3678],{"type":58,"value":1592},{"type":52,"tag":124,"props":3680,"children":3681},{"style":221},[3682],{"type":58,"value":245},{"type":52,"tag":124,"props":3684,"children":3685},{"style":248},[3686],{"type":58,"value":2572},{"type":52,"tag":124,"props":3688,"children":3689},{"style":221},[3690],{"type":58,"value":256},{"type":52,"tag":124,"props":3692,"children":3693},{"style":227},[3694],{"type":58,"value":2406},{"type":52,"tag":124,"props":3696,"children":3697},{"style":221},[3698],{"type":58,"value":447},{"type":52,"tag":124,"props":3700,"children":3701},{"class":126,"line":163},[3702,3706,3710,3714],{"type":52,"tag":124,"props":3703,"children":3704},{"style":408},[3705],{"type":58,"value":3471},{"type":52,"tag":124,"props":3707,"children":3708},{"style":221},[3709],{"type":58,"value":416},{"type":52,"tag":124,"props":3711,"children":3712},{"style":2599},[3713],{"type":58,"value":2602},{"type":52,"tag":124,"props":3715,"children":3716},{"style":221},[3717],{"type":58,"value":447},{"type":52,"tag":124,"props":3719,"children":3720},{"class":126,"line":172},[3721,3726,3730],{"type":52,"tag":124,"props":3722,"children":3723},{"style":408},[3724],{"type":58,"value":3725},"  vad",{"type":52,"tag":124,"props":3727,"children":3728},{"style":221},[3729],{"type":58,"value":416},{"type":52,"tag":124,"props":3731,"children":3732},{"style":221},[3733],{"type":58,"value":2374},{"type":52,"tag":124,"props":3735,"children":3736},{"class":126,"line":181},[3737,3742,3746,3750],{"type":52,"tag":124,"props":3738,"children":3739},{"style":408},[3740],{"type":58,"value":3741},"    silenceThresholdSecs",{"type":52,"tag":124,"props":3743,"children":3744},{"style":221},[3745],{"type":58,"value":416},{"type":52,"tag":124,"props":3747,"children":3748},{"style":1518},[3749],{"type":58,"value":3508},{"type":52,"tag":124,"props":3751,"children":3752},{"style":221},[3753],{"type":58,"value":447},{"type":52,"tag":124,"props":3755,"children":3756},{"class":126,"line":189},[3757,3762,3766,3770],{"type":52,"tag":124,"props":3758,"children":3759},{"style":408},[3760],{"type":58,"value":3761},"    threshold",{"type":52,"tag":124,"props":3763,"children":3764},{"style":221},[3765],{"type":58,"value":416},{"type":52,"tag":124,"props":3767,"children":3768},{"style":1518},[3769],{"type":58,"value":3529},{"type":52,"tag":124,"props":3771,"children":3772},{"style":221},[3773],{"type":58,"value":447},{"type":52,"tag":124,"props":3775,"children":3776},{"class":126,"line":495},[3777],{"type":52,"tag":124,"props":3778,"children":3779},{"style":221},[3780],{"type":58,"value":3781},"  },\n",{"type":52,"tag":124,"props":3783,"children":3784},{"class":126,"line":2177},[3785,3789,3793],{"type":52,"tag":124,"props":3786,"children":3787},{"style":221},[3788],{"type":58,"value":484},{"type":52,"tag":124,"props":3790,"children":3791},{"style":227},[3792],{"type":58,"value":442},{"type":52,"tag":124,"props":3794,"children":3795},{"style":221},[3796],{"type":58,"value":261},{"type":52,"tag":107,"props":3798,"children":3800},{"id":3799},"event-types",[3801],{"type":58,"value":3802},"Event Types",{"type":52,"tag":649,"props":3804,"children":3805},{},[3806,3821],{"type":52,"tag":653,"props":3807,"children":3808},{},[3809],{"type":52,"tag":657,"props":3810,"children":3811},{},[3812,3817],{"type":52,"tag":661,"props":3813,"children":3814},{},[3815],{"type":58,"value":3816},"Event",{"type":52,"tag":661,"props":3818,"children":3819},{},[3820],{"type":58,"value":670},{"type":52,"tag":677,"props":3822,"children":3823},{},[3824,3841,3858,3875],{"type":52,"tag":657,"props":3825,"children":3826},{},[3827,3836],{"type":52,"tag":684,"props":3828,"children":3829},{},[3830],{"type":52,"tag":91,"props":3831,"children":3833},{"className":3832},[],[3834],{"type":58,"value":3835},"partial_transcript",{"type":52,"tag":684,"props":3837,"children":3838},{},[3839],{"type":58,"value":3840},"Live interim results",{"type":52,"tag":657,"props":3842,"children":3843},{},[3844,3853],{"type":52,"tag":684,"props":3845,"children":3846},{},[3847],{"type":52,"tag":91,"props":3848,"children":3850},{"className":3849},[],[3851],{"type":58,"value":3852},"committed_transcript",{"type":52,"tag":684,"props":3854,"children":3855},{},[3856],{"type":58,"value":3857},"Final results after commit",{"type":52,"tag":657,"props":3859,"children":3860},{},[3861,3870],{"type":52,"tag":684,"props":3862,"children":3863},{},[3864],{"type":52,"tag":91,"props":3865,"children":3867},{"className":3866},[],[3868],{"type":58,"value":3869},"committed_transcript_with_timestamps",{"type":52,"tag":684,"props":3871,"children":3872},{},[3873],{"type":58,"value":3874},"Final with word timing",{"type":52,"tag":657,"props":3876,"children":3877},{},[3878,3887],{"type":52,"tag":684,"props":3879,"children":3880},{},[3881],{"type":52,"tag":91,"props":3882,"children":3884},{"className":3883},[],[3885],{"type":58,"value":3886},"error",{"type":52,"tag":684,"props":3888,"children":3889},{},[3890],{"type":58,"value":3891},"Error occurred",{"type":52,"tag":61,"props":3893,"children":3894},{},[3895],{"type":58,"value":3896},"See real-time references for complete documentation.",{"type":52,"tag":100,"props":3898,"children":3900},{"id":3899},"references",[3901],{"type":58,"value":3902},"References",{"type":52,"tag":1888,"props":3904,"children":3905},{},[3906,3913,3922,3931,3940,3948],{"type":52,"tag":1892,"props":3907,"children":3908},{},[3909],{"type":52,"tag":82,"props":3910,"children":3911},{"href":84},[3912],{"type":58,"value":87},{"type":52,"tag":1892,"props":3914,"children":3915},{},[3916],{"type":52,"tag":82,"props":3917,"children":3919},{"href":3918},"references\u002Ftranscription-options.md",[3920],{"type":58,"value":3921},"Transcription Options",{"type":52,"tag":1892,"props":3923,"children":3924},{},[3925],{"type":52,"tag":82,"props":3926,"children":3928},{"href":3927},"references\u002Frealtime-client-side.md",[3929],{"type":58,"value":3930},"Real-Time Client-Side Streaming",{"type":52,"tag":1892,"props":3932,"children":3933},{},[3934],{"type":52,"tag":82,"props":3935,"children":3937},{"href":3936},"references\u002Frealtime-server-side.md",[3938],{"type":58,"value":3939},"Real-Time Server-Side Streaming",{"type":52,"tag":1892,"props":3941,"children":3942},{},[3943],{"type":52,"tag":82,"props":3944,"children":3946},{"href":3945},"references\u002Frealtime-commit-strategies.md",[3947],{"type":58,"value":3186},{"type":52,"tag":1892,"props":3949,"children":3950},{},[3951],{"type":52,"tag":82,"props":3952,"children":3954},{"href":3953},"references\u002Frealtime-events.md",[3955],{"type":58,"value":3956},"Real-Time Event Reference",{"type":52,"tag":3958,"props":3959,"children":3960},"style",{},[3961],{"type":58,"value":3962},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3964,"total":495},[3965,3977,3991,4002,4014,4030,4037,4049,4060],{"slug":3966,"name":3966,"fn":3967,"description":3968,"org":3969,"tags":3970,"stars":23,"repoUrl":24,"updatedAt":3976},"agents","build ElevenLabs voice agents","Build voice AI agents with ElevenLabs. Use when creating voice assistants, customer service bots, interactive voice characters, or any real-time voice conversation experience.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3971,3973,3974,3975],{"name":3972,"slug":3966,"type":15},"Agents",{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},"2026-07-24T05:40:07.822247",{"slug":30,"name":30,"fn":3978,"description":3979,"org":3980,"tags":3981,"stars":23,"repoUrl":24,"updatedAt":3990},"generate music with ElevenLabs","Generate music using ElevenLabs Music API. Use when creating instrumental tracks, songs with lyrics, background music, jingles, or any AI-generated music composition. Supports prompt-based generation, composition plans for granular control, and detailed output with metadata.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3982,3985,3986,3989],{"name":3983,"slug":3984,"type":15},"AI Infrastructure","ai-infrastructure",{"name":17,"slug":18,"type":15},{"name":3987,"slug":3988,"type":15},"Creative","creative",{"name":9,"slug":8,"type":15},"2026-07-24T05:40:08.812767",{"slug":3992,"name":3992,"fn":3993,"description":3994,"org":3995,"tags":3996,"stars":23,"repoUrl":24,"updatedAt":4001},"setup-api-key","set up ElevenLabs API key","Guides users through setting up an ElevenLabs API key for ElevenLabs MCP tools. Use when the user needs to configure an ElevenLabs API key, when ElevenLabs tools fail due to missing API key, or when the user mentions needing access to ElevenLabs. First checks whether ELEVENLABS_API_KEY is already configured and valid, and only runs full setup when needed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3997,3998],{"name":9,"slug":8,"type":15},{"name":3999,"slug":4000,"type":15},"Environment Variables","environment-variables","2026-04-06T18:09:34.705989",{"slug":4003,"name":4003,"fn":4004,"description":4005,"org":4006,"tags":4007,"stars":23,"repoUrl":24,"updatedAt":4013},"sound-effects","generate sound effects with ElevenLabs","Generate sound effects from text descriptions using ElevenLabs. Use when creating sound effects, generating audio textures, producing ambient sounds, cinematic impacts, UI sounds, or any audio that isn't speech. Supports looping, duration control, and prompt influence tuning.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4008,4009,4010,4011],{"name":17,"slug":18,"type":15},{"name":3987,"slug":3988,"type":15},{"name":9,"slug":8,"type":15},{"name":4012,"slug":4003,"type":15},"Sound Effects","2026-04-06T18:09:39.77459",{"slug":4015,"name":4015,"fn":4016,"description":4017,"org":4018,"tags":4019,"stars":23,"repoUrl":24,"updatedAt":4029},"speech-engine","implement real-time voice conversations","Add real-time voice conversations to a custom agent runtime with ElevenLabs Speech Engine. Use when building Speech Engine servers, WebSocket handlers, WebRTC browser clients, conversation token endpoints, interruption-aware streaming responses, or voice-enabled chat agents that connect developer-owned server logic to ElevenLabs speech-to-text and text-to-speech.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4020,4021,4022,4025,4028],{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":4023,"slug":4024,"type":15},"LLM","llm",{"name":4026,"slug":4027,"type":15},"Real-time","real-time",{"name":21,"slug":22,"type":15},"2026-05-15T06:13:51.199332",{"slug":4,"name":4,"fn":5,"description":6,"org":4031,"tags":4032,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4033,4034,4035,4036],{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"slug":4038,"name":4038,"fn":4039,"description":4040,"org":4041,"tags":4042,"stars":23,"repoUrl":24,"updatedAt":4048},"text-to-speech","convert text to speech with ElevenLabs","Convert text to speech using ElevenLabs voice AI. Use when generating audio from text, creating voiceovers, building voice apps, or synthesizing speech in 70+ languages.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4043,4044,4045,4046],{"name":3983,"slug":3984,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":4047,"slug":4038,"type":15},"Text-to-Speech","2026-04-06T18:09:38.521103",{"slug":4050,"name":4050,"fn":4051,"description":4052,"org":4053,"tags":4054,"stars":23,"repoUrl":24,"updatedAt":4059},"voice-changer","transform audio recordings with voice conversion","Transform the voice in an audio recording into a different target voice while preserving emotion, timing, and delivery using the ElevenLabs Voice Changer (speech-to-speech) API. Use when converting one voice to another, changing the speaker\u002Fnarrator of an existing recording, dubbing a voice-over in a different voice, creating character voices from a scratch performance, anonymizing a speaker, or any \"voice conversion \u002F voice transfer \u002F speech-to-speech\" task. Make sure to use this skill whenever the user mentions voice changing, voice conversion, speech-to-speech, swapping a voice in audio, re-voicing a clip, or applying a different voice to an existing recording — even if they don't explicitly say \"voice changer\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4055,4056,4057,4058],{"name":3983,"slug":3984,"type":15},{"name":17,"slug":18,"type":15},{"name":3987,"slug":3988,"type":15},{"name":9,"slug":8,"type":15},"2026-05-02T05:22:50.99428",{"slug":4061,"name":4061,"fn":4062,"description":4063,"org":4064,"tags":4065,"stars":23,"repoUrl":24,"updatedAt":4069},"voice-isolator","isolate voices and remove background noise","Remove background noise and isolate vocals\u002Fspeech from audio using ElevenLabs Voice Isolator (audio isolation) API. Use when cleaning up noisy recordings, removing music or background ambience from dialogue, isolating speech from field recordings, preparing audio for transcription, extracting vocals, or any \"denoise \u002F clean up \u002F isolate voice\" task.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4066,4067,4068],{"name":17,"slug":18,"type":15},{"name":3987,"slug":3988,"type":15},{"name":9,"slug":8,"type":15},"2026-04-23T05:01:58.01956",{"items":4071,"total":495},[4072,4079,4086,4091,4098,4106,4113],{"slug":3966,"name":3966,"fn":3967,"description":3968,"org":4073,"tags":4074,"stars":23,"repoUrl":24,"updatedAt":3976},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4075,4076,4077,4078],{"name":3972,"slug":3966,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},{"slug":30,"name":30,"fn":3978,"description":3979,"org":4080,"tags":4081,"stars":23,"repoUrl":24,"updatedAt":3990},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4082,4083,4084,4085],{"name":3983,"slug":3984,"type":15},{"name":17,"slug":18,"type":15},{"name":3987,"slug":3988,"type":15},{"name":9,"slug":8,"type":15},{"slug":3992,"name":3992,"fn":3993,"description":3994,"org":4087,"tags":4088,"stars":23,"repoUrl":24,"updatedAt":4001},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4089,4090],{"name":9,"slug":8,"type":15},{"name":3999,"slug":4000,"type":15},{"slug":4003,"name":4003,"fn":4004,"description":4005,"org":4092,"tags":4093,"stars":23,"repoUrl":24,"updatedAt":4013},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4094,4095,4096,4097],{"name":17,"slug":18,"type":15},{"name":3987,"slug":3988,"type":15},{"name":9,"slug":8,"type":15},{"name":4012,"slug":4003,"type":15},{"slug":4015,"name":4015,"fn":4016,"description":4017,"org":4099,"tags":4100,"stars":23,"repoUrl":24,"updatedAt":4029},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4101,4102,4103,4104,4105],{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":4023,"slug":4024,"type":15},{"name":4026,"slug":4027,"type":15},{"name":21,"slug":22,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":4107,"tags":4108,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4109,4110,4111,4112],{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"slug":4038,"name":4038,"fn":4039,"description":4040,"org":4114,"tags":4115,"stars":23,"repoUrl":24,"updatedAt":4048},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4116,4117,4118,4119],{"name":3983,"slug":3984,"type":15},{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":4047,"slug":4038,"type":15}]