UNPKG

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
# 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