https://github.com/oovz/expo-edge-speech
Microsoft Edge text-to-speech for Expo and React Native
https://github.com/oovz/expo-edge-speech
expo microsoft multilanguage react-native text-to-speech
Last synced: 4 months ago
JSON representation
Microsoft Edge text-to-speech for Expo and React Native
- Host: GitHub
- URL: https://github.com/oovz/expo-edge-speech
- Owner: oovz
- License: mit
- Created: 2025-07-13T04:21:02.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-07-14T09:20:35.000Z (about 1 year ago)
- Last Synced: 2025-09-26T00:09:53.957Z (10 months ago)
- Topics: expo, microsoft, multilanguage, react-native, text-to-speech
- Language: TypeScript
- Homepage: https://oovz.github.io/expo-edge-speech/
- Size: 636 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# expo-edge-speech
*Microsoft Edge text-to-speech for Expo and React Native*
[](https://www.npmjs.com/package/expo-edge-speech)
[](https://github.com/oovz/expo-edge-speech/blob/master/LICENSE)
[](https://www.npmjs.com/package/expo-edge-speech)
[](https://github.com/oovz/expo-edge-speech)
## 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
```bash
npm install expo-edge-speech
```
### For React Native Projects
React Native projects need Expo to use this library (and its dependencies):
```bash
# Install Expo (if not already installed)
npm install expo@sdk-52
# Install the library
npm install expo-edge-speech
```
### Requirements
- **Expo SDK 52** or higher
- **iOS 15.1+** / **Android API 24+**
- **React Native 0.76.9+**
## Usage
```typescript
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:
```bash
# 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 start
```
## Credit
**Created by** [Otaro](https://github.com/oovz)
**Built with:**
- [expo-av](https://docs.expo.dev/versions/latest/sdk/av/) - Audio playback functionality
- [expo-crypto](https://docs.expo.dev/versions/latest/sdk/crypto/) - Cryptographic operations
- [expo-file-system](https://docs.expo.dev/versions/latest/sdk/filesystem/) - File management and caching
- [edge-tts](https://github.com/rany2/edge-tts) - Edge TTS Python library
## License
This project is licensed under the MIT License.