Skip to main content

Qwen Omni plugin for vision agents

Project description

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]

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

Project details


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.2.6.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.2.6-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for vision_agents_plugins_qwen-0.2.6.tar.gz
Algorithm Hash digest
SHA256 2ba9ba83a50f54e62f830aed5797b5bc15507d801d057c0514207b04e75f675b
MD5 344c1c6816cf1aa0f0fd55c8b92e9626
BLAKE2b-256 2766bf56e8d408ab8bc388d31a7a0bae8fd40d92467b6faa981882950028072b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vision_agents_plugins_qwen-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f1fc48be792059139091be72ff8942c6d35077202b83c1db02f5c49e7e646fe8
MD5 d138190879c3c176349ae22286ab679c
BLAKE2b-256 7b27c95a8c05a5b9e0fda8a144e98335424590fa5e052d67513cf65ffd1dee8b

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 Pingdom Monitoring Sentry Error logging StatusPage Status page