expo-edge-speech
v0.1.1
Published
Text-to-speech library for Expo using Microsoft Edge TTS service
Maintainers
Readme
expo-edge-speech
Microsoft Edge text-to-speech for Expo and React Native
Description
expo-edge-speech is a text-to-speech library for Expo and React Native applications that provides high-quality voice synthesis using Microsoft's Edge TTS service. It offers a drop-in replacement for expo-speech with enhanced features including 400+ natural voices, better voice quality, word boundary events, and cross-platform support for both iOS and Android.
Installation
For Expo Projects
npm install expo-edge-speechFor React Native Projects
React Native projects need Expo to use this library (and its dependencies):
# Install Expo (if not already installed)
npm install expo@sdk-52
# Install the library
npm install expo-edge-speechRequirements
- Expo SDK 52 or higher
- iOS 15.1+ / Android API 24+
- React Native 0.76.9+
Usage
import * as Speech from 'expo-edge-speech';
// Basic text-to-speech
await Speech.speak('Hello world');
// With options
await Speech.speak('Welcome to my app!', {
voice: 'en-US-AriaNeural',
rate: 1.2,
onDone: () => console.log('Speech completed')
});Development
To contribute to this project:
# Clone the repository
git clone https://github.com/oovz/expo-edge-speech.git
# Install dependencies
cd expo-edge-speech
yarn install
# Run development server (tsc:watch)
yarn dev
# Run example app
cd example-app
npx expo startCredit
Created by Otaro
Built with:
- expo-av - Audio playback functionality
- expo-crypto - Cryptographic operations
- expo-file-system - File management and caching
- edge-tts - Edge TTS Python library
License
This project is licensed under the MIT License.
