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:
| Model | Notes |
|---|---|
qwen-audio-3.1-realtime-plus | Default. Uses longanqian_v3.1 by default |
qwen-audio-3.1-realtime-flash | Uses longanqian_v3.1 by default |
qwen-audio-3.0-realtime-plus | Previous-generation Plus model, still available |
qwen-audio-3.0-realtime-flash | Lower 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
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:
qwenaudio config set --realtime-model qwen-audio-3.1-realtime-flash
# For an installed user background service only:
qwenaudio gateway restart3.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.1for 3.1 Plus / Flash;longanqianfor 3.0 Plus / Flash. Override withQWEN_AUDIO_REALTIME_VOICEusing a voice supported by the selected model. - A GCP client may provide a session-scoped voice in
connection.output_voiceon its initialsession.hello. It takes precedence over the environment default. At runtime, callGatewayClient.updateOutputVoice(voice); the Gateway rebuilds the upstream Realtime Session while preserving the Client connection and Gateway session. - Turn detection:
smart_turn_v2for 3.1 Plus / Flash;smart_turnfor 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:
| Setting | Effect |
|---|---|
QWEN_AUDIO_REALTIME_URL | Replace the DashScope Realtime endpoint |
DASHSCOPE_WORKSPACE_ID | Switch 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
| Model | Current client transport | |
|---|---|---|
| Input | text, audio | text, audio |
| Output | text, audio | text, 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.
Read next
- GPT-Live / OpenAI Realtime — OpenAI cloud realtime frontend
- Google Gemini Live — Google cloud realtime frontend
- Speech-to-Speech — fully local frontend, no cloud key
- MiniCPM-o 4.5 — local end-to-end realtime voice
- Custom Provider — bring another realtime service
- Frontend configuration reference