Seed Live Interpretation 2.0 API

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.

ByteDance Audio Generation Malaysia Proprietary Endpoint New

About Seed Live Interpretation 2.0

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

realtime speech to speech translation audio in audio out multilingual voice cloning

Seed Live Interpretation 2.0 specs

Model ID
seed-live-interpretation-2-0
Author
ByteDance
Category
Audio Generation
Released
-
Input
Audio
Output
AudioText
Region
Malaysia
Endpoints
WEBSOCKET/v1/realtime
Alternate model IDs
seed-live-interpretation-2.0dola-seed-live-interpretation-2.0bytedance/seed-live-interpretation-2.0bytedance/seed-live-interpretation-2-0

Seed Live Interpretation 2.0 API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You can also choose a plan with weekly allowances.

Type
Spec
Rate
Input: audio
per 1M audio input tokens
$24.00
Input
per 1M prompt tokens
$24.00
Output
per 1M generated tokens
$24.00
Output: audio
per 1M generated audio tokens
$92.00
Compare on the full pricing page

How to call the Seed Live Interpretation 2.0 API

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.

Python (websockets)
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())
Full Seed Live Interpretation 2.0 API reference

Seed Live Interpretation 2.0 API parameters

Request parameters supported by the Seed Live Interpretation 2.0 API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
target_languageenumenzh, en, ja, ko, fr, de, es, pt, ru, ar, id, th, vi, it, fil, msLanguage the speech is translated into. Chinese and English take any source language; the other languages are translated into from Chinese or English. These...
source_languageenumautoauto, 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,...
modalitiesstring["text","audio"]-["text", "audio"] returns the translation as text and speech; ["text"] returns text only.
voice_cloneenumalwaysoff, alwaysalways speaks the translation in the voice of whoever is speaking, matched again for each speaker; off uses voice. Spoken output only.
voiceenumzh_female_vv_uranus_bigttsen_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_idstring--A custom voice: the voice_id Seed Voice Replication 2.0 returned on this account. Used instead of voice, with voice_clone off.
speednumber10.5 to 2Speaking rate of the translated speech. 0.5 is half speed and 2.0 is double speed.
denoisebooleanfalse-Reduce background noise in the incoming audio before it is recognized.
hot_wordsarray-max 1000Words and names to recognize reliably, such as product names. Up to 1,000, counted with glossary, each at most 200 characters.
glossaryobject--Preferred translations for specific terms, as an object of source term to translation, for example {"machine learning": "aprendizaje automático"}. Guidance for the...
replacementsobject--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_formatenumpcm16pcm16Encoding of the audio you append: base64 16-bit PCM, 16 kHz, mono.
output_audio_formatenumpcm16pcm16Encoding of the translated speech: base64 16-bit PCM, 24 kHz, mono.

Good to know

Connect

  • WEBSOCKET /v1/realtime?model=seed-live-interpretation-2-0, in the OpenAI Realtime protocol: stream 16 kHz mono 16-bit PCM with input_audio_buffer.append. Set the languages, voice and output with session.update before the first audio.
  • Each translated sentence arrives as a response: response.audio_transcript.delta and response.audio.delta (24 kHz 16-bit PCM) with speech, or response.text.delta with text only. The speaker's own words arrive as conversation.item.input_audio_transcription.completed.

Languages

  • Chinese or English is one side of every pair: any of 46 languages and 9 Chinese dialects translates into Chinese or English, and Chinese or English translates into any of the 46.
  • Spoken translation goes into 16 languages: Chinese, English, Japanese, Korean, French, German, Spanish, Portuguese, Russian, Arabic, Indonesian, Thai, Vietnamese, Italian, Filipino and Malay. The others are text only.
  • source_language defaults to auto, which recognizes Chinese and English, mixed, and needs a target_language of zh or en.

Voice

  • voice_clone always (the default) speaks the translation in the voice of whoever is speaking, matched again for each speaker. off uses voice, one of the [Seed TTS 2.0](/models/seed-tts-2-0) voices, or a custom voice_id from [Seed Voice Replication 2.0](/models/seed-voice-replication-2-0). For Korean, Russian, Arabic or Thai, choose a voice that lists the language.
  • speed sets the rate of the translated speech; modalities ["text"] returns text only.

Terms

  • hot_words help recognize names and terms, glossary suggests translations of specific terms, and replacements rewrites the transcript and the translation by regular expression.

Billing

  • Billed per token: the audio you send (about 6.25 tokens a second), the translated text, and the translated speech (about 25 tokens a second). Each sentence's response.done carries its usage.

Seed Live Interpretation 2.0 on the blog

Announcements, prompt tests, and comparisons that cover this model.

Seed Live Interpretation 2.0 API: common questions

How much does the Seed Live Interpretation 2.0 API cost?

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.

What inputs and outputs does Seed Live Interpretation 2.0 support?

Seed Live Interpretation 2.0 takes Audio as input and returns Audio, Text.

Which endpoint does Seed Live Interpretation 2.0 use?

Seed Live Interpretation 2.0 is served through WEBSOCKET /v1/realtime on api.empiriolabs.ai with standard bearer-token authentication.

What is the model ID for Seed Live Interpretation 2.0?

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.

Where is Seed Live Interpretation 2.0 served from?

Seed Live Interpretation 2.0 on EmpirioLabs is served from Malaysia.

Can I try Seed Live Interpretation 2.0 in the browser before integrating?

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.

How do I get a Seed Live Interpretation 2.0 API key?

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.

Ready to use better endpoints?

Check out our pricing or reach out if you want your own model deployed on our stack.