Skip to main content
Use the file upload endpoint for a complete recording. Use Qwen3-ASR over a WebSocket when an application needs partial transcripts while someone is speaking.

Choose a recognizer

Whisper file transcription and settings.

Transcribe a file with word times

Once /health returns 200, upload a local recording from a second terminal:
Read text for the transcript and words for start and end times in seconds. Other recognizers can return one segment per audio window in a timed response format. Those segment boundaries describe chunking rather than word alignment. Long recordings and window settings. Uploads may be up to 30 minutes and 512 MiB. The endpoint splits long uploads into windows that end at quiet points. The native SDK’s client.transcribe() sends a single generation request instead. With Whisper it consumes only the first 30 seconds. Use the upload endpoint when you need the whole recording. Files such as M4A or WebM need TorchCodec and FFmpeg’s shared libraries. Live Qwen3-ASR sessions and settings.

Read a live transcript

Start mstar serve qwen3_asr_realtime after stopping your file-transcription server. Connect to ws://localhost:8000/v1/realtime?intent=transcription. Both Qwen3-ASR keys accept this protocol.
  1. Wait for transcription_session.created.
  2. Send input_audio_buffer.append with the audio field containing base64 PCM16 audio. The default format is mono, 16 kHz. A transcription_session.update can select another supported rate or G.711.
  3. Display mstar.transcription.partial as the current hypothesis. Its tail can change.
  4. Send input_audio_buffer.commit at the end of the utterance. Read the transcript field on the conversation.item.input_audio_transcription.completed event.
An utterance can contain up to 300 seconds. With client turn detection, commit or clear before appending more. To let the server detect turns, install the vad extra and select server_vad. A runnable client shows concurrent audio upload and event handling.

Tune window size and concurrency

The upload route normally windows Qwen3-ASR at 30 seconds. Omnilingual consumes up to 20 seconds whole and splits longer uploads into windows up to 16 seconds. Other adapters use their model clip limit. Set window_seconds on an upload to choose a window from 5 seconds up to the model limit. Large windows on Qwen3-ASR increase per-request KV usage. The file-serving configs whisper_large_v3_turbo.yaml and qwen3_asr.yaml set knobs.step_threads: serial. Use the file benchmark below to compare changes on your host.

Check accuracy and latency

From a source checkout, install the asr and eval extras, prepare the LibriSpeech test set and run against a live Whisper server:
Compare word error rate, throughput (RTFx), and p50/p95 latency. For live captions, run benchmark.asr_realtime_bench against Qwen3-ASR to measure partial-result latency.