qwen3-tts-instruct
بواسطة yanmoon321
DevOps & Cloudموجز
Alibaba Cloud Bailian Qwen TTS with voice/mood presets.
الوصف
ما الذي تفعله هذه المهارة
Generates text-to-speech audio using Alibaba Cloud's DashScope (Bailian) Qwen TTS API via WebSocket streaming. Supports over 30 mood presets, 35 female voices, and 10 languages including Japanese and Korean. The agent picks moods based on its own emotional reaction to the conversation, not the user's state.
The 30+ named mood presets (nervous, jealous, yandere, asmr, etc.) produce emotionally nuanced speech that generic TTS APIs can't replicate without custom prosody tuning.
متى تستخدمها
- Voicing AI companion replies with contextually matched emotions
- Sending opus-format voice messages to Telegram users
- Generating multilingual audio in Japanese, Korean, or Spanish
- Recording WAV or MP3 narration for video or podcast projects
- Producing roleplay character voices with presets like tsundere or maid
مثال على سير العمل
User asks: 'Say good morning to me in Japanese with a gentle voice'
- 1
Translate 'good morning' to Japanese internally: 'おはようございます'
- 2
Select mood 'gentle' to match a warm companion response
- 3
Call tts.py --voice Maia --mood gentle --language Japanese --format mp3
- 4
Receive streaming audio from DashScope WebSocket
- 5
Send tts_output.mp3 and original translated text to user
MP3 audio of 'おはようございます' in Maia's gentle voice
المتطلبات
- DASHSCOPE_API_KEY environment variable
- Alibaba Cloud account with DashScope (Bailian) API access enabled
التثبيت
clawhub install yanmoon321/qwen3-tts-instructشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.