Speech_recognition

A Flutter plugin to use speech recognition on iOS & Android (Swift/Java)
Alternatives To Speech_recognition
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Speech_recognition327
176 months ago4November 27, 201879otherDart
A Flutter plugin to use speech recognition on iOS & Android (Swift/Java)
Raphael Svg Import258
6 years agomitJavaScript
Import raw SVG data into Raphael
Speech_to_text248225 days ago43June 25, 202221bsd-3-clauseDart
A Flutter plugin that exposes device specific text to speech recognition capability.
Wikitude Cordova Plugin198
142 years ago24August 25, 202112otherC++
Wikitude's Augmented Reality Plugin for Cordova - working together with the Wikitude SDK library for Android and iOS. Provides image recognition and tracking, geo-based augmente reality and 3D rendering and animations in an augmented reality scene
Face Recognition167
6 years agoC++
Demonstrate Plugin API for TensorRT2.1
Speechrecognizer113
6 years ago15Java
SpeechRecognizer Cordova plugin for Android
Sphinx Ue4113
6 years ago9unlicenseC
A speech recognition plugin for Unreal Engine 4. This is essentially a port of Pocketsphinx, to be used within an Unreal Engine project.
Nativescript Speech Recognition73
73 years ago14September 24, 20206otherTypeScript
:speech_balloon: Speech to text, using the awesome engines readily available on the device.
Speechrecognition70
34 years ago4October 23, 20181mitC#
Easy to use cross platform speech recognition (speech to text) plugin for Xamarin & UWP
Unityandroidspeechrecognition62
5 years ago4gpl-3.0Java
This repository is a Unity plugin for Android Speech Recognition (based on Java implementation)
Alternatives To Speech_recognition
Select To Compare


Alternative Project Comparisons
Readme

⚠️ Deprecated


speech_recognition

A flutter plugin to use the speech recognition iOS10+ / Android 4.1+

screenshot

Installation

  1. Depend on it Add this to your package's pubspec.yaml file:
dependencies:
  speech_recognition: "^0.3.0"
  1. Install it You can install packages from the command line:
$ flutter packages get
  1. Import it Now in your Dart code, you can use:
import 'package:speech_recognition/speech_recognition.dart';

Usage

//..
_speech = SpeechRecognition();

// The flutter app not only call methods on the host platform,
// it also needs to receive method calls from host.
_speech.setAvailabilityHandler((bool result) 
  => setState(() => _speechRecognitionAvailable = result));

// handle device current locale detection
_speech.setCurrentLocaleHandler((String locale) =>
 setState(() => _currentLocale = locale));

_speech.setRecognitionStartedHandler(() 
  => setState(() => _isListening = true));

// this handler will be called during recognition. 
// the iOS API sends intermediate results,
// On my Android device, only the final transcription is received
_speech.setRecognitionResultHandler((String text) 
  => setState(() => transcription = text));

_speech.setRecognitionCompleteHandler(() 
  => setState(() => _isListening = false));

// 1st launch : speech recognition permission / initialization
_speech
    .activate()
    .then((res) => setState(() => _speechRecognitionAvailable = res));
//..

speech.listen(locale:_currentLocale).then((result)=> print('result : $result'));

// ...

speech.cancel();

// ||

speech.stop();

Recognition

Permissions

iOS

⚠️ iOS : Swift 4.2 project

infos.plist, add :

  • Privacy - Microphone Usage Description
  • Privacy - Speech Recognition Usage Description
<key>NSMicrophoneUsageDescription</key>
<string>This application needs to access your microphone</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>This application needs the speech recognition permission</string>

Android

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

Limitation

On iOS, by default the plugin is configured for French, English, Russian, Spanish, Italian. On Android, without additional installations, it will probably works only with the default device locale.

Troubleshooting

If you get a MissingPluginException, try to flutter build apk on Android, or flutter build ios

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

Popular Recognition Projects
Popular Plugin Projects
Popular Machine Learning Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Plugin
Swift
Dart
Flutter
Recognition
Privacy
Speech Recognition