react-native-google-speech-to-text
Getting started
$ npm install react-native-google-speech-to-text --save
Mostly automatic installation
$ react-native link react-native-google-speech-to-text
Usage
import SpeechToText from 'react-native-google-speech-to-text';
const speechToTextHandler = async () => {
let speechToTextData = null;
try {
speechToTextData = await SpeechToText.startSpeech('Try saying something', 'en_IN');
console.log('speechToTextData: ', speechToTextData);
} catch (error) {
console.log('error: ', error);
}
}