Speech to Text Texinput
Wrapper to transform any textinput into Speech-to-text Texinput
Description
With this wrapper, transform any text input to a Speech-to-text Textinput. This allows you to easily enable voice-based input functionality. You just need to wrap your text input like the following:
<SpeechtoTextWrapper>
<TextInput /> {/* Your text input goes here */}
</SpeechtoTextWrapper>
Installation
Step 1: Install Dependencies
To get started, you'll need to install the following dependencies:
yarn add @react-native-voice/voice react-native-toast-message eventemitter3
Ensure you've linked @react-native-voice/voice
by following the linking instructions here:! [@react-native-voice/voice][https://www.npmjs.com/package/@react-native-voice/voice#linking].
Step 2: Install the Speech-to-Text Wrapper
Next, install the speech-to-text-wrapper
package:
yarn add speech-to-text-wrapper
You're done! Wohoo 🎉
Now, you can wrap any TextInput
component with the SpeechtoTextWrapper
and enjoy voice-based text input in your app!
Contact me at mohit.chawla@workmail.com