@agrigate/speech-to-text-wrapper

1.0.27 • Public • Published

React Native Speech-to-Text Wrapper for TextInput

license

A wrapper to uplift any TextInput in react native, providing speech-to-text support in more than 20 languages

@agrigate/speech-to-text-wrapper - ts support (under dev)

Use // @ts-ignore when importing SpeechtoTextWrapper

Installation

  1. pnpm i @agrigate/speech-to-text-wrapper or yarn add @agrigate/speech-to-text-wrapper or npm i @agrigate/speech-to-text-wrapper

  2. Make sure to add required permissions in AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />

Use

import SpeechtoTextWrapper from "@agrigate/speech-to-text-wrapper";
      <SpeechtoTextWrapper locale="en-IN">
        # <TextInput style={{ borderWidth: 1, }} value={text} onChangeText={v => settext(v)} /> [ANY TEXT INPUT]
      </SpeechtoTextWrapper>

Props

locale [optional, default is "en-US"] give your desired lang locale & it'll render in that
Language Name Code
English (US) en-US
English (India) en-IN
Hindi (India) hi-IN
Bengali (India) bn-IN
Tamil (India) ta-IN
Telugu (India) te-IN
Kannada (India) kn-IN
Marathi (India) mr-IN
Gujarati (India) gu-IN
Malayalam (India) ml-IN
Punjabi (India) pa-IN
Urdu (India) ur-IN
French fr-FR
German de-DE
Spanish (Spain) es-ES
Spanish (Mexico) es-MX
Arabic (UAE) ar-AE
Chinese (Mandarin, China) zh-CN
Japanese ja-JP
Korean ko-KR

Feel free to checkout what we do here

Package Sidebar

Install

npm i @agrigate/speech-to-text-wrapper

Weekly Downloads

12

Version

1.0.27

License

MIT

Unpacked Size

11.7 kB

Total Files

11

Last publish

Collaborators

  • mohit.rutrust