This topic describes client events for the Qwen real-time speech and audiovisual translation API, including event types, parameters, and examples.
Reference: Real-time audio and video translation - Qwen .
This page is the event reference for Qwen-LiveTranslate-Realtime. Event definitions are based on WebSocket access. AOQ and WebRTC use their respective data channels to send and receive model events, and media tracks to transmit media. First read WebSocket access, WebRTC access, or AOQ access.
session.update
Send this event after establishing a WebSocket connection to update the default session configuration. The server validates parameters and returns either an error (if invalid) or the updated configuration (if valid).
typestring(Required)session.update.sessionobject(Optional)Properties
Properties
input_modalitiesarray(Optional)qwen3.8-livetranslate-flash-realtime over WebSocket. Set to ["audio"] (audio only, the default) or ["audio", "video"] (audio and images). The model processes images sent through input_image_buffer.append only when video is enabled.output_modalitiesarray(Optional)qwen3.8-livetranslate-flash-realtime. Output modalities: ["text"] for text only or ["text", "audio"] for text and audio (default).audioobject(Optional)qwen3.8-livetranslate-flash-realtime. Audio configuration.Properties
Properties
inputobjectProperties
Properties
formatobject(Optional)Properties
Properties
typestring(Optional)pcm (default) and opus.sample_rateinteger(Optional)turn_detectionobject(Optional)Properties
Properties
typestring(Optional)speaker_detection (default, enables real-time speaker diarization) and server_vad (voice activity detection).thresholdnumber(Optional)speaker_detection mode, it distinguishes silence from valid speech. Sounds below the threshold are filtered out and are not passed to the model. The value is fixed at 0.5.outputobject(Optional)Properties
Properties
voicestring(Optional)Tina. For real-time voice cloning with voice_clone_options.frequency set to once or always, set the voice to default.modalitiesarray(Optional)qwen3.5-livetranslate-flash-realtime.Output modalities. Valid values:- ["text"] Outputs text only.
- ["text","audio"] (Default) Outputs text and audio.
voicestring(Optional)Tina for qwen3.8-livetranslate-flash-realtime and qwen3.5-livetranslate-flash-realtime.In 3.8, you can also set the voice in the output object under audio.Whenenable_voice_cloneistrue, the value ofvoicedepends on thevoice_clone_options.frequencysetting. Whenfrequencyisonceoralways, set it todefault. Whenfrequencyisnever, set it to the voice ID you previously cloned. Using a system preset voice in this case causes a server error.
enable_voice_cloneboolean(Optional)false. When enabled, you can clone the input voice in real time during translation or use a voice cloned in advance. In this case, voice no longer uses a system preset voice. Set it to default or the ID of a voice you cloned in advance through the Voice cloning API.voice_clone_optionsobject(Optional)enable_voice_clone is true.Properties
Properties
frequencystring(Optional)-
neverDisables server-side voice cloning and uses a voice you previously cloned. Setvoiceto your cloned voice ID. -
onceClones the voice once at the start of the session and reuses it for all subsequent output. Suitable for single-speaker scenarios. Setvoicetodefault. -
alwaysRe-clones the voice in real time before each output, dynamically adapting to the input audio. Suitable for multi-speaker scenarios. Setvoicetodefault.
sample_rateinteger(Optional)qwen3.5-livetranslate-flash-realtime.Input audio sample rate, in Hz. Valid values:- 8000
- 16000 (Default)
input_audio_transcriptionobject(Optional)qwen3.5-livetranslate-flash-realtime.For qwen3.8-livetranslate-flash-realtime, ASR is always enabled and cannot be disabled. Transcripts are free of charge.Configuration for input audio.Properties
Properties
modelstring|null(Optional)qwen3-asr-flash-realtime; ASR is enabled by default. The server returns the input audio recognition result (original source language text) through the conversation.item.input_audio_transcription.text and conversation.item.input_audio_transcription.completed events. To disable ASR, explicitly set this parameter to null.Valid values: qwen3-asr-flash-realtime (default, enables ASR) and null (disables ASR).languagestring(Optional)input_audio_formatstring(Optional)qwen3.5-livetranslate-flash-realtime.Input audio format. Valid values:-
pcm(Default) Uncompressed raw audio data. -
opusLossy audio codec with low-latency support, suitable for VoIP scenarios.
output_audio_formatstring(Optional)qwen3.5-livetranslate-flash-realtime.Output audio format. Currently, this parameter can only be set to pcm.turn_detectionobject|null(Optional)qwen3.5-livetranslate-flash-realtime.Voice Activity Detection (VAD) configuration, used to control how speech start and end are detected:- Set to a configuration object (default): Enables VAD mode. The server automatically detects speech start and end, commits the audio buffer, and triggers translation responses. The client does not need to send
input_audio_buffer.commitevents. - Set to
null: Enables Manual mode. The client manually commits the audio buffer by sendinginput_audio_buffer.commitevents. The server automatically starts generating translation responses upon receiving the commit.
Properties
Properties
typestring(Optional)server_vad.thresholdfloat(Optional)silence_duration_msinteger(Optional)translationobject(Optional)Properties
Properties
languagestring(Optional)en.same_language_skip_optionsobject(Optional)qwen3.8-livetranslate-flash-realtime does not support this parameter.Same-language output configuration. When the source and target languages are the same, the service can skip text output, audio output, or both. This parameter takes effect only when the target language is set to zh or en.Properties
Properties
skip_textboolean(Optional)skip_audioboolean(Optional)corpusobject(Optional)Properties
Properties
phrasesobject(Optional){"AI": "Artificial Intelligence"}- qwen3.8-livetranslate-flash-realtime
- qwen3.5-livetranslate-flash-realtime
input_audio_buffer.append
For WebSocket access, appends audio bytes to the input audio buffer. The server uses this buffer to detect speech and determine when to commit it.
typestring(Required)input_audio_buffer.append.audiostring(Required)input_audio_buffer.commit
Commits the input audio buffer. This event only needs to be sent in Manual mode (turn_detection set to null). In VAD mode, the server commits automatically and the client does not need to send this event.
Upon receiving this event, the server returns an input_audio_buffer.committed event as confirmation and automatically starts generating a translation response (no additional event is needed to trigger the response). If the audio buffer is empty, the server returns an error event.
typestring(Required)input_audio_buffer.commit.input_audio_buffer.clear
Clears uncommitted audio data from the input audio buffer.
typestring(Required)input_audio_buffer.clear.input_image_buffer.append
For WebSocket access, adds image data to the image buffer. Images can come from a local file or be captured in real time from a video stream.
For qwen3.8-livetranslate-flash-realtime, set session.input_modalities to ["audio", "video"] in session.update before sending images. Existing requests that omit this field can still upload images, but the model ignores them.
Image input limits:
- Image format: JPG or JPEG. Recommended resolution for optimal performance: 480p or 720p (maximum: 1080p).
- Maximum image size: 500 KB (before Base64 encoding).
- Image data must be Base64-encoded.
- Maximum frequency: 2 images per second.
- Send at least one input_audio_buffer.append event before sending input_image_buffer.append.
typestring(Required)input_image_buffer.append.imagestring(Required)session.finish
Send this event to end the current session. Server responses:
- If speech is detected: The server completes the remaining translation. If input audio transcription is enabled, it returns the complete source-language transcript through conversation.item.input_audio_transcription.completed. After all audio translation is complete, it sends session.finished to indicate session end.
- If no speech is detected: The server sends session.finished directly.
session.finished event, the client must finish local playback of any remaining translated audio before actively disconnecting, if playback is needed.
typestring(Required)session.finish.