All Projects → rxlabz → Speech_recognition

rxlabz / Speech_recognition

Licence: other
A Flutter plugin to use speech recognition on iOS & Android (Swift/Java)

Programming Languages

javascript
184084 projects - #8 most used programming language
swift
15916 projects
dart
5743 projects

Projects that are alternatives of or similar to Speech recognition

Unityandroidspeechrecognition
This repository is a Unity plugin for Android Speech Recognition (based on Java implementation)
Stars: ✭ 73 (-75.83%)
Mutual labels:  plugin, speech-recognition
Coffeescript Sublime Plugin
Syntax highlighting and checking, commands, shortcuts, snippets, compilation and more.
Stars: ✭ 296 (-1.99%)
Mutual labels:  plugin
Vue Electron
The vue plugin that attaches electron APIs to the Vue object, making them accessible to all components.
Stars: ✭ 283 (-6.29%)
Mutual labels:  plugin
Envfile
EnvFile 3.0 is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple files.
Stars: ✭ 293 (-2.98%)
Mutual labels:  plugin
Mongoose Paginate V2
A cursor based custom pagination library for Mongoose with customizable labels.
Stars: ✭ 283 (-6.29%)
Mutual labels:  plugin
Ros qtc plugin
ROS Qt Creator Plug-in (https://ros-qtc-plugin.readthedocs.io)
Stars: ✭ 295 (-2.32%)
Mutual labels:  plugin
Vosk Server
WebSocket, gRPC and WebRTC speech recognition server based on Vosk and Kaldi libraries
Stars: ✭ 277 (-8.28%)
Mutual labels:  speech-recognition
Pocketsphinx Python
Python interface to CMU Sphinxbase and Pocketsphinx libraries
Stars: ✭ 298 (-1.32%)
Mutual labels:  speech-recognition
Nord Jetbrains
An arctic, north-bluish clean and elegant JetBrains IDE UI and editor color theme.
Stars: ✭ 293 (-2.98%)
Mutual labels:  plugin
Alan Sdk Ionic
Alan AI Ionic SDK adds a voice assistant or chatbot to your app. Supports React, Angular.
Stars: ✭ 287 (-4.97%)
Mutual labels:  speech-recognition
Joyrpc
high-performance, high-extensibility Java rpc framework.
Stars: ✭ 290 (-3.97%)
Mutual labels:  plugin
Flutter photo
Pick image/video from album by flutter. Support ios and android. UI by flutter, no native.
Stars: ✭ 285 (-5.63%)
Mutual labels:  plugin
Flutter photo manager
Provide flutter with the ability to manage photos.
Stars: ✭ 294 (-2.65%)
Mutual labels:  plugin
Vuewordcloud
Generates a cloud out of the words.
Stars: ✭ 284 (-5.96%)
Mutual labels:  plugin
Validate
A simple jQuery plugin to validate forms.
Stars: ✭ 298 (-1.32%)
Mutual labels:  plugin
Alan Sdk Android
Alan AI Android SDK adds a voice assistant or chatbot to your app. Supports Java, Kotlin.
Stars: ✭ 278 (-7.95%)
Mutual labels:  speech-recognition
Schema Plugin Flow
A highly extensible JavaScript library, abbreviated as Sifo. 一个高扩展性、可二开的插件式前端开发框架
Stars: ✭ 288 (-4.64%)
Mutual labels:  plugin
Godot Android Admob Plugin
Android AdMob plugin for Godot Game Engine 3.2 or higher
Stars: ✭ 292 (-3.31%)
Mutual labels:  plugin
Jquery Match Height
a responsive equal heights plugin
Stars: ✭ 3,100 (+926.49%)
Mutual labels:  plugin
Smartshape2d
A 2D Terrain Tool for Godot 3.2
Stars: ✭ 285 (-5.63%)
Mutual labels:  plugin

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].