API reference

Updated at:

FlashRecognizer accepts audio data or an audio file URL in an HTTPS POST request and returns recognition results synchronously. It is suitable for time-sensitive scenarios such as audio and video subtitling and near-real-time quality inspection. Typically, it can recognize a 30-minute audio file within 10 seconds.

Prerequisites

Obtain a project Appkey and an NLS token. See Create a project and Obtain a token.

Billing and concurrency limits

FlashRecognizer is available only in the commercial edition and does not offer a trial. Activate the commercial edition before use. For billing and activation, see Billing overview and Billing methods; for concurrency limits, see Concurrency.

Features and limits

  • Supported formats: MP4, AAC, MP3, OPUS, and WAV. The actual audio encoding must match format; otherwise, recognition may fail or return empty results.

  • The file must not exceed 100 MB or 2 hours. Use the standard recording file recognition service for audio longer than 2 hours.

  • Supported model sample rates: 8000 (telephone audio) and 16000 (non-telephone audio). The service automatically resamples audio based on sample_rate.

  • Supported options include converting Chinese numerals to Arabic numerals, word-level results, timestamp alignment, and recognizing only the first channel.

  • Hotwords and custom language models can be configured for a project in the console.

Configure the language or dialect model for the project in the console; it cannot be specified in a request parameter. See Manage projects. For the complete support matrix, see Languages and dialects.

Code examples

The examples read credentials from the NLS_APP_KEY and NLS_TOKEN environment variables. Set them to the project Appkey and a valid NLS token. Do not log credentials or complete request URLs that contain a token. The examples use 16 kHz WAV audio. You can use the English sample audio. For other audio, adjust format, sample_rate, and the project model.

cURL

Uploads a local audio file. audio_file defaults to nls-sample-en-16k.wav.

: "${NLS_APP_KEY:?Set NLS_APP_KEY}"
: "${NLS_TOKEN:?Set NLS_TOKEN}"
audio_file="${1:-nls-sample-en-16k.wav}"
curl --silent --show-error --max-time 120 --request POST \
  "https://nls-gateway-cn-shanghai.aliyuncs.com/stream/v1/FlashRecognizer?appkey=${NLS_APP_KEY}&token=${NLS_TOKEN}&format=wav&sample_rate=16000" \
  --header 'Content-Type: application/octet-stream' \
  --data-binary "@${audio_file}"

Java

Requires JDK 11 or later, with no additional dependencies. The first program argument is a local file path or an audio URL. This argument is required.

import java.net.URI;
import java.net.URLEncoder;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.time.Duration;

public class FlashRecognizer {
    private static String requiredEnv(String name) {
        String value = System.getenv(name);
        if (value == null || value.isBlank()) {
            throw new IllegalArgumentException("Missing environment variable: " + name);
        }
        return value;
    }

    public static void main(String[] args) throws Exception {
        if (args.length != 1) {
            throw new IllegalArgumentException("Provide a local audio path or an HTTPS audio URL");
        }
        String query = "appkey=" + URLEncoder.encode(requiredEnv("NLS_APP_KEY"), StandardCharsets.UTF_8)
                + "&token=" + URLEncoder.encode(requiredEnv("NLS_TOKEN"), StandardCharsets.UTF_8)
                + "&format=wav&sample_rate=16000";
        boolean remote = args[0].startsWith("https://") || args[0].startsWith("http://");
        if (remote) {
            query += "&audio_address=" + URLEncoder.encode(args[0], StandardCharsets.UTF_8);
        }
        HttpRequest.BodyPublisher body = remote
                ? HttpRequest.BodyPublishers.noBody()
                : HttpRequest.BodyPublishers.ofFile(Path.of(args[0]));
        HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create("https://nls-gateway-cn-shanghai.aliyuncs.com/stream/v1/FlashRecognizer?" + query))
                .timeout(Duration.ofSeconds(120))
                .header("Content-Type", remote ? "application/text" : "application/octet-stream")
                .POST(body).build();
        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(10)).build();
        HttpResponse<String> response = client.send(request,
                HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8));
        System.out.println("HTTP status: " + response.statusCode());
        System.out.println(response.body());
        // Check the JSON status field; recognized text is in flash_result.sentences.
    }
}

C++

Requires C++11 or later and libcurl. The first program argument is a local audio file path. This argument is required.

#include <curl/curl.h>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>

size_t receive(char* data, size_t size, size_t count, void* output) {
    const size_t bytes = size * count;
    static_cast<std::string*>(output)->append(data, bytes);
    return bytes;
}

int main(int argc, char** argv) {
    const char* appkey = std::getenv("NLS_APP_KEY");
    const char* token = std::getenv("NLS_TOKEN");
    if (!appkey || !token || argc != 2) {
        std::cerr << "Set NLS_APP_KEY and NLS_TOKEN; provide a local WAV path\n";
        return 1;
    }
    std::ifstream file(argv[1], std::ios::binary);
    if (!file) return 1;
    std::ostringstream buffer;
    buffer << file.rdbuf();
    const std::string audio = buffer.str();
    if (curl_global_init(CURL_GLOBAL_DEFAULT) != CURLE_OK) return 1;
    CURL* client = curl_easy_init();
    if (!client) { curl_global_cleanup(); return 1; }
    char* encodedKey = curl_easy_escape(client, appkey, 0);
    char* encodedToken = curl_easy_escape(client, token, 0);
    if (!encodedKey || !encodedToken) {
        curl_free(encodedKey); curl_free(encodedToken);
        curl_easy_cleanup(client); curl_global_cleanup(); return 1;
    }
    std::string url = "https://nls-gateway-cn-shanghai.aliyuncs.com/stream/v1/FlashRecognizer?appkey=";
    url += std::string(encodedKey) + "&token=" + encodedToken + "&format=wav&sample_rate=16000";
    curl_free(encodedKey); curl_free(encodedToken);
    curl_slist* headers = curl_slist_append(nullptr, "Content-Type: application/octet-stream");
    std::string response;
    curl_easy_setopt(client, CURLOPT_URL, url.c_str());
    curl_easy_setopt(client, CURLOPT_POST, 1L);
    curl_easy_setopt(client, CURLOPT_HTTPHEADER, headers);
    curl_easy_setopt(client, CURLOPT_POSTFIELDS, audio.data());
    curl_easy_setopt(client, CURLOPT_POSTFIELDSIZE_LARGE, static_cast<curl_off_t>(audio.size()));
    curl_easy_setopt(client, CURLOPT_CONNECTTIMEOUT, 10L);
    curl_easy_setopt(client, CURLOPT_TIMEOUT, 120L);
    curl_easy_setopt(client, CURLOPT_WRITEFUNCTION, receive);
    curl_easy_setopt(client, CURLOPT_WRITEDATA, &response);
    CURLcode result = curl_easy_perform(client);
    long status = 0;
    curl_easy_getinfo(client, CURLINFO_RESPONSE_CODE, &status);
    curl_slist_free_all(headers);
    curl_easy_cleanup(client);
    curl_global_cleanup();
    if (result != CURLE_OK) {
        std::cerr << curl_easy_strerror(result) << '\n'; return 1;
    }
    std::cout << "HTTP status: " << status << '\n' << response << '\n';
    // Check the JSON status field; recognized text is in flash_result.sentences.
    return status >= 200 && status < 300 ? 0 : 1;
}

Precompiled libraries and sample project

The C++ example uses the third-party cURL function library to handle HTTPS requests and responses. Download the cURL library and example files.

The directory structure is as follows:

File/Folder

Description

CMakeLists.txt

The CMakeLists.txt file for the example project.

demo

The restfulFlashRecognizerDemo.cpp file is the RESTful API example for the Flash Recognizer.

include

The curl folder is the header file directory for the cURL library.

lib

Contains the cURL dynamic library, version curl-7.60. Select a version based on your platform:

  • Linux: Glibc 2.5, GCC 4/GCC 5.

  • Windows: VS2013, VS2015.

readme.txt

Description.

release.log

Update history.

version

Version number.

build.sh

The example compilation script.

Compile and run the example:

Assume that the example files are unzipped to the path/to directory. Run the following commands in the Linux terminal to compile and run the program.

  • With CMake support:

    1. Confirm that CMake 2.4 or later is installed on your local system.

    2. Change the directory: cd path/to/sdk/lib.

    3. Unzip the file: tar -zxvpf linux.tar.gz.

    4. Change the directory: cd path/to/sdk.

    5. Run the compilation script: ./build.sh.

    6. Change the directory: cd path/to/sdk/demo.

    7. Run the example program: ./restfulFlashRecognizerDemo <your-token> <your-appkey>.

  • Without CMake support:

    1. Change the directory: cd path/to/sdk/lib.

    2. Unzip the file: tar -zxvpf linux.tar.gz.

    3. Change the directory: cd path/to/sdk/demo.

    4. Use the g++ command to compile the example program: g++ -o restfulFlashRecognizerDemo restfulFlashRecognizerDemo.cpp -I path/to/sdk/include -L path/to/sdk/lib/linux -lssl -lcrypto -lcurl -D_GLIBCXX_USE_CXX11_ABI=0.

    5. Specify the library path: export LD_LIBRARY_PATH=path/to/sdk/lib/linux/.

    6. Run the example program: ./restfulFlashRecognizerDemo <your-token> <your-appkey>.

Python

Uses the Python 3 standard library, with no additional dependencies. The first program argument is a local file path or an audio URL. The default is nls-sample-en-16k.wav.

import json
import os
import sys
import urllib.error
import urllib.parse
import urllib.request

audio_file = sys.argv[1] if len(sys.argv) > 1 else "nls-sample-en-16k.wav"
params = {
    "appkey": os.environ["NLS_APP_KEY"],
    "token": os.environ["NLS_TOKEN"],
    "format": "wav",
    "sample_rate": 16000,
}
if audio_file.startswith(("https://", "http://")):
    params["audio_address"] = audio_file
    audio = b""
    content_type = "application/text"
else:
    with open(audio_file, "rb") as source:
        audio = source.read()
    content_type = "application/octet-stream"
url = "https://nls-gateway-cn-shanghai.aliyuncs.com/stream/v1/FlashRecognizer?"
request = urllib.request.Request(
    url + urllib.parse.urlencode(params), data=audio,
    headers={"Content-Type": content_type}, method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    with error:
        result = json.load(error)
print("task_id:", result.get("task_id"))
if result.get("status") != 20000000:
    raise RuntimeError("Recognition failed: " + str(result.get("status")))
for sentence in result["flash_result"]["sentences"]:
    print(sentence["channel_id"], sentence["text"])

PHP

Requires PHP 7.3 or later with the cURL extension. The first program argument is a local file path or an audio URL. The default is nls-sample-en-16k.wav.

<?php
$appkey = getenv('NLS_APP_KEY');
$token = getenv('NLS_TOKEN');
if (!$appkey || !$token) {
    throw new RuntimeException('Set NLS_APP_KEY and NLS_TOKEN');
}
$source = $argv[1] ?? 'nls-sample-en-16k.wav';
$params = ['appkey' => $appkey, 'token' => $token, 'format' => 'wav', 'sample_rate' => 16000];
$remote = preg_match('/^https?:\/\//', $source) === 1;
if ($remote) {
    $params['audio_address'] = $source;
    $body = '';
} else {
    $body = file_get_contents($source);
    if ($body === false) {
        throw new RuntimeException('Cannot read audio file');
    }
}
$url = 'https://nls-gateway-cn-shanghai.aliyuncs.com/stream/v1/FlashRecognizer?'
    . http_build_query($params, '', '&', PHP_QUERY_RFC3986);
$curl = curl_init($url);
curl_setopt_array($curl, [
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CONNECTTIMEOUT => 10,
    CURLOPT_TIMEOUT => 120,
    CURLOPT_HTTPHEADER => ['Content-Type: ' . ($remote ? 'application/text' : 'application/octet-stream')],
]);
$response = curl_exec($curl);
if ($response === false) {
    $error = curl_error($curl);
    if (PHP_VERSION_ID < 80000) { curl_close($curl); }
    throw new RuntimeException($error);
}
if (PHP_VERSION_ID < 80000) { curl_close($curl); }
$result = json_decode($response, true, 512, JSON_THROW_ON_ERROR);
echo 'task_id: ' . ($result['task_id'] ?? '') . PHP_EOL;
if (($result['status'] ?? null) !== 20000000) {
    throw new RuntimeException('Recognition failed: ' . ($result['status'] ?? 'unknown'));
}
foreach ($result['flash_result']['sentences'] as $sentence) {
    echo $sentence['channel_id'] . ': ' . $sentence['text'] . PHP_EOL;
}

The cURL, Java, and C++ examples output the complete JSON response. Check that status is 20000000, then read text from each entry in flash_result.sentences. The Python and PHP examples include this handling.

Interaction flow

The client sends a POST request with binary audio data or an audio file URL in audio_address. The service returns JSON recognition results synchronously. The task_id in the response body identifies the task and can be used for troubleshooting.

image

Endpoints

Region

Public URL

VPC URL

China (Shanghai)

https://nls-gateway-cn-shanghai.aliyuncs.com/stream/v1/FlashRecognizer

http://nls-gateway-cn-shanghai-internal.aliyuncs.com/stream/v1/FlashRecognizer

China (Beijing)

https://nls-gateway-cn-beijing.aliyuncs.com/stream/v1/FlashRecognizer

http://nls-gateway-cn-beijing-internal.aliyuncs.com/stream/v1/FlashRecognizer

China (Shenzhen)

https://nls-gateway-cn-shenzhen.aliyuncs.com/stream/v1/FlashRecognizer

http://nls-gateway-cn-shenzhen-internal.aliyuncs.com/stream/v1/FlashRecognizer

Use a public endpoint from a server with Internet access. To use a VPC endpoint, the ECS instance must be in a VPC in the corresponding region. The classic network does not support this access method. VPC access does not incur ECS Internet traffic fees.

The examples use the Shanghai public endpoint. For VPC access, use the corresponding HTTP URL. Host is the domain name in the selected URL and is usually set automatically by the HTTP client.

Request

Use POST with the path /stream/v1/FlashRecognizer. All parameters are in the URL query string; URL-encode their values. Both input methods use the parameters below.

Binary audio

Put the raw binary audio data in the request body and set Content-Type to application/octet-stream. Content-Length is the number of bytes in the audio data and can be set by the HTTP client based on the request body.

Audio file URL

URL-encode the audio file URL and set it in the audio_address query parameter. Set Content-Type to application/text and leave the request body empty. The URL must be accessible to the service. If the URL expires, ensure that it remains valid during recognition.

Request parameters

Parameter

Type

Required

Description

appkey

String

Yes

The project Appkey.

token

String

Yes

The NLS token for authentication.

format

String

Yes

The audio encoding: MP4, AAC, MP3, OPUS, or WAV.

audio_address

String

Conditional

Required for the audio file URL method. The URL of the audio file. Omit it when uploading binary audio.

sample_rate

Integer

No

The model sample rate: 8000 (telephone) or 16000 (non-telephone). Default: 16000. Audio is automatically resampled to this rate.

vocabulary_id

String

No

The hotword vocabulary ID. No vocabulary is added by default.

customization_id

String

No

The custom language model ID. No custom model is added by default.

enable_inverse_text_normalization

Boolean

No

Whether to convert Chinese numerals to Arabic numerals. Default: false.

enable_word_level_result

Boolean

No

Whether to return word-level results. Default: false.

enable_timestamp_alignment

Boolean

No

Whether to enable timestamp alignment. Default: false.

first_channel_only

Boolean

No

Whether to recognize only the first channel. If omitted, the 8 kHz model processes both channels and the 16 kHz model processes only the first. false: both models process both channels. true: both models process only the first channel. Charges accumulate across processed channels; processing two channels incurs double the charge.

speech_noise_threshold

Float

No

The noise threshold, from -1 to 1. Values closer to -1 make noise more likely to be classified as speech; values closer to 1 make speech more likely to be classified as noise. This is an advanced parameter. Carefully check recognition quality after changing it.

special_word_filter

String

No

Sensitive word filtering configuration as a JSON string. Disabled by default. Supports removing specified words or replacing them with asterisks. See below.

sentence_max_length

Integer

No

The maximum number of characters per sentence, from 4 to 50. Disabled by default. If enabled without a character count, long-sentence segmentation is used. This controls the length of a subtitle line.

Custom word filtering

Serialize the following JSON as a string, URL-encode it, and set it as the special_word_filter query parameter. filter_with_empty removes matching words; filter_with_signed replaces matching words with asterisks. Either option can be configured independently.

{
  "filter_with_empty": {
    "word_list": [
      "monday"
    ]
  },
  "filter_with_signed": {
    "word_list": [
      "weather"
    ]
  }
}

This example removes “monday” and masks “weather” in the recognition result. When filtering is enabled without custom words, the default sensitive word list (Chinese) is used.

Response

On success, the response body contains status: 20000000 and message: SUCCESS. Read recognition text from flash_result.sentences[].text, not result. The following example corresponds to the English sample audio above.

{
  "task_id": "f7434ce24f12413cb4824533d15c****",
  "result": "",
  "status": 20000000,
  "message": "SUCCESS",
  "flash_result": {
    "duration": 3049,
    "completed": true,
    "sentences": [
      {
        "text": "today is monday, ",
        "begin_time": 0,
        "end_time": 1520,
        "channel_id": 0
      },
      {
        "text": "the weather is nice. ",
        "begin_time": 1520,
        "end_time": 3040,
        "channel_id": 0
      }
    ],
    "latency": 439
  }
}

Field

Type

Description

task_id

String

The 32-character task ID, used for troubleshooting.

status

Integer

The service status code. 20000000 indicates success.

message

String

The service status description.

result

String

This API does not return recognition text in this field.

flash_result

Object

The recognition result. See the following table.

flash_result fields

Field

Type

Description

duration

Integer

The processed audio duration in milliseconds, accumulated across processed channels. It may differ from the source file playback duration.

latency

Integer

The server processing time in milliseconds.

completed

Boolean

Whether the task is complete.

sentences

Array

The list of sentence results.

sentences.text

String

The recognized sentence text.

sentences.begin_time

Integer

The sentence start time in milliseconds.

sentences.end_time

Integer

The sentence end time in milliseconds.

sentences.channel_id

Integer

The channel index, starting at 0.

sentences.words

Array

The word list returned when word-level results are enabled.

sentences.words.text

String

The word text.

sentences.words.punc

String

The punctuation after the word; an empty string if there is none.

sentences.words.begin_time

String

The word start time in milliseconds, returned as a string.

sentences.words.end_time

String

The word end time in milliseconds, returned as a string.

On failure, use status and message in the response body to identify the cause. For example, an invalid token can return 40000001. For status codes and solutions, see Error codes.

Languages and dialects

The tables below list model capabilities. ITN stands for inverse text normalization. Disfluency removal removes disfluent content from speech.

Languages

Language

Model name

Sample rate

Punctuation

ITN

Disfluency detection

Semantic segmentation

Audio and text alignment

English

General - English, Education Livestream - English, Education Content Analysis - English

16k

Supported

Supported

Support

Not supported

Support

Telephony Customer Service (General)

8k

Support

Support

Support

Not supported

Not supported

Southeast Asian Multilingual

16k

Support

Not supported

Not supported

Not supported

Not supported

Japanese

General - Japanese

16k

Supported

Support

Not supported

Not supported

Support

Spanish

General - Spanish

16k

Support

Support

Not supported

Not supported

Not supported

General - Spanish Customer Service

8k

Support

Support

Not supported

Not supported

Not supported

Arabic

General - Arabic

16k

Supported

Not supported

Not supported

Not supported

Not supported

Kazakh

General - Kazakh

16k

Support

Not supported

Not supported

Not supported

Not supported

Korean

General - Korean

16k

Support

Support

Not supported

Not supported

Not supported

Thai

General - Thai

16k

Not supported

Not supported

Not supported

Not supported

Not supported

General - Thai Customer Service

8k

Not supported

Not supported

Not supported

Not supported

Not supported

Southeast Asian Multilingual

16k

Support

Not supported

Not supported

Not supported

Not supported

Indonesian

General - Indonesian

16k

Support

Support

Not supported

Not supported

Not supported

Telephony Customer Service (General)

8k

Support

Support

Not supported

Not supported

Not supported

Southeast Asian Multilingual

16k

Support

Not supported

Not supported

Not supported

Not supported

Russian

General - Russian

16k

Support

Supported

Not supported

Not supported

Not supported

Vietnamese

General - Vietnamese

16k

Support

Support

Not supported

Not supported

Not supported

General - Vietnamese Customer Service

8k

Support

Support

Not supported

Not supported

Not supported

Southeast Asian Multilingual

16k

Support

Not supported

Not supported

Not supported

Not supported

French

General - French

16k

Support

Support

Not supported

Not supported

Not supported

German

General - German

16k

Support

Support

Not supported

Not supported

Not supported

Italian

General - Italian

16k

Supported

Not supported

Not supported

Not supported

Not supported

Hindi

General - Hindi

16k

Support

Not supported

Not supported

Not supported

Not supported

Malay

General - Malay

16k

Support

Not supported

Not supported

Not supported

Not supported

General - Malay Customer Service

8k

Supported

Not supported

Not supported

Not supported

Not supported

Southeast Asian Multilingual

16k

Support

Not supported

Not supported

Not supported

Not supported

Filipino

General - Filipino

16k

Support

Support

Not supported

Not supported

Not supported

Telephony Customer Service (General)

8k

Support

Support

Not supported

Not supported

Not supported

Southeast Asian Multilingual

16k

Support

Not supported

Not supported

Not supported

Not supported

Tamil

General - Tamil

16k

Supported

Not supported

Not supported

Not supported

Not supported

Portuguese

General - Portuguese

16k

Support

Supported

Not supported

Not supported

Not supported

Turkish

General - Turkish

16k

Support

Not supported

Not supported

Not supported

Not supported

Polish

General - Polish

16k

Support

Not supported

Not supported

Not supported

Not supported

Ukrainian

General - Ukrainian

16k

Support

Not supported

Not supported

Not supported

Not supported

Romanian

General - Romanian

16k

Supported

Not supported

Not supported

Not supported

Not supported

Dutch

General - Dutch

16k

Supported

Not supported

Not supported

Not supported

Not supported

Greek

General - Greek

16k

Supported

Not supported

Not supported

Not supported

Not supported

Hungarian

General - Hungarian

16k

Supported

Not supported

Not supported

Not supported

Not supported

Javanese

General - Javanese

16k

Supported

Not supported

Not supported

Not supported

Not supported

Bengali

General - Bengali

16k

Supported

Not supported

Not supported

Not supported

Not supported

Burmese

General - Burmese

16k

Support

Not supported

Not supported

Not supported

Not supported

Lao

General - Lao

16k

Support

Not supported

Not supported

Not supported

Not supported

Swahili

General - Swahili

16k

Support

Not supported

Not supported

Not supported

Not supported

Azerbaijani

General - Azerbaijani

16k

Supported

Not supported

Not supported

Not supported

Not supported

Persian

General - Persian

16k

Support

Not supported

Not supported

Not supported

Not supported

Sinhala

General - Sinhala

16k

Support

Not supported

Not supported

Not supported

Not supported

Catalan

General - Catalan

16k

Supported

Not supported

Not supported

Not supported

Not supported

Khmer

General - Khmer

16k

Supported

Not supported

Not supported

Not supported

Not supported

Hebrew

General - Hebrew

16k

Supported

Not supported

Not supported

Not supported

Not supported

Croatian

General - Croatian

16k

Supported

Not supported

Not supported

Not supported

Not supported

Hausa

General - Hausa

16k

Supported

Not supported

Not supported

Not supported

Not supported

Marathi

General - Marathi

16k

Support

Not supported

Not supported

Not supported

Not supported

Telugu

General - Telugu

16k

Support

Not supported

Not supported

Not supported

Not supported

Punjabi

General - Punjabi

16k

Support

Not supported

Not supported

Not supported

Not supported

Swedish

General - Swedish

16k

Support

Not supported

Not supported

Not supported

Not supported

Bulgarian

General - Bulgarian

16k

Support

Not supported

Not supported

Not supported

Not supported

Danish

General - Danish

16k

Support

Not supported

Not supported

Not supported

Not supported

Norwegian

General - Norwegian

16k

Support

Not supported

Not supported

Not supported

Not supported

Kannada

General - Kannada

16k

Supported

Not supported

Not supported

Not supported

Not supported

Malayalam

General - Malayalam

16k

Support

Not supported

Not supported

Not supported

Not supported

Czech

General - Czech

16k

Supported

Not supported

Not supported

Not supported

Not supported

Urdu

General - Urdu

16k

Support

Not supported

Not supported

Not supported

Not supported

Nepali

General - Nepali

16k

Support

Not supported

Not supported

Not supported

Not supported

Mongolian (Outer Mongolia)

General - Mongolian (Outer Mongolia)

16k

Support

Not supported

Not supported

Not supported

Not supported

Uzbek

General - Uzbek

16k

Support

Not supported

Not supported

Not supported

Not supported

Dialects

Language

Model name

Sample rate

Punctuation

ITN

Disfluency detection

Semantic segmentation

Audio and text alignment

Cantonese

General - Cantonese

16k

Supported

Support

Support

Not supported

Support

Telephony Customer Service (General)

8k

Support

Support

Support

Not supported

Support

Cantonese-Mandarin Code-switching

8k

Support

Support

Supported

Not supported

Not supported

Southeast Asian Multilingual

16k

Support

Not supported

Not supported

Not supported

Not supported

Cantonese (Traditional Chinese)

General - Cantonese (Traditional Chinese)

8k

Supported

Not supported

Not supported

Not supported

Not supported

General - Cantonese (Traditional Chinese)

16k

Support

Not supported

Not supported

Not supported

Not supported

Sichuanese

General - Sichuanese

16k

Support

Supported

Support

Support

Supported

Telephony Customer Service (General)

8k

Support

Support

Supported

Support

Support

Hubei dialect

General - Hubei dialect

16k

Support

Support

Support

Support

Supported

General - Hubei dialect

8k

Supported

Support

Supported

Support

Supported

Shanghainese

General - Shanghainese

16k

Support

Support

Supported

Supported

Not supported

Hunan dialect

General - Hunan dialect

16k

Supported

Support

Support

Support

Support

Henan dialect

General - Henan dialect

16k

Support

Support

Support

Support

Support

General - Henan dialect

8k

Supported

Support

Support

Support

Supported

Zhejiang dialect

General - Zhejiang dialect

16k

Support

Supported

Support

Support

Not supported

Northeastern Mandarin

General - Northeastern Mandarin

16k

Support

Supported

Support

Supported

Support

Shandong dialect

General - Shandong dialect

16k

Support

Support

Supported

Support

Support

Tianjin dialect

General - Tianjin dialect

16k

Support

Support

Supported

Support

Supported

Shaanxi dialect

General - Shaanxi dialect

16k

Support

Support

Support

Support

Support

Shanxi dialect

General - Shanxi dialect

16k

Supported

Support

Support

Supported

Support

Guizhou dialect

General - Guizhou dialect

16k

Support

Support

Support

Supported

Support

Yunnan dialect

General - Yunnan dialect

16k

Supported

Support

Supported

Support

Support

Gansu dialect

General - Gansu dialect

16k

Support

Support

Support

Supported

Support

Suzhou dialect

General - Suzhou dialect

16k

Supported

Support

Support

Support

Not supported

Minnan

General - Minnan

16k

Support

Supported

Support

Supported

Not supported

Jiangxi dialect

General - Jiangxi dialect

16k

Support

Support

Support

Support

Supported

Ningxia dialect

General - Ningxia dialect

16k

Support

Support

Support

Supported

Support

Guangxi dialect

General - Guangxi dialect

16k

Support

Support

Support

Support

Supported

General - Guangxi dialect

8k

Supported

Support

Support

Supported

Support

Mandarin Chinese

Shiyinshi V1 - End-to-end model, Education Content Analysis, Medical Content Analysis, News Media Content Analysis, Entertainment Video Content Analysis, Audio/Video Offline Transcription (Upgraded), New Retail Realm Recognition Model, Travel Realm Recognition Model, Automotive Realm

16k

Supported

Support

Support

Support

Support

Chinese-English Conversation

16k

Support

Support

Support

Supported

Not supported

Shiyinshi V1 - End-to-end model

8k

Support

Support

Support

Support

Supported

Southeast Asian Multilingual

16k

Support

Not supported

Not supported

Not supported

Not supported

Error codes

For common error codes, FlashRecognizer error codes, and solutions, see Error codes.