Seed Live Interpretation 2.0 is available on EmpirioLabs. It is ByteDance's simultaneous interpretation model: stream speech in, and the translation comes back sentence by sentence as text, or as speech in the voice of whoever is speaking. Chinese or English is one side of every pair, with 46 other languages and 9 Chinese dialects on the other. It speaks the OpenAI Realtime protocol on WEBSOCKET /v1/realtime.
Try it in the Playground, read the parameters in the docs, and see the current rate on the Seed Live Interpretation 2.0 model page.
Interpret a speaker
Set the languages with session.update, stream 16 kHz mono 16-bit PCM, and read the translated speech and its text:
import asyncio, base64, json, os, wave
import websockets
URL = "wss://api.empiriolabs.ai/v1/realtime?model=seed-live-interpretation-2-0"
KEY = os.environ["EMPIRIOLABS_API_KEY"]
async def main():
async with websockets.connect(URL, additional_headers=[("Authorization", f"Bearer {KEY}")], max_size=None) as ws:
await ws.recv() # session.created
await ws.send(json.dumps({"type": "session.update",
"session": {"source_language": "en", "target_language": "zh"}}))
async def speak():
with wave.open("speech-16k.wav") as wav: # 16 kHz, mono, 16-bit
while chunk := wav.readframes(1280): # 80 ms at a time, as a microphone sends it
await ws.send(json.dumps({"type": "input_audio_buffer.append",
"audio": base64.b64encode(chunk).decode()}))
await asyncio.sleep(0.08)
await ws.send(json.dumps({"type": "session.finish"}))
sender = asyncio.create_task(speak())
speech = bytearray()
async for raw in ws:
event = json.loads(raw)
if event["type"] == "response.audio.delta":
speech.extend(base64.b64decode(event["delta"])) # the translation, 24 kHz 16-bit PCM
elif event["type"] == "response.audio_transcript.done":
print(event["transcript"])
elif event["type"] == "session.finished":
break
await sender
print(f"{len(speech) / 48000:.1f} s of translated speech")
asyncio.run(main())
On a 16-second English recording it printed seven Chinese sentences, from 早上好,欢迎参加本次季度更新会议。 to 以及团队接下来的计划。, then 18.1 s of translated speech, spoken in the speaker's own voice.
Languages and voices
- Spoken translation goes into 16 languages: Chinese, English, Japanese, Korean, French, German, Spanish, Portuguese, Russian, Arabic, Indonesian, Thai, Vietnamese, Italian, Filipino and Malay. Set
modalitiesto["text"]for text only, which reaches 32 more languages. voice_clonealways(the default) speaks in the voice of whoever is talking, matched again for each speaker. Set it tooffto use a Seed TTS 2.0 voice, or a custom voice from Seed Voice Replication 2.0.hot_words,glossaryandreplacementshelp with names, product terms and fixed spellings.
Watch the launch film
The film plays an English speaker, then Seed Live Interpretation 2.0's Chinese interpretation in that speaker's own voice, through the EmpirioLabs API. Watch it on YouTube.
Operational notes
- Billed per token of the audio sent and of the translated text and speech. Each sentence's
response.donecarries its usage. - Set the languages before the first audio. A change of language or voice later in the session takes effect from the next sentence.
source_languageautorecognizes Chinese and English, mixed, and needs atarget_languageofzhoren.




