react-native-gtts-lite
Version:
šļø Lightweight Google Translate TTS for React Native CLI using react-native-fs and react-native-sound.
38 lines (18 loc) ⢠657 B
Markdown
# react-native-gtts-lite
šļø A lightweight utility to convert text to speech in React Native CLI apps using Google Translate TTS.
## Install
```bash
npm install react-native-gtts-lite
npx react-native link react-native-fs
npx react-native link react-native-sound
```
## Usage:
import { playTTS } from 'react-native-gtts-lite';
playTTS('Hello Lokanath!', 'en');
Feel free to connect me on melokanath@gmail.com
## ā ļø Note
- This uses Google's unofficial TTS endpoint.
- No authentication needed, but use responsibly to avoid IP blocks.
- Supports many languages using language codes like `en`, `hi`, `fr`, etc.
## š License
MIT