
Simultaneous interpretation over a WebSocket: speech in, its translation out as text or as speech in the speaker's own voice, between Chinese or English and 46 languages.
Simultaneous interpretation over a WebSocket: speech in, its translation out as text or as speech in the speaker's own voice, between Chinese or English and 46 languages.
Stream 16 kHz mono 16-bit PCM over the socket. Billed per token of the audio sent and of the translated text and speech.
Also known as Seed Live Interpretation, ByteDance Seed Live Interpretation 2.0
seed-live-interpretation-2-0/v1/realtimeseed-live-interpretation-2.0dola-seed-live-interpretation-2.0bytedance/seed-live-interpretation-2.0bytedance/seed-live-interpretation-2-0Live pay-as-you-go rates from the EmpirioLabs catalog. You can also choose a plan with weekly allowances.
Seed Live Interpretation 2.0 holds a live conversation over a WebSocket at wss://api.empiriolabs.ai/v1/realtime?model=seed-live-interpretation-2-0, not over the HTTP endpoints. Connect with the model id seed-live-interpretation-2-0 and send your EmpirioLabs API key as an Authorization: Bearer header on the handshake. Audio travels both ways as base64 16-bit PCM. 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-live-interpretation-2-0",
additional_headers=[
("Authorization", f"Bearer {os.environ['EMPIRIOLABS_API_KEY']}"),
],
max_size=None,
) as ws:
print(json.loads(await ws.recv())["type"]) # session.created
await ws.send(json.dumps({
"type": "conversation.item.create",
"item": {
"type": "message",
"role": "user",
"content": [{"type": "input_text", "text": "Say hello."}],
},
}))
await ws.send(json.dumps({"type": "response.create"}))
async for raw in ws:
event = json.loads(raw)
if event["type"] == "response.audio.delta":
... # base64 audio chunk, append to your playback buffer
elif event["type"] == "response.done":
break
asyncio.run(main())Request parameters supported by the Seed Live Interpretation 2.0 API on EmpirioLabs. Defaults apply when a field is omitted.
| Parameter | Type | Default | Range / values | Description |
|---|---|---|---|---|
| target_language | enum | en | zh, en, ja, ko, fr, de, es, pt, ru, ar, id, th, vi, it, fil, ms | Language the speech is translated into. Chinese and English take any source language; the other languages are translated into from Chinese or English. These... |
| source_language | enum | auto | auto, zh, en, ja, ko, fr, de, es, pt, ru, ar, id, th, vi, it,... | Language being spoken. auto recognizes Chinese and English, mixed, and needs a target of zh or en; a Chinese dialect (yue-CN, sh-CN, nan, lany, hak, shaanxi, jilu,... |
| modalities | string | ["text","audio"] | - | ["text", "audio"] returns the translation as text and speech; ["text"] returns text only. |
| voice_clone | enum | always | off, always | always speaks the translation in the voice of whoever is speaking, matched again for each speaker; off uses voice. Spoken output only. |
| voice | enum | zh_female_vv_uranus_bigtts | en_female_stokie_uranus_bigtts, en_female_dacey_uranus_bigtts... | Preset voice for the translated speech while voice_clone is off. All 203 Seed TTS 2.0 voices are listed here and by GET /v1/voices?model=seed-tts-2-0. For Korean,... |
| voice_id | string | - | - | A custom voice: the voice_id Seed Voice Replication 2.0 returned on this account. Used instead of voice, with voice_clone off. |
| speed | number | 1 | 0.5 to 2 | Speaking rate of the translated speech. 0.5 is half speed and 2.0 is double speed. |
| denoise | boolean | false | - | Reduce background noise in the incoming audio before it is recognized. |
| hot_words | array | - | max 1000 | Words and names to recognize reliably, such as product names. Up to 1,000, counted with glossary, each at most 200 characters. |
| glossary | object | - | - | Preferred translations for specific terms, as an object of source term to translation, for example {"machine learning": "aprendizaje automático"}. Guidance for the... |
| replacements | object | - | - | Text replacements for the transcript and the translation, as an object of regular expression to replacement text, for example {"[Bb]yte ?[Pp]lus": "BytePlus"}. Up to... |
| input_audio_format | enum | pcm16 | pcm16 | Encoding of the audio you append: base64 16-bit PCM, 16 kHz, mono. |
| output_audio_format | enum | pcm16 | pcm16 | Encoding of the translated speech: base64 16-bit PCM, 24 kHz, mono. |
Announcements, prompt tests, and comparisons that cover this model.
On EmpirioLabs, Seed Live Interpretation 2.0 is billed pay as you go: Input: audio $24.00 per 1M audio input tokens; Input $24.00 per 1M prompt tokens; Output $24.00 per 1M generated tokens; Output: audio $92.00 per 1M generated audio tokens. You can also choose a plan with weekly allowances. The live rate card on this page always matches what the API charges.
Seed Live Interpretation 2.0 takes Audio as input and returns Audio, Text.
Seed Live Interpretation 2.0 is served through WEBSOCKET /v1/realtime on api.empiriolabs.ai with standard bearer-token authentication.
Send seed-live-interpretation-2-0 as the model in your request. The alternate IDs seed-live-interpretation-2.0, dola-seed-live-interpretation-2.0, bytedance/seed-live-interpretation-2.0, bytedance/seed-live-interpretation-2-0 also work.
Seed Live Interpretation 2.0 on EmpirioLabs is served from Malaysia.
Open the EmpirioLabs playground and press Start session to try it in your browser. Seed Live Interpretation 2.0 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-live-interpretation-2-0, 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.