# Qwen ASR · Introduction

Qwen speech recognition (ASR) uses the qwen gateway; pick the concrete model via the request body model field. Transcribes audio to text.

Callers only pass audioUrl + duration (audio seconds); all 4 models return a taskId on submit and are polled by taskId — they differ only in result form:
• File transcription: fun-asr / fun-asr-mtl (multilingual) / qwen3-asr-flash-filetrans — on succeeded, resultUrl is the transcription file URL (JSON, valid 24h, with text and word-level timestamps).
• Fast recognition: qwen3-asr-flash — on succeeded, resultUrl is the recognized text directly (no timestamps).

## How to call
1. Submit: `POST /api/cqt/generator/qwen`, returns a taskId.
2. Query: `GET /api/cqt/info/qwen?id={taskId}`, poll until status = succeeded.

## Capability map
- **File Transcription** — Transcribe a recorded audio file into timestamped text. Submit returns a taskId; poll for the result. On succeeded, resultUrl is the transcription file URL (JSON with text and word-level timestamps, valid 24h).
- **Fast Recognition (Text)** — Same submit + poll-by-taskId flow, but on succeeded the resultUrl is the recognized text directly (not a file URL).

## Polling
All 4 models return a taskId on submit; poll by taskId until status = succeeded / failed (every 5-10s). qwen3-asr-flash is fast and usually reaches succeeded quickly.

## Common Errors
| Code | msg | Meaning | How to fix |
| --- | --- | --- | --- |
| 400 | audioUrl required / Unsupported model | audioUrl is empty, or model is not one of the 4 ASR models | Pass a valid audio URL; use model fun-asr / fun-asr-mtl / qwen3-asr-flash / qwen3-asr-flash-filetrans |
| 500 | failed / timeout | Recognition failed or timed out; credits auto-refunded, see data.errorMsg | Check audio accessibility/format and retry |
