iluozhiqiang/hermes-aimaxia/troubleshoot-qwen-asr
Claude Code and agent skill by iluozhiqiang/hermes-aimaxia
- community
Checking that the SKILL.md file is still in the repository.
Debugging Qwen "realtime" models that don't work for file transcription
Install
npx vskill@latest install iluozhiqiang/hermes-aimaxia/troubleshoot-qwen-asrSKILL.md
The same SKILL.md was published earlier as iluozhiqiang/hermes-aimaxia/troubleshoot-qwen-asr.
Troubleshooting Qwen ASR (千问语音识别)
Problem
Trying to use Qwen models for offline audio file transcription (STT), but all API calls fail with 404 or 400 errors.
Root Cause
The "realtime" models are for RTC (Real-Time Communication) only, not for offline file transcription. They require WebSocket connections for live audio streaming, not HTTP file uploads.
Also: DashScope ASR model names require a date suffix. A call to qwen3-asr-flash returns 404; the correct name is qwen3-asr-flash-2026-02-10.
Model Name Format
DashScope ASR models are listed with date suffixes. Always check /models endpoint first:
Available ASR models (as of 2026-04):
qwen3-asr-flash-2026-02-10— file-based ASR (OpenAI-compatible input_audio)qwen3-asr-flash-realtime— RTC onlyqwen3-asr-flash-realtime-2025-10-27— RTC onlyqwen3-asr-flash-realtime-2026-02-10— RTC only
⚠️ The bare name qwen3-asr-flash (without date) does NOT exist — API returns 404.
Models that DON'T work for file transcription
qwen3-asr-flash-realtime*(all realtime variants) — RTC/WebSocket onlyfun-asr-flash-8k-realtime-2026-01-28fun-asr-realtime-2026-02-28paraformer-realtime-v2
Config Fix (for .env and config.yaml)
Verified Endpoints
https://dashscope.aliyuncs.com/compatible-mode/v1— OpenAI-compatible, works for STT with input_audio formathttps://dashscope.aliyuncs.com/api/v1/services/aigc/audio/asr/transcription— native DashScope, may not work for file transcription
Working Alternatives for File Transcription
- Groq Whisper - Free tier available, excellent for file transcription
- OpenAI Whisper - Paid, high quality
- Local Whisper (faster-whisper) - Runs locally, no API needed
Configuration Example (for Groq)
Common Misconfiguration: stt.provider: alibaba
Setting stt.provider: alibaba in config.yaml will silently break STT. The _get_provider() function only handles: local, local_command, groq, openai, mistral. Unknown providers fall through to "No STT provider available" with no clear error.
The Qwen ASR logic is built into the `openai` provider. It auto-detects models with "qwen" + "asr" in the name and routes them to chat.completions + base64 input_audio.
Fix: stt.provider: openai (not alibaba).
DashScope URL Passthrough Does NOT Work
audio_urltype → rejected (not a supported content type for ASR)input_audio.datawith plain URL → "Failed to download multimodal content"- Only base64 data URI (
data:audio/ogg;base64,...) works
Debugging Steps
- Check model name - if it contains "realtime", it's for RTC only
- Check
stt.providerin config.yaml — must beopenai(notalibaba) - Verify
VOICE_TOOLS_OPENAI_KEYis set to DashScope API key - Verify
STT_OPENAI_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 - Verify
STT_OPENAI_MODELincludes date suffix (e.g.qwen3-asr-flash-2026-02-10) - Test with sample audio file first
- If all Qwen attempts fail with 404, the model doesn't exist or is RTC-only
- Direct test (bypasses gateway cache): call
_transcribe_openai(path, model)from Python - If direct test works but gateway still 404s → restart the gateway (long-running process doesn't reload code)
Key Lesson (2026-04-11)
Code changes to transcription_tools.py require a gateway restart. The gateway is a long-running process that loads Python modules at startup. Spent significant time debugging "still 404" when the fix was already in the code but not loaded.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/troubleshooting/troubleshoot-qwen-asr/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iluozhiqiang/hermes-aimaxia/troubleshoot-qwen-asr)