Skip to main content

Qwen Realtime Plugin for Vision Agents

Qwen3 Realtime LLM integration for Vision Agents framework with native audio output and built-in speech recognition using WebSocket-based realtime communication.

Features

  • Native audio output: No TTS service needed - audio comes directly from the model
  • Built-in STT: Integrated speech-to-text using gummy-realtime-v1 - no external STT service required
  • Server-side VAD: Automatic turn detection with configurable silence thresholds
  • Video understanding: Optional video frame support for multimodal interactions
  • Real-time streaming: WebSocket-based bidirectional communication for low-latency responses
  • Interruption handling: Automatic cancellation when user starts speaking

Installation

uv add "vision-agents[qwen]"
# or directly
uv add vision-agents-plugins-qwen

Usage

from vision_agents.core import User, Agent
from vision_agents.plugins import getstream, qwen

agent = Agent(
    edge=getstream.Edge(),
    agent_user=User(name="Qwen Assistant"),
    instructions="Be helpful and friendly",
    llm=qwen.Realtime(
        model="qwen3-omni-flash-realtime",
        voice="Cherry",
        fps=1,
    ),
    # No STT or TTS needed - Qwen Realtime provides both
)

Configuration

Parameter Description Default Accepted Values
model Qwen Realtime model identifier "qwen3-omni-flash-realtime" Model name string
api_key DashScope API key None (from env) String or None
base_url WebSocket API base URL "wss://dashscope-intl.aliyuncs.com/api-ws/v1/realtime" URL string
voice Voice for audio output "Cherry" Voice name string
fps Video frames per second 1 Integer
include_video Include video frames in requests False Boolean
video_width Video frame width 1280 Integer
video_height Video frame height 720 Integer

Environment Variables

Set DASHSCOPE_API_KEY in your environment or .env file:

DASHSCOPE_API_KEY=your_dashscope_api_key_here

Example

See plugins/qwen/example/qwen_realtime_example.py for a complete working example.

Dependencies

  • vision-agents
  • websockets
  • aiortc
  • av

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision_agents_plugins_qwen-0.6.7.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vision_agents_plugins_qwen-0.6.7-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file vision_agents_plugins_qwen-0.6.7.tar.gz.

File metadata

  • Download URL: vision_agents_plugins_qwen-0.6.7.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_agents_plugins_qwen-0.6.7.tar.gz
Algorithm Hash digest
SHA256 36abf921afd1cdbde80c7e0722d0590b8eb1dcaf5a522af008b676f45e872a81
MD5 80cfbf6491b6e8d2a78c0d3b7334ce47
BLAKE2b-256 75e61d6644ea5e5f9b81b2ded99f6b1c17ed73b4580e53b9a985ecb03b96f439

See more details on using hashes here.

File details

Details for the file vision_agents_plugins_qwen-0.6.7-py3-none-any.whl.

File metadata

  • Download URL: vision_agents_plugins_qwen-0.6.7-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_agents_plugins_qwen-0.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e542315312f7d747932065851343d03437f5ae28edd2d328da471d8adada869a
MD5 27f5b13a8b598de3fc0338571226f6e2
BLAKE2b-256 9e384e655568d95a01341882ed18ba2aad89a93331938232f6d83004e5160f84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page