Qwen-Audio-3.1-ASR
Copy success!
Overview
Qwen-Audio-3.1-ASR-Flash-Streaming is an end-to-end real-time speech recognition model designed for scenarios such as real-time conferencing, live subtitles, and intelligent interaction. It features low latency and high accuracy in streaming speech transcription. The model supports multilingual and multi-regional Chinese dialect recognition, seamless switching between Chinese and English, hot word and context enhancement, punctuation prediction, and text normalization. It also exhibits strong noise robustness and can adapt to complex acoustic environments. Furthermore, this version supports controllable ASR/AST output for multiple dialects.
Input
Audio
Output
Text
Features
Prefix Completion
Enable Partial Mode when calling the Qwen API to make the model continue strictly from your provided prefix text.View docsFunction Calling
Use function calling to connect large language models with external tools and systems.View docsCache
Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docsStructured Outputs
Structured Outputs help ensure the model returns a JSON string in the expected format.View docsPricing
- Input$0.93Per 1M tokens
- Output$0.7Per 1M tokens
Rate Limits
- RPMRequests Per Minute1K
API Reference
Call APICopy success!
123456789101112131415161718192021222324252627
from http import HTTPStatus
import dashscope
from dashscope.audio.asr import Recognition
import os
dashscope.api_key = os.environ.get('DASHSCOPE_API_KEY')
dashscope.base_websocket_api_url='wss://maas.qwencloudapi.com/api-ws/v1/inference'
recognition = Recognition(model='qwen-audio-3.1-asr-flash-streaming',
format='wav',
sample_rate=16000,
callback=None)
result = recognition.call('{YOUR_AUDIO_FILE}')
if result.status_code == HTTPStatus.OK:
print('Recognition result: ')
print(result.get_sentence())
else:
print('Error: ', result.message)
print(
'[Metric] requestId: {}, first package delay ms: {}, last package delay ms: {}'
.format(
recognition.get_last_request_id(),
recognition.get_first_package_delay(),
recognition.get_last_package_delay(),
))