Skip to content

Voice Frontends ​

The voice frontend handles realtime conversation; the backend Agent executes work. You can choose them independently.

Keep provider selection, credentials, endpoints, and the selected model in the config.env shown by qwenaudio config. Desktop's voice frontend settings edit these connection settings and select from the framework's supported models. Model definitions and adaptation parameters are maintained in code.

Choose a Service ​

ServiceProvider valueRequired configuration or preparationGuide
Qwen Audio / Omni 3.5 / Omni 3.8dashscope (default)DashScope API key; Omni 3.8 also requires a workspace-specific URLAudio / Omni vision
StepAudio 3stepfunStepFun API keyStepFun
OpenAI Realtimegpt-liveOpenAI API keyGPT-Live
OpenAI Live APIgpt-live-1OpenAI API keyGPT-Live 1
Gemini Livegoogle-liveGoogle API keyGoogle Live
Doubao Seeduplexdoubao-seeduplexDoubao API keyConfigure its model, voice, and endpoint below
Hugging Face speech-to-speechspeech-to-speechStart the service; default: ws://127.0.0.1:8765/v1/realtimeLocal model pipeline
MiniCPM-o 4.5minicpm-oStart the service; default: ws://127.0.0.1:8006/v1/realtime?mode=audioAudio/video modes and limits

For the default frontend:

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=

To switch to StepFun, select it and supply its own credentials:

dotenv
QWEN_AUDIO_REALTIME_PROVIDER=stepfun
QWEN_AUDIO_REALTIME_API_KEY=your-stepfun-key
QWEN_AUDIO_REALTIME_MODEL=stepaudio-3-realtime-preview
QWEN_AUDIO_REALTIME_URL=
QWEN_AUDIO_REALTIME_VOICE=

All frontends use the same five fields. They describe one active connection, not a collection of saved provider profiles. When switching providers, replace the key and model, and clear or replace the URL and voice. Frontend credentials are separate from backend, search, and memory-service credentials.

Connection Fields ​

FieldMeaning
QWEN_AUDIO_REALTIME_PROVIDERService to connect to; defaults to dashscope
QWEN_AUDIO_REALTIME_MODELModel ID; empty uses the provider default
QWEN_AUDIO_REALTIME_API_KEYCredential for the selected service
QWEN_AUDIO_REALTIME_URLWebSocket endpoint; empty uses the provider default
QWEN_AUDIO_REALTIME_VOICEVoice override; empty uses the model or service default

Provider defaults:

ProviderDefault modelDefault endpoint
dashscopeqwen-audio-3.1-realtime-pluswss://dashscope.aliyuncs.com/api-ws/v1/realtime
stepfunstepaudio-3-realtime-previewwss://api.stepfun.com/v1/realtime
gpt-livegpt-realtime-2.1wss://api.openai.com/v1/realtime
gpt-live-1gpt-live-1wss://api.openai.com/v1/live/sessions
google-livegemini-3.8-livewss://generativelanguage.googleapis.com/ws/google.ai.generativelanguage.v1beta.GenerativeService.BidiGenerateContent
doubao-seeduplex1.2.6.1wss://openspeech.bytedance.com/api/v3/duplex/realtime/dialogue
speech-to-speechSet upstreamws://127.0.0.1:8765/v1/realtime
minicpm-oSet upstreamws://127.0.0.1:8006/v1/realtime?mode=audio

For speech-to-speech and MiniCPM-o, leave model and voice empty: the upstream service controls them. Set the API key only if that service requires a Bearer token. Qwen3.8 Omni requires an explicit workspace-specific URL, not the public DashScope default. Uniform configuration does not change each service's protocol or capability limits; the Provider adapter handles those differences. GPT-Live 1 also reads GPT_LIVE_1_DELEGATION_MODEL, the Responses model it delegates to (default gpt-6-luna), and four timing settings described in its guide.

Current built-in DashScope model profiles:

Model IDRealtime input
qwen-audio-3.1-realtime-plus (default)Text, audio
qwen-audio-3.1-realtime-flashText, audio
qwen-audio-3.0-realtime-plusText, audio
qwen-audio-3.0-realtime-flashText, audio
qwen3.5-omni-flash-realtimeText, audio, live visual frames
qwen3.5-omni-plus-realtimeText, audio, live visual frames
qwen3.8-omni-flash-realtimeText, audio, live visual frames

All profiles support tool calls. Live vision also requires client and transport support; see Visual Input.

Audio 3.1 Plus / Flash use the existing dashscope provider and default to longanqian_v3.1; Audio 3.0 Plus / Flash keep longanqian. An explicit QWEN_AUDIO_REALTIME_VOICE must match the selected model. Audio models do not support visual input. See the Audio guide for model switching and workspace endpoint overrides.

Select a Supported Model ​

The model list is maintained by the framework. Desktop and qwenaudio config show use this same list; choose a model for the selected provider in Desktop or set QWEN_AUDIO_REALTIME_MODEL. Leave it empty to use the provider default. For example, with dashscope selected, use qwen-audio-3.1-realtime-flash to switch to the built-in 3.1 Flash model. The default remains 3.1 Plus.

An unsupported model ID is a configuration error. User configuration cannot add models, redefine existing models, or change their API bindings, capabilities, turn detection, or integration constraints. These are fixed by the framework's model support. The existing QWEN_AUDIO_REALTIME_VOICE and session-scoped voice overrides still work; choose a voice compatible with the selected model.

The list describes implemented support, not live service availability or account authorization. Check the account, region, endpoint, and voice for your chosen model, then apply and verify the connection below. Models behind speech-to-speech and MiniCPM-o remain configured in those external services.

Apply and Verify ​

  1. Click Apply in Desktop. For a terminal Gateway, stop and restart it. For an installed background service, run qwenaudio gateway restart.
  2. Connect a client and check that the voice frontend is connected.
  3. Speak and confirm that audio plays. If you need tools, also test search or a simple backend request.

To inspect the configured provider and supported model list:

bash
qwenaudio config show
qwenaudio config set --realtime-model qwen-audio-3.1-realtime-flash

config set changes the current provider's model; it neither switches providers nor restarts the Gateway. Remote clients use the remote Gateway's settings, not local model settings.

Service Differences ​

  • MiniCPM-o: the current adapter does not support text input, structured tool calls, proactive replies, or conversation context restoration. It supports voice/visual chat, not backend orchestration.
  • speech-to-speech: recognition languages, voices, and tool-call quality depend on the STT, LLM, and TTS you configure.
  • Google Live: the current adapter does not restore conversation context into a reconnected upstream session. Visible chat history does not mean the model received that history.
  • Other supported features and limits are documented in the service-specific guides.

Configure frontend tools separately: Search, MCP, OpenAPI.

Older Configuration ​

Provider-specific frontend variables are read only for compatibility. The five unified fields take precedence, including explicitly empty values. If an older file contains both unified model/voice fields and another provider's model/voice fields, put the selected provider's intended values in the unified fields. For Omni, move an existing QWEN_OMNI_REALTIME_VOICE value to QWEN_AUDIO_REALTIME_VOICE.

Only the active connection is saved; separate provider drafts are no longer persisted. Old variables are not automatically deleted because a backend Agent, search, or another module may still use them. Remove obsolete frontend-only overrides yourself after migration. See configuration priority.