This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

Expo Speech iconExpo Speech

A library that provides access to text-to-speech functionality.

Android
iOS
Web
Included in Expo Go
Recommended version:
~56.0.3

expo-speech provides an API that allows you to utilize Text-to-speech functionality in your app.

Installation

Terminal
- npx expo install expo-speech
- yarn expo install expo-speech
- pnpm expo install expo-speech
- bun expo install expo-speech

If you are installing this in an existing React Native app, make sure to install expo in your project.

Usage

Speech
import { View, StyleSheet, Button } from 'react-native'; import * as Speech from 'expo-speech'; export default function App() { const speak = () => { const thingToSay = '1'; Speech.speak(thingToSay); }; return ( <View style={styles.container}> <Button title="Press to hear some words" onPress={speak} /> </View> ); } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', backgroundColor: '#ecf0f1', padding: 8, }, });

API

import * as Speech from 'expo-speech';

No API data file found, sorry!