Skip to content

Qwen Audio Realtime ​

DashScope's Qwen Audio 3.0 and 3.1 Realtime models are purpose-built for speech-to-speech conversation. The default is Qwen Audio 3.1 Realtime Plus when you install qwen-audio-agent and only set an API key.

Models ​

The built-in Audio models are:

ModelNotes
qwen-audio-3.1-realtime-plusDefault. Uses longanqian_v3.1 by default
qwen-audio-3.1-realtime-flashUses longanqian_v3.1 by default
qwen-audio-3.0-realtime-plusPrevious-generation Plus model, still available
qwen-audio-3.0-realtime-flashLower latency, lower cost

All accept text and audio input, produce text and audio output, and support Function Calling (which is how the Gateway's frontend tools — task delegation, memory, reminders — reach the model).

Setup ​

dotenv
QWEN_AUDIO_REALTIME_PROVIDER=dashscope
QWEN_AUDIO_REALTIME_API_KEY=your-key
QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.1-realtime-plus
QWEN_AUDIO_REALTIME_URL=
QWEN_AUDIO_REALTIME_VOICE=

All frontends use the same connection fields; the selected provider determines how the credential is used.

One Gateway owns one active model. Switch it from the Desktop settings page or from the CLI, then restart the Gateway:

bash
qwenaudio config set --realtime-model qwen-audio-3.1-realtime-flash
# For an installed user background service only:
qwenaudio gateway restart

3.1 Plus / Flash reuse the dashscope provider and the existing WebSocket event protocol. An explicitly configured 3.0 model remains selected until you change or clear its model setting. If you have explicitly set a voice, choose one matching the model or clear the override to use its default. See the official migration guidance.

WebUI and TUI only display the active model; they never override it.

The supported model list and each model's adaptation parameters are maintained in framework code. Users select a model; they do not add model records or tune API bindings, capabilities, or turn detection. The default remains 3.1 Plus. Built-in support does not verify live account access; confirm availability for your account and endpoint. See the configuration reference.

Voice and turn detection ​

  • Default voice: longanqian_v3.1 for 3.1 Plus / Flash; longanqian for 3.0 Plus / Flash. Override with QWEN_AUDIO_REALTIME_VOICE using a voice supported by the selected model.
  • A GCP client may provide a session-scoped voice in connection.output_voice on its initial session.hello. It takes precedence over the environment default. At runtime, call GatewayClient.updateOutputVoice(voice); the Gateway rebuilds the upstream Realtime Session while preserving the Client connection and Gateway session.
  • Turn detection: smart_turn_v2 for 3.1 Plus / Flash; smart_turn for 3.0 Plus / Flash. The framework selects the fixed mode for the chosen model. Turn detection and VAD parameters are not user-configurable.

Endpoint overrides ​

For private deployments or proxies:

SettingEffect
QWEN_AUDIO_REALTIME_URLReplace the DashScope Realtime endpoint
DASHSCOPE_WORKSPACE_IDSwitch to a Bailian dedicated-workspace endpoint (wss://<workspace-id>.cn-beijing.maas.aliyuncs.com/...)

For workspace-specific access, use the existing workspace setting or base URL override with the endpoint supplied for your region and workspace.

The transport runs 16 kHz PCM input and 24 kHz PCM output over a single WebSocket.

Capability boundary ​

ModelCurrent client transport
Inputtext, audiotext, audio
Outputtext, audiotext, audio

Model capability and implemented transport are deliberately tracked separately; this family has no image modality to gap. For image input at the model level, see Qwen Omni Realtime.