Skip to main content

Non-real-time speech recognition

Learn about non-real-time speech recognition features, audio file calls, and ways to improve recognition results.

Features

Non-real-time speech recognition converts recorded audio and video files into text for meeting transcription, call analysis, and subtitles. Short audio can return results in one request; longer recordings can be processed as asynchronous tasks.
  • Languages and dialects: Automatically detect languages and recognize multiple languages and Chinese dialects. For coverage, see Speech recognition overview.
  • Accuracy: Use hotwords for names, brands, and specialist terms, or provide context from previous conversation turns.
  • Text processing: Polish spoken text, preserve dialect expressions, and filter sensitive words.
  • Speaker diarization: Label speakers in transcripts to organize meetings and interviews.
  • Structured results: Obtain sentences, words, and timestamps for subtitles, keyword highlighting, and audio navigation.
  • Audio input: Use supported audio and video formats, sample rates, and channels.
  • Long recordings: Asynchronously transcribe a single audio or video file of up to 12 hours and 2 GB.
Feature support varies by model. Check the scope of each feature. To send audio continuously and receive results while speaking, see Real-time speech recognition.
Use caseRecommended modelCall method
Audio up to 5 minutes with a direct responseqwen-audio-3.1-asr-flashSynchronous call with optional SSE streaming output.
Long recordings or asynchronous audio and video processingqwen-audio-3.1-asr-flash-filetransSubmit an asynchronous task and download the transcript after completion.

Get started

Get an API key in the console and set the DASHSCOPE_API_KEY environment variable. The examples use a publicly accessible, English, 16 kHz, mono WAV audio sample.
  • Qwen-Audio-ASR
  • Qwen-Audio-ASR-Filetrans
This example uses qwen-audio-3.1-asr-flash to submit a complete audio file and receive the final transcript in the same request.
cURL
curl \
  "https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-DashScope-SSE: disable" \
  -d '{
  "model": "qwen-audio-3.1-asr-flash",
  "input": {
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "input_audio",
            "input_audio": {
              "data": "https://g-adoc.alcasset.com/media/maas_docs/sfm-cn/en/audios/6a4b3c2d1e0f9092.wav"
            }
          }
        ]
      }
    ]
  },
  "parameters": {
    "format": "wav",
    "sample_rate": "16000"
  }
}'

Handle recognition results

  • Synchronous recognition: In Qwen-Audio-ASR, output.text contains the complete accumulated text, and output.sentence contains details for the current sentence. Read output.text to save the full transcript.
  • Asynchronous transcription: After the task succeeds, download the result file. Read transcripts[].text for each channel's full transcript, or transcripts[].sentences and its words for subtitles and audio navigation.
  • Timestamps: Sentence and word begin_time and end_time values are positions in the audio, in milliseconds. The task query's end_time is the date and time when the task completed.
    Timestamps are always enabled and cannot be disabled for Qwen-Audio-ASR, Qwen-Audio-ASR-Filetrans, Fun-ASR, Fun-ASR-Flash, and Paraformer. Asynchronous Qwen3-ASR-Filetrans calls also always return timestamps. For these calls, enable_words selects sentence- or word-level timestamps rather than disabling timestamps.

Improve recognition results

Adjust text readability, recognition of specific terms, speaker labels, and how results are returned to meet your needs.

Streaming output

Streaming output returns recognition results in SSE events after a complete audio file is submitted, so that you can show transcription progress before recognition finishes. qwen-audio-3.1-asr-flash, Fun-ASR-Flash, and Qwen3-ASR-Flash support streaming output. Asynchronous transcription models, including Qwen-Audio-ASR-Filetrans, Fun-ASR, Qwen3-ASR-Filetrans, and Paraformer, provide result files after completion and do not support SSE recognition output.
When receiving SSE with cURL, add --no-buffer so that output buffering does not delay displayed results.
ModelEnable withResult handling and notes
qwen-audio-3.1-asr-flashX-DashScope-SSE: enableoutput.text is accumulated text. Replace the displayed text with each update. Short audio may produce only one result. With diarization disabled, word timestamps become fixed when output.sentence.words[i].fixed is true. With diarization enabled, read current and historical sentences from output.sentences.
Qwen3-ASR-FlashOpenAI-compatible API: stream: true. Native HTTP API: X-DashScope-SSE: enable.In OpenAI-compatible responses, choices[].delta.content contains incremental text. Append it in the order received.
Fun-ASR-FlashX-DashScope-SSE: enableFun-ASR-Flash returns results in multiple events for audio that is at least 1 minute long.

Hotwords and context enhancement

Use hotwords to specify the spelling of names, product names, or technical terms that may be confused with similar-sounding words. Use context enhancement to provide previous conversation turns, business background, or related vocabulary. For model support, configuration, and examples, see Improve recognition accuracy.

Text polishing and dialect expressions

qwen-audio-3.1-asr-flash supports native text polishing to improve readability by organizing filler words, repetitions, and self-corrections. qwen-audio-3.1-asr-flash and qwen-audio-3.1-asr-flash-filetrans transcribe Chinese dialects into Mandarin text by default. Set keep_dialect: true to preserve expressions specific to the dialect.

Speaker diarization

Enable speaker diarization to distinguish speakers in a meeting or interview. The speaker_id in recognition results identifies different speakers.
ModelEnable withResult location
qwen-audio-3.1-asr-flashspeaker_diarization_enabled: trueoutput.sentences[].speaker_id
Qwen-Audio-ASR-Filetrans, Fun-ASR、Paraformerdiarization_enabled: truetranscripts[].sentences[].speaker_id
Speaker diarization requires mono audio. For asynchronous transcription with diarization enabled, use audio no longer than 2 hours to reduce the risk of recognition failures or timeouts. With diarization enabled in qwen-audio-3.1-asr-flash, keep_dialect and language_hints have no effect.

Sensitive-word filtering

Use sensitive-word filtering to mask or remove specified words in transcripts. Qwen-Audio-ASR-Filetrans, Fun-ASR, and Paraformer support special_word_filter to configure replacement lists, removal lists, and the built-in word list.

Use in production

Batch transcription requires audio storage, control of submission and query rates, completion notifications, and result persistence. For input preparation, callbacks, throttling, and retries, see Speech recognition best practices.

Supported models and regions

  • Singapore
  • US (Virginia)
  • China (Beijing)
  • Qwen-Audio-ASR: qwen-audio-3.1-asr-flash, qwen-audio-3.0-asr-flash
  • Qwen-Audio-ASR-Filetrans: qwen-audio-3.1-asr-flash-filetrans, qwen-audio-3.0-asr-flash-filetrans
  • Qwen3-ASR-Flash: qwen3-asr-flash (stable version)
  • Qwen3-ASR-Filetrans: qwen3-asr-flash-filetrans (stable version)
  • Fun-ASR-Flash: fun-asr-flash-2026-06-15
  • Fun-ASR: fun-asr (stable version)

Usage limits

Choose an input method, audio format, and sample rate supported by the model. Parameters such as format and sample_rate must match the actual file.
With speaker diarization enabled in Qwen-Audio-ASR-Filetrans, Fun-ASR, or Paraformer, use audio no longer than 2 hours to reduce the risk of recognition failures or timeouts.
ModelInput methodAudio formatsSample rateFile size and duration
qwen-audio-3.1-asr-flash, qwen-audio-3.0-asr-flashURL or Base64 Data URI; one per requestaac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, wmvAny≤2 GB; ≤5 minutes
qwen-audio-3.1-asr-flash-filetrans, qwen-audio-3.0-asr-flash-filetransPublicly accessible file URL; one per requestaac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, wmvAny≤2 GB; ≤12 hours
qwen3-asr-flashURL or Base64 Data URI; one per requestaac, amr, avi, aiff, flac, flv, mkv, mp3, mpeg, ogg, opus, wav, webm, wma, wmv16 kHz for PCM; any rate for other formats, resampled to 16 kHz by the service≤10 MB; ≤5 minutes
qwen3-asr-flash-filetransPublicly accessible file URL; one per requestaac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, wmv16 kHz for PCM; any rate for other formats, resampled to 16 kHz by the service≤2 GB; ≤12 hours
fun-asr-flash-2026-06-15URL or Base64 Data URI; one per requestaac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, wmvAny≤2 GB; ≤5 minutes
fun-asrPublicly accessible file URL; one per requestaac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, wmvAny≤2 GB; ≤12 hours
paraformer-v2Publicly accessible file URL; one per requestaac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, wmvAny≤2 GB; ≤12 hours
paraformer-8k-v2Publicly accessible file URL; one per requestaac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, wmv8 kHz≤2 GB; ≤12 hours
Use mono audio for speaker diarization. The Paraformer model paraformer-8k-v2 supports only 8 kHz. Local files for Qwen3-ASR-Flash must be encoded or uploaded by the client; a local path cannot be used directly as an HTTP audio URL.

API reference