
Live transcription over a WebSocket in 67 languages: Chinese and English arrive word by word while the speaker talks, other languages in passages, priced per hour of audio.
Live transcription over a WebSocket in 67 languages: Chinese and English arrive word by word while the speaker talks, other languages in passages, priced per hour of audio.
Stream 16 kHz mono 16-bit PCM over the socket. Billed per second of audio sent, at the hourly rate.
Also known as Seed ASR Stream, ByteDance Seed ASR 2.0 Stream
seed-asr-2-0-stream/v1/realtimeseed-asr-2.0-streambytedance/seed-asr-2.0-streambytedance/seed-asr-2-0-streamLive pay-as-you-go rates from the EmpirioLabs catalog. You can also choose a plan with weekly allowances.
Seed ASR 2.0 Stream transcribes a live audio stream over a WebSocket at wss://api.empiriolabs.ai/v1/realtime?model=seed-asr-2-0-stream, not over the HTTP endpoints. Connect with the model id seed-asr-2-0-stream and send your EmpirioLabs API key as an Authorization: Bearer header on the handshake. Append base64 16-bit PCM audio and read transcript events back while the speaker is still talking. A browser cannot set headers on a WebSocket, so open this connection from your server and relay audio to the browser over your own socket. Get an API key from the EmpirioLabs dashboard.
import asyncio, json, os, websockets
async def main():
async with websockets.connect(
"wss://api.empiriolabs.ai/v1/realtime?model=seed-asr-2-0-stream",
additional_headers=[
("Authorization", f"Bearer {os.environ['EMPIRIOLABS_API_KEY']}"),
],
max_size=None,
) as ws:
print(json.loads(await ws.recv())["type"]) # session.created
import base64
# 16-bit PCM microphone audio, base64 encoded, in small chunks.
for chunk in read_microphone_chunks():
await ws.send(json.dumps({
"type": "input_audio_buffer.append",
"audio": base64.b64encode(chunk).decode(),
}))
await ws.send(json.dumps({"type": "input_audio_buffer.commit"}))
async for raw in ws:
event = json.loads(raw)
if event["type"].endswith("input_audio_transcription.delta"):
# "text" is settled transcript; "stash" is still in progress.
if event.get("text"):
print(event["text"], end="", flush=True)
asyncio.run(main())Request parameters supported by the Seed ASR 2.0 Stream API on EmpirioLabs. Defaults apply when a field is omitted.
| Parameter | Type | Default | Range / values | Description |
|---|---|---|---|---|
| language | enum | auto | auto, multi, en, zh, yue, ja, ko, es, pt, de, fr, it, nl, ru,... | Language spoken. auto, zh, yue and en stream Chinese (Mandarin and dialects such as Cantonese) and English word by word as they are spoken. Every other language, and... |
| input_audio_format | enum | pcm16 | pcm16 | The audio you stream: 16 kHz 16-bit mono PCM (pcm16), base64 in input_audio_buffer.append or as binary frames. |
| silence_duration_ms | integer | 800 | 300 to 5000 | The pause in milliseconds that ends a turn, 300 to 5000 (turn_detection.silence_duration_ms). Chinese and English. |
| two_pass | boolean | true | - | Read each finished turn again for a more accurate final transcript. Chinese and English. |
| accelerate_score | integer | 0 | 0 to 20 | Show the first words of a turn sooner: 0 (off) to 20 (fastest). Higher values can make the first words less accurate. Chinese and English. |
| force_to_speech_time | integer | 0 | 0 to 10000 | The audio in milliseconds a turn must have before a pause can end it, 0 to 10,000. 0 lets any pause end it. Chinese and English. |
| prompt | string | - | max 4000 | Text that helps recognition, up to 4,000 characters: names, terms, or what was said just before. |
| hotwords | array | - | max 5000 | Up to 5,000 words or names to recognize as written, each up to 100 characters. |
| context | array | - | max 20 | Up to 20 earlier turns of the conversation, most recent first, each a string or an object with text (up to 1,000 characters) and an optional speaker, for example... |
| itn | boolean | true | - | Write numbers, dates and amounts as digits and symbols, for example 20% for twenty percent. |
| punctuation | boolean | true | - | Add punctuation. |
| disfluency_removal | boolean | false | - | Remove filler words and repetitions such as um, uh and repeated words. Chinese and English. |
| traditional_chinese | enum | off | off, traditional, tw, hk | Write Chinese in Traditional characters: traditional, tw (Taiwan) or hk (Hong Kong). off keeps Simplified. |
| sensitive_words_filter | object | - | - | Hide words in the text: an object with filter_with_empty (words to remove), filter_with_signed (words to replace with *), system_reserved_filter (true also replaces... |
Announcements, prompt tests, and comparisons that cover this model.
API Access How to Use the Seed ASR 2.0 Stream API Seed ASR 2.0 Stream on EmpirioLabs transcribes live audio over a WebSocket: Chinese and English arrive word by word, 67...
API Access How to Use the Seed ASR 2.0 API Seed ASR 2.0 on EmpirioLabs transcribes audio and video files in 67 languages, with speaker labels, word timestamps,...On EmpirioLabs, Seed ASR 2.0 Stream is billed pay as you go: Transcription $0.30 per hour of audio. You can also choose a plan with weekly allowances. The live rate card on this page always matches what the API charges.
Seed ASR 2.0 Stream takes Audio as input and returns Text.
Seed ASR 2.0 Stream is served through WEBSOCKET /v1/realtime on api.empiriolabs.ai with standard bearer-token authentication.
Send seed-asr-2-0-stream as the model in your request. The alternate IDs seed-asr-2.0-stream, bytedance/seed-asr-2.0-stream, bytedance/seed-asr-2-0-stream also work.
Seed ASR 2.0 Stream on EmpirioLabs is served from Malaysia.
Open the EmpirioLabs playground and press Start session to try it in your browser. Seed ASR 2.0 Stream runs over a WebSocket rather than a request and response, so to build with it start from the realtime voice quickstart. Connect from your server with your EmpirioLabs API key and the model id seed-asr-2-0-stream, then stream audio in both directions.
Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make. You can also choose a plan with weekly allowances.
Check out our pricing or reach out if you want your own model deployed on our stack.