iluozhiqiang/hermes-aimaxia/troubleshoot-qwen-asr

Claude Code and agent skill by iluozhiqiang/hermes-aimaxia

Trust tier 3
  • community
Source check pending

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-asr

SKILL.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:

GET https://dashscope.aliyuncs.com/compatible-mode/v1/models

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 only
  • qwen3-asr-flash-realtime-2025-10-27 — RTC only
  • qwen3-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 only
  • fun-asr-flash-8k-realtime-2026-01-28
  • fun-asr-realtime-2026-02-28
  • paraformer-realtime-v2

Config Fix (for .env and config.yaml)

bash
# Wrong — 404 error
STT_OPENAI_MODEL=qwen3-asr-flash
# Correct — with date suffix
STT_OPENAI_MODEL=qwen3-asr-flash-2026-02-10
yaml
# config.yaml
stt:
provider: openai
openai:
model: qwen3-asr-flash-2026-02-10
base_url: https://dashscope.aliyuncs.com/compatible-mode/v1

Verified Endpoints

  • https://dashscope.aliyuncs.com/compatible-mode/v1 — OpenAI-compatible, works for STT with input_audio format
  • https://dashscope.aliyuncs.com/api/v1/services/aigc/audio/asr/transcription — native DashScope, may not work for file transcription

Working Alternatives for File Transcription

  1. Groq Whisper - Free tier available, excellent for file transcription
  2. OpenAI Whisper - Paid, high quality
  3. Local Whisper (faster-whisper) - Runs locally, no API needed

Configuration Example (for Groq)

bash
# In .env
GROQ_API_KEY=your_groq_key
# In config.yaml
stt:
provider: groq
model: whisper-large-v3-turbo

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_url type → rejected (not a supported content type for ASR)
  • input_audio.data with plain URL → "Failed to download multimodal content"
  • Only base64 data URI (data:audio/ogg;base64,...) works

Debugging Steps

  1. Check model name - if it contains "realtime", it's for RTC only
  2. Check stt.provider in config.yaml — must be openai (not alibaba)
  3. Verify VOICE_TOOLS_OPENAI_KEY is set to DashScope API key
  4. Verify STT_OPENAI_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
  5. Verify STT_OPENAI_MODEL includes date suffix (e.g. qwen3-asr-flash-2026-02-10)
  6. Test with sample audio file first
  7. If all Qwen attempts fail with 404, the model doesn't exist or is RTC-only
  8. Direct test (bypasses gateway cache): call _transcribe_openai(path, model) from Python
  9. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/iluozhiqiang/hermes-aimaxia/troubleshoot-qwen-asr/badge)](https://verified-skill.com/skills/iluozhiqiang/hermes-aimaxia/troubleshoot-qwen-asr)

Something wrong with this skill or its page? Tell us.