About aliyun-qwen-asr-realtime
This skill uses Alibaba Cloud Model Studio's Qwen ASR realtime interface for streaming speech recognition, suited to captions and voice-agent workflows. It provides session request templates and returns transcript fragments with a completion marker.
Key features
- 01Realtime streaming speech recognition
- 02Returns transcript fragments
- 03Marks transcript finalization
- 04Configure language hints and audio format
- 05Generate session request templates
Use cases
- 01Produce realtime captions
- 02Provide duplex voice input for voice agents
- 03Stream speech-to-text in browser or terminal clients
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ cinience/ alicloud-skills --skill aliyun-qwen-asr-realtimeAfter installing, type/aliyun-qwen-asr-realtimein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
agents/openai.yamlreferences/sources.mdscripts/prepare_realtime_asr_request.pyDetails
From the project READMECategory: provider
Model Studio Qwen ASR Realtime
Validation
mkdir -p output/aliyun-qwen-asr-realtime
python -m py_compile skills/ai/audio/aliyun-qwen-asr-realtime/scripts/prepare_realtime_asr_request.py && echo "py_compile_ok" > output/aliyun-qwen-asr-realtime/validate.txt
Pass criteria: command exits 0 and output/aliyun-qwen-asr-realtime/validate.txt is generated.
Output And Evidence
- Save session payloads and response samples under
output/aliyun-qwen-asr-realtime/.
Critical model names
Use one of these exact model strings:
qwen3-asr-flash-realtimeqwen3-asr-flash-realtime-2026-02-10
Use cases
- Realtime subtitles and captions
- Voice-agent duplex input
- Streaming speech-to-text in browser or terminal clients
Prerequisites
- Set
DASHSCOPE_API_KEYin your environment, or adddashscope_api_keyto~/.alibabacloud/credentials. - Realtime sessions generally require WebSocket or streaming session handling in the client.
Normalized interface (asr.realtime)
Request
model(string, optional): defaultqwen3-asr-flash-realtimelanguage_hints(array, optional)format(string, optional): e.g.pcm,wavsample_rate(int, optional): e.g.16000chunk_ms(int, optional): frame size in milliseconds
Response
text(string): recognized transcript fragmentis_final(bool): finalization markerusage(object, optional)
Quick start
Generate a request template:
python skills/ai/audio/aliyun-qwen-asr-realtime/scripts/prepare_realtime_asr_request.py \
--output output/aliyun-qwen-asr-realtime/request.json
Operational guidance
- Prefer 16kHz mono PCM unless your client stack requires another format.
- Keep chunks small enough for responsive partial results.
- If you only have recorded files, use
skills/ai/audio/aliyun-qwen-asr/instead.
References
references/sources.md
Comments
Markdown supported