Picovoice Wordmark
Start Building
Introduction
Introduction
AndroidC.NETiOSLinuxmacOSNode.jsPythonRaspberry PiWebWindows
AndroidC.NETiOSNode.jsPythonWeb
SummaryPicovoice picoLLMGPTQ
Introduction
AndroidC.NETFlutteriOSJavaLinuxmacOSNode.jsPythonRaspberry PiReactReact NativeRustWebWindows
AndroidC.NETFlutteriOSJavaNode.jsPythonReactReact NativeRustWeb
SummaryPicovoice LeopardAmazon TranscribeAzure Speech-to-TextGoogle ASRGoogle ASR (Enhanced)IBM Watson Speech-to-TextWhisper Speech-to-Text
FAQ
Introduction
AndroidC.NETFlutteriOSJavaLinuxmacOSNode.jsPythonRaspberry PiReactReact NativeRustWebWindows
AndroidC.NETFlutteriOSJavaNode.jsPythonReactReact NativeRustWeb
SummaryPicovoice Cheetah
FAQ
Introduction
AndroidC.NETiOSLinuxmacOSNode.jsPythonRaspberry PiWebWindows
AndroidC.NETiOSNode.jsPythonWeb
SummaryAmazon PollyAzure TTSElevenLabsOpenAI TTSPicovoice Orca
Introduction
AndroidCiOSLinuxmacOSPythonRaspberry PiWebWindows
AndroidCiOSPythonWeb
SummaryPicovoice KoalaMozilla RNNoise
Introduction
AndroidCiOSLinuxmacOSNode.jsPythonRaspberry PiWebWindows
AndroidCNode.jsPythoniOSWeb
SummaryPicovoice EaglepyannoteSpeechBrainWeSpeaker
Introduction
AndroidCiOSLinuxmacOSPythonRaspberry PiWebWindows
AndroidCiOSPythonWeb
SummaryPicovoice FalconAmazon TranscribeAzure Speech-to-TextGoogle Speech-to-Textpyannote
Introduction
AndroidArduinoCChrome.NETEdgeFirefoxFlutteriOSJavaLinuxmacOSMicrocontrollerNode.jsPythonRaspberry PiReactReact NativeRustSafariUnityWebWindows
AndroidC.NETFlutteriOSJavaMicrocontrollerNode.jsPythonReactReact NativeRustUnityWeb
SummaryPorcupineSnowboyPocketSphinx
Wake Word TipsFAQ
Introduction
AndroidCChrome.NETEdgeFirefoxFlutteriOSJavaLinuxmacOSNode.jsPythonRaspberry PiReactReact NativeRustSafariUnityWebWindows
AndroidC.NETFlutteriOSJavaNode.jsPythonReactReact NativeRustUnityWeb
SummaryPicovoice RhinoGoogle DialogflowAmazon LexIBM WatsonMicrosoft LUIS
Expression SyntaxFAQ
Introduction
AndroidC.NETiOSLinuxmacOSNode.jsPythonRaspberry PiRustWebWindows
AndroidC.NETiOSNode.jsPythonRustWeb
SummaryPicovoice CobraWebRTC VAD
FAQ
Introduction
AndroidC.NETFlutteriOSNode.jsPythonReact NativeRustUnityWeb
AndroidC.NETFlutteriOSNode.jsPythonReact NativeRustUnityWeb
Introduction
C.NETNode.jsPython
C.NETNode.jsPython
FAQGlossary

Rhino Speech-to-Intent
Flutter Quick Start

Platforms

  • Flutter (2.8.1+)
  • Android (5.0+, API 21+)
  • iOS (13.0+)

Requirements

  • Flutter SDK
  • Android SDK (21+)
  • JDK (8+)
  • Xcode (13+)

Picovoice Account & AccessKey

Signup or Login to Picovoice Console to get your AccessKey. Make sure to keep your AccessKey secret.

Quick Start

Setup

  1. Install Flutter SDK.

  2. Run flutter doctor to determine any missing requirements.

  3. Add the Rhino Speech-to-Intent plugin to your app project by referencing it in pubspec.yaml:

dependencies:
rhino_flutter: ^<version>
  1. Enable the proper permission for recording with the hardware's microphone on both iOS and Android:

iOS

Open your Info.plist and add the following line:

<key>NSMicrophoneUsageDescription</key>
<string>[Permission explanation]</string>

Android

Open your AndroidManifest.xml and add the following line:

<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.INTERNET" />

Usage

  1. Add the context file (either a pre-built context file (.rhn) from the Rhino Speech-to-Intent GitHub Repository or a custom context created with the Picovoice Console) to the assets folder in the project directory.

  2. Add the path to the pubspec.yaml:

flutter:
assets:
- assets/${CONTEXT_FILE}
  1. Create an instance of RhinoManager using the constructor RhinoManager.create that infers custom commands:
import 'package:rhino/rhino_manager.dart';
import 'package:rhino/rhino_error.dart';
try {
_rhinoManager = await RhinoManager.create(
"{ACCESS_KEY}"
"assets/{CONTEXT_FILE}",
_inferenceCallback);
} on RhinoException catch (err) {
// handle rhino init error
}

The _inferenceCallback parameter is a function that is invoked when Rhino Speech-to-Intent made an intent inference.

void _infererenceCallback(RhinoInference inference) {
if(inference.isUnderstood!){
String intent = inference.intent!
Map<String, String> slots = inference.slots!
// take action based on inferred intent and slot values
}
else {
// handle unsupported commands
}
}

Start audio capture and intent inference:

try{
await _rhinoManager.process();
} on RhinoException catch (ex) {
// deal with either audio exception
}

Once an inference has been made, the _inferenceCallback will be invoked and audio capture will stop automatically. Release resources explicitly when done with Rhino Speech-to-Intent:

await _rhinoManager.delete();
To use your own audio processing pipeline, check out the Low-Level Rhino API.

Custom Contexts

  1. Create custom contexts with the Picovoice Console. Download the custom context file (.rhn).

  2. Add the file to the assets folder in the project directory.

  3. Add it to the pubspec.yaml:

flutter:
assets:
- assets/${CUSTOM_CONTEXT_FILE}
  1. Create an instance of RhinoManager using the constructor RhinoManager.create with the custom context.

Alternatively, if the context file is deployed to the device with a different method, the absolute path to the file on device can be used.

Non-English Languages

Use the corresponding model file (.pv) to detect non-English wake words. The model files for all supported languages are available on the Rhino Speech-to-Intent GitHub repository.

  1. Add the file to the assets folder in the project directory.
  2. Add it to the pubspec.yaml:
flutter:
assets:
- assets/${CUSTOM_CONTEXT_FILE}
- assets/${MODEL_FILE}
  1. Pass in the model file using the modelPath parameter to change the language:
try{
_rhinoManager = await RhinoManager.create(
"{ACCESS_KEY}"
"assets/{CUSTOM_CONTEXT_FILE}",
_inferenceCallback,
modelPath: "assets/{MODEL_FILE}");
} on RhinoException catch (err) {
// handle rhino init error
}

Alternatively, if the model file is deployed to the device with a different method, the absolute path to the file on device can be used.

Demo

For the Rhino Speech-to-Intent Flutter SDK, we offer demo applications that demonstrate how to use the Speech-to-Intent engine on real-time audio streams (i.e. microphone input).

Setup

Clone the Rhino Speech-to-Intent GitHub Repository:

git clone --recurse-submodules https://github.com/Picovoice/rhino.git

Usage

  1. Replace {YOUR_ACCESS_KEY_HERE} with a valid AccessKey in the demo/flutter/lib/main.dart file:

  2. Run the prepare_demo script with a language code to set up the demo in the language of your choice (e.g. de -> German, ko -> Korean). To see a list of available languages, run prepare_demo without a language code.

cd rhino/demo/flutter
dart scripts/prepare_demo.dart ${LANGUAGE}
  1. Build and deploy the demo to your device:
flutter run

For more information on our Rhino Speech-to-Intent demos for Flutter, head over to our GitHub repository.

Resources

Package

  • rhino_flutter on pub.dev

API

  • rhino_flutter API Docs

GitHub

  • Rhino Speech-to-Intent Flutter SDK on GitHub
  • Rhino Speech-to-Intent Flutter Demos on GitHub

Benchmark

  • Speech-to-Intent Benchmark

Further Reading

  • Offline Speech Recognition in Flutter: No Siri, No Google, and No, It’s Not Speech-To-Text

Video

  • Offline Speech Recognition with Flutter (iOS/Android)

Was this doc helpful?

Issue with this doc?

Report a GitHub Issue
Rhino Speech-to-Intent Flutter Quick Start
  • Platforms
  • Requirements
  • Picovoice Account & AccessKey
  • Quick Start
  • Setup
  • Usage
  • Custom Contexts
  • Non-English Languages
  • Demo
  • Setup
  • Usage
  • Resources
Voice AI
  • Leopard Speech-to-Text
  • Cheetah Streaming Speech-to-Text
  • Orca Text-to-Speech
  • Koala Noise Suppression
  • Eagle Speaker Recognition
  • Falcon Speaker Diarization
  • Porcupine Wake Word
  • Rhino Speech-to-Intent
  • Cobra Voice Activity Detection
Local LLM
  • picoLLM Inference
  • picoLLM Compression
  • picoLLM GYM
Resources
  • Docs
  • Console
  • Blog
  • Use Cases
  • Playground
Sales & Services
  • Consulting
  • Foundation Plan
  • Enterprise Plan
  • Enterprise Support
Company
  • About us
  • Careers
Follow Picovoice
  • LinkedIn
  • GitHub
  • X
  • YouTube
  • AngelList
Subscribe to our newsletter
Terms of Use
Privacy Policy
© 2019-2025 Picovoice Inc.