react-native-google-speech-to-text

1.0.4 • Public • Published

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';
 
// TODO: What to do with the module?
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);
        }
}

Readme

Keywords

Package Sidebar

Install

npm i react-native-google-speech-to-text

Weekly Downloads

13

Version

1.0.4

License

MIT

Unpacked Size

393 kB

Total Files

39

Last publish

Collaborators

  • thronie_on