Rate this page:

Qwen Cloud Voice Agent API client

Qwen Cloud is an advanced AI-native platform developed by Alibaba Cloud that hosts the powerful Qwen family of large language and multimodal models. Engineered specifically for complex reasoning, multilingual comprehension, and real-time interaction, Qwen Cloud serves as the backbone for next-generation AI agents. By processing and understanding context with exceptionally low latency, the platform enables enterprises to deploy sophisticated digital assistants capable of managing intricate workflows and natural human conversations across global markets.

This module provides a client interface for real-time voice conversations with Qwen Cloud (over WebSocket). Input audio is PCM 16 kHz. Response audio is PCM 24 kHz on the provider side and is delivered to the scenario as media. Learn more about the Qwen-Audio Realtime API.

The backend adapter family is conversational_ws / qwencloud (ai-connector endpoint /qwencloud).

Usage

Copy URL
  1. Require the Modules.Grok module in your VoxEngine scenario.
  2. Create a QwenCloud.VoiceAgentAPIClient instance (via QwenCloud.createVoiceAgentAPIClient) and provide your parameters
  3. Send media between Call and the QwenCloud.VoiceAgentAPIClient (via *.sendMedia or VoxEngine.sendMediaBetween)
  4. Listen to QwenCloud.VoiceAgentAPIEvents and implement the scenario logic
  5. Send sessionUpdate before the first audio frame. turn_detection: null selects push-to-talk

The default model is qwen-audio-3.1-realtime-plus.

Here is the complete scenario example for your reference:

Qwen Cloud Voice Agent

Here is the function calling example:

Function calling
Rate this page: