All Products
Search
Document Center

Alibaba Cloud Model Studio:Fun-ASR-Realtime Flutter SDK

Last Updated:Nov 23, 2026

Prerequisites

  • Set up Flutter development for your target platform. The example app requires Dart 3.4 or later, below 4.0.
  • Get an API key. Choose a service endpoint in the same region as the API key. If you use a workspace-specific domain, also get your workspace ID.

Do not hardcode a long-lived API key in a mobile app. For models that accept temporary API keys, have your application server generate a temporary API key and send it to the client.

Install the SDK

Open Mobile speech SDK selection and download, select Flutter, and download and extract the package.

Copy the extracted SDK directory to packages/aliyun_neonui in your Flutter project and add the local dependency to pubspec.yaml.

dependencies:
  aliyun_neonui:
    path: packages/aliyun_neonui

Run flutter pub get, then import the SDK in your Dart file.

import 'package:aliyun_neonui/neonui.dart';

Quick start

Run the example app

  1. Connect your target device. Run these commands from the extracted SDK directory.

    cd example
    flutter pub get
    flutter run
    
  2. In the example app, open 百炼(DashScope) from the home screen. Select a service endpoint and enter your API Key. If you use a workspace-specific domain, enter your WorkspaceId as well.

  3. Open Qwen-Audio-3.x-ASR-Flash-Message/Qwen-Audio-3.x-ASR-Flash-Streaming/Fun-ASR-Realtime 实时语音识别 and run the example.

    Allow microphone access when running an audio capture example.

The complete example is in example/lib/pages/dashscope/dash_fun_asr_speech_transcriber_page.dart in the SDK package.

Use model fun-asr-realtime in the example.

Reference