| type | string | (Required) Event type. Must be set to session.update. |
| session | object | (Optional) The session configuration. |
| session.output_modalities | array | (Optional) Applies to qwen3.8-livetranslate-flash-realtime. Output modalities: ["text"] for text only or ["text", "audio"] for text and audio (default). |
| session.audio | object | (Optional) Applies to qwen3.8-livetranslate-flash-realtime. Audio configuration. |
| session.audio.input | object | Input audio configuration. |
| session.audio.input.format | object | (Optional) Input audio format. |
| session.audio.input.format.type | string | (Optional) Audio format. Valid values: pcm (default) and opus. |
| session.audio.input.format.sample_rate | integer | (Optional) Input audio sample rate in Hz. Default: 16000. |
| session.audio.input.turn_detection | object | (Optional) Speech detection configuration. |
| session.audio.input.turn_detection.type | string | (Optional) Valid values: speaker_detection (default, enables real-time speaker diarization) and server_vad (voice activity detection). |
| session.audio.input.turn_detection.threshold | number | (Optional) The detection threshold. In 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. |
| session.modalities | array | (Optional) Applies to qwen3.5-livetranslate-flash-realtime. Output modalities. Valid values: Outputs text only. - ["text","audio"] (Default)
Outputs text and audio. |
| session.voice | string | (Optional) Voice for generated audio. When voice cloning is disabled, set this to a system preset voice. Valid values: Supported voices. The default voice is Tina for qwen3.8-livetranslate-flash-realtime and qwen3.5-livetranslate-flash-realtime. > When enable_voice_clone is true, the value of voice depends on the voice_clone_options.frequency setting. When frequency is once or always, set it to default. When frequency is never, set it to the voice ID you previously cloned. Using a system preset voice in this case causes a server error. |
| session.enable_voice_clone | boolean | (Optional) Whether to enable voice cloning. The default is 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. |
| session.voice_clone_options | object | (Optional) Voice clone control options. Takes effect only when enable_voice_clone is true. |
| session.voice_clone_options.frequency | string | (Optional) Voice cloning frequency. Valid values: Disables server-side voice cloning and uses a voice you previously cloned. Set voice to your cloned voice ID. Clones the voice once at the start of the session and reuses it for all subsequent output. Suitable for single-speaker scenarios. Set voice to default. Re-clones the voice in real time before each output, dynamically adapting to the input audio. Suitable for multi-speaker scenarios. Set voice to default. |
| session.sample_rate | integer | (Optional) Applies to qwen3.5-livetranslate-flash-realtime. Input audio sample rate, in Hz. Valid values: |
| session.input_audio_transcription | object | (Optional) Applies to 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. |
| session.input_audio_transcription.model | string|null | (Optional) Speech recognition model. Defaults to 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). |
| session.input_audio_transcription.language | string | (Optional) Source language for translation. Valid values: Supported languages. If not specified, the model automatically detects the source language. |
| session.input_audio_format | string | (Optional) Applies to qwen3.5-livetranslate-flash-realtime. Input audio format. Valid values: Uncompressed raw audio data. Lossy audio codec with low-latency support, suitable for VoIP scenarios. |
| session.output_audio_format | string | (Optional) Applies to qwen3.5-livetranslate-flash-realtime. Output audio format. Currently, this parameter can only be set to pcm. |
| session.turn_detection | object|null | (Optional) Applies to 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.commit events. - Set to
null: Enables Manual mode. The client manually commits the audio buffer by sending input_audio_buffer.commit events. The server automatically starts generating translation responses upon receiving the commit.
|
| session.turn_detection.type | string | (Optional) VAD type. Must be set to server_vad. |
| session.turn_detection.threshold | float | (Optional) VAD detection sensitivity. A lower value makes it easier to recognize faint sounds (including background noise) as speech; a higher value requires clearer, louder speech to trigger detection. Value range: [-1.0, 1.0]. Default value: 0.2. |
| session.turn_detection.silence_duration_ms | integer | (Optional) Minimum duration of silence (in milliseconds) required after speech ends. Once this duration is exceeded, the server determines that speech has ended, automatically commits the audio buffer, and triggers a translation response. Value range: [200, 6000]. Default value: 1000. |
| session.translation | object | (Optional) Translation configuration. |
| session.translation.language | string | (Optional) Target language for translation. Valid values: Supported languages. Default value: en. |
| session.translation.same_language_skip_options | object | (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. |
| session.translation.same_language_skip_options.skip_text | boolean | (Optional) Specifies whether to skip text output when the source and target languages are the same. |
| session.translation.same_language_skip_options.skip_audio | boolean | (Optional) Specifies whether to skip audio output when the source and target languages are the same. |
| session.translation.corpus | object | (Optional) Hot-word configuration to improve translation accuracy for specific terms. |
| session.translation.corpus.phrases | object | (Optional) Hot-word mapping. The key is the term in the source language, and the value is its target-language translation. Example: {"AI": "Artificial Intelligence"} |