Skip to content

React Native module that allows an React Native application to call native speech recognition APIs.

Notifications You must be signed in to change notification settings

Danielfenghk/react-native-speech-to-text

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Speech to Text

React Native module that allows an React Native application to call native speech recognition APIs and to get the recognized text in return. This is a work in progress since it only works on Android. Although the work on iOS is almost finished.

Installation

First step(Download):

Run npm i react-native-speech-to-text --save

Second step(Plugin Installation):

Automatic installation

react-native link react-native-speech-to-text

Getting started

import { STTandroid, STTios } from 'react-native-speech-to-text';

(Platform.OS === 'android') {
   STTandroid.showGoogleInputDialog()
       .then((result) => {
           console.log(result)
       })
       .catch((error) => {
           console.log(error)
       })

} 

About

React Native module that allows an React Native application to call native speech recognition APIs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 56.2%
  • Objective-C 42.3%
  • JavaScript 1.5%