Home Blog

How to Use the Seed ASR 2.0 Stream API

Seed ASR 2.0 Stream API blog cover

Nov 28, 2026

EmpirioLabs AI

Disclosure: This article was written with AI assistance and reviewed by EmpirioLabs AI.

Seed ASR 2.0 Stream is available on EmpirioLabs. It is the live form of ByteDance's Seed ASR 2.0: stream a microphone or a call over a WebSocket and read the transcript while the speaker talks. Chinese and English arrive word by word, and each turn settles into a final transcript when the speaker pauses. It speaks the OpenAI Realtime transcription protocol on WEBSOCKET /v1/realtime.

Try it in the Playground, read the parameters in the docs, and see the current rate on the Seed ASR 2.0 Stream model page.

Stream audio, read the transcript

Send 16 kHz mono 16-bit PCM in input_audio_buffer.append events, as a microphone would, and read the deltas and the completed turn:

import asyncio, base64, json, os, wave
import websockets

URL = "wss://api.empiriolabs.ai/v1/realtime?model=seed-asr-2-0-stream&language=en"
KEY = os.environ["EMPIRIOLABS_API_KEY"]

async def main():
    async with websockets.connect(URL, additional_headers=[("Authorization", f"Bearer {KEY}")]) as ws:
        await ws.recv()  # session.created

        async def stream_audio():
            with wave.open("speech-16k.wav") as wav:  # 16 kHz, mono, 16-bit
                while chunk := wav.readframes(1600):  # 100 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.1)

        sender = asyncio.create_task(stream_audio())
        async for raw in ws:
            event = json.loads(raw)
            if event["type"] == "conversation.item.input_audio_transcription.delta":
                print("...", event["delta"])
            elif event["type"] == "conversation.item.input_audio_transcription.completed":
                print("final:", event["transcript"])
                break
        await sender

asyncio.run(main())

On a 16-second recording the words arrived in pieces (... highlights, ... , the numbers), and the turn ended with the whole paragraph as final:.

Languages and turns

  • language, on the URL or in session.update: auto (the default), zh, yue and en stream Chinese, its dialects and English word by word. Every other language streams its text about every 20 seconds and at each commit, and multi detects any of them.
  • Turns: a pause of silence_duration_ms (800 by default) ends a turn, and two_pass reads each finished turn again for a more accurate final transcript. With turn_detection set to null, input_audio_buffer.commit ends a turn.
  • hotwords, prompt and context help the model spell names and terms.

Watch the launch film

The film shows the real WebSocket connection on the Seed ASR 2.0 Stream model page and what the model offers through the EmpirioLabs API. Watch it on YouTube.

Operational notes

  • Billed per second of audio sent, at the hourly rate. An open connection with no audio is not billed.
  • Set language for speech that changes language: detection can miss a change.
  • Files: for recordings, use Seed ASR 2.0 on POST /v1/audio/transcriptions.

Ready to use better endpoints?

Explore our models, or contact us about business inquiries, custom deployments, or anything else.