How to Add Text to Speech to Your Expo App

DavidDavid October 24, 2026 7 min read

How to add text to speech to your Expo app, in short

Use expo-speech. Install it with npx expo install expo-speech, import it with import * as Speech from 'expo-speech', and call Speech.speak('Welcome back'). The phone reads the text out loud with its built-in system voice. No API key and no audio file to bundle.

That covers a lot of real features: reading a recipe step aloud while someone's hands are busy, pronouncing a word in a language-learning app, announcing a workout interval, or giving a read-aloud button to people who would rather listen than squint. The work that makes it feel finished is everything around speak(): picking the right language, stopping cleanly when the user leaves the screen, and handling the platform gaps. That is what this guide covers.

Step 1: Install expo-speech

  1. Install: npx expo install expo-speech. Using expo install picks the version that matches your SDK.
  2. Import: import * as Speech from 'expo-speech'. It is a namespace import, so every call reads as Speech.speak, Speech.stop and so on.
  3. Start testing in Expo Go. The reference lists it as included in Expo Go, on Android, iOS and web.
  4. The reference has no permissions or config plugin section for this module. Speaking text through the system voice does not use the microphone, so there is no usage message to write.

Step 2: Speak your first line

The smallest working example is a button: <Button title="Read aloud" onPress={() => Speech.speak('Your order is ready')} />. speak() takes the text as its first argument and an optional options object as its second. It returns nothing, so you do not await it. If you want to know when speech starts or finishes, you use the callbacks in the options, covered below.

  • Calling speak() while something is already being spoken adds the new text to a queue. It does not interrupt. Tap a read-aloud button three times and you get three readings back to back.
  • To interrupt, call Speech.stop() first. stop() ends the current speech and deletes everything in the queue.
  • Text cannot be longer than Speech.maxSpeechInputLength. The limit depends on the platform; on iOS it returns Number.MAX_VALUE. For long articles on Android, split the text into sentences or paragraphs and queue them.

Step 3: Control language, pitch, rate and volume

The second argument to speak() is a SpeechOptions object. These are the options most apps actually use:

Common SpeechOptions

OptionWhat it doesNotes
languageThe language to read the text inAn IETF BCP 47 code, such as 'en-US', 'es-ES' or 'fr-FR'
pitchHow high or low the voice sounds1.0 is the normal pitch
rateHow fast the voice speaks1.0 is the normal rate
volumeLoudness of the speech0.0 (muted) to 1.0 (max), default 1.0
voiceA specific installed voiceAn identifier returned by getAvailableVoicesAsync()

Set language explicitly whenever the text is not in the device's own language. A Spanish phrase read with an English voice is the most common way read-aloud sounds broken. If your app is translated, pass the active locale through instead of hard-coding it; see [how to localize your app](/blog/how-to-localize-your-app-for-more-downloads) for where that locale comes from.

Our take on rate: offer a slower option rather than guessing one value for everyone. Language learners and people who prefer listening often want speech slower than normal, and a simple Slow / Normal toggle that maps to two rate values is easier to reason about than a free slider.

Step 4: Pick a voice with getAvailableVoicesAsync

Speech.getAvailableVoicesAsync() returns a list of Voice objects, each with an identifier, name, language and quality. quality is either VoiceQuality.Default or VoiceQuality.Enhanced. To use one, pass its identifier as the voice option: Speech.speak(text, { voice: chosen.identifier }).

  • Never hard-code a voice identifier. The reference is explicit: the format differs by platform (the engine's voice name on Android, the AVSpeechSynthesisVoice identifier on iOS, the voiceURI on web), and the voices available depend on the device. Read the list at runtime.
  • Filter by language first, then prefer an Enhanced voice if one exists, and fall back to just passing language if the list has no match.
  • If you let users choose a voice, store the identifier, and on the next launch check it is still in the list before using it. A voice can be present on one phone and missing on the next.

Step 5: Stop, pause and track progress

SpeechOptions also takes callbacks. onStart runs when speaking starts, onDone when it finishes, onStopped when you called Speech.stop(), and onError when something went wrong (onError is listed for Android and iOS only). onBoundary fires as the utterance reaches each word, which is what you would use to highlight words as they are read.

Playback control by platform

MethodAndroidiOSWeb
Speech.speak(text, options)YesYesYes
Speech.stop()YesYesYes
Speech.isSpeakingAsync()YesYesYes
Speech.pause()NoYesYes
Speech.resume()NoYesYes
  • Drive your Play/Stop button from onStart, onDone and onStopped, not from the tap itself. That way the button state stays right when speech ends on its own.
  • pause() and resume() are not available on Android. If you show a Pause button, hide it on Android with Platform.OS, or implement pause there as stop plus remembering which sentence you were on.
  • isSpeakingAsync() returns true while paused, so do not use it alone to decide whether to show Pause or Resume. Track that state yourself.
  • Call Speech.stop() when the screen unmounts, in a useEffect cleanup. Otherwise the phone keeps reading after the user has navigated away, which feels like a bug.

When expo-speech is the wrong tool

expo-speech uses the voices already on the device. That is its strength (free, no key, nothing to bundle) and its limit: you do not control exactly how it sounds, and it can sound different on two phones.

Which approach to pick

NeedUseWhy
Read dynamic text aloudexpo-speechSystem voices, no key, no cost per request
The same fixed lines every time (onboarding, a mascot)Recorded or pre-generated audio files with expo-audioIdentical sound on every device
A branded voice for dynamic textA cloud text-to-speech API behind your own serverConsistent voice, but costs money and needs network
Turning the user's speech into textNot expo-speechThis module only speaks; it does not listen

Mistakes that make text to speech feel broken

  • Testing on an iPhone in silent mode and concluding the code is broken.
  • Not calling Speech.stop() before a new reading, so taps pile up in the queue.
  • Not calling Speech.stop() when the screen unmounts.
  • Leaving language unset for text that is not in the device language.
  • Hard-coding a voice identifier copied from your own phone.
  • Showing a Pause button on Android, where pause() is not available.
  • Sending a very long string in one call instead of splitting it, and hitting the platform's input limit.

Have Claude Code set it up for you

Open your project in the Claude Code desktop app and be specific. Left vague, AI-written code tends to call Speech.speak straight from every button, with no stop, no cleanup and a Pause button that does nothing on Android. A prompt that keeps it in one place:

Then add a line to your [CLAUDE.md](/blog/claude-md-for-expo-apps) such as "All speech goes through src/lib/useSpeech.ts; never call Speech.speak directly" so a later session does not bypass it. Test on a real iPhone with silent mode off and on a real Android phone, since the voices you get depend on the device.

The short version

To add text to speech to your Expo app: install expo-speech, call Speech.speak(text) with a language, adjust pitch, rate and volume as needed, pick voices at runtime with getAvailableVoicesAsync, drive your UI from the onStart and onDone callbacks, and call Speech.stop() before new readings and on unmount. Remember that pause and resume are iOS and web only, and that a silent iPhone stays silent.

If you are building your first iOS app with Claude Code and Expo and want a second pair of eyes on it before App Review, bring it to App Store Launch Club. Members share their builds for feedback, and the [curriculum](/curriculum) covers the full path from first build to first users. Join at applaunchclub.co for $9 a month.

Free app-building tips, straight to your inbox

Short, practical drops on app ideas, validating fast, store listings, and passing app review. No spam, unsubscribe anytime.

Frequently asked questions

How do I do text to speech in Expo?

Install expo-speech with npx expo install expo-speech, import * as Speech from 'expo-speech', and call Speech.speak('your text'). Pass an options object for language, pitch, rate, volume or voice.

Does expo-speech work in Expo Go?

Yes. The reference lists it as included in Expo Go, and it works on Android, iOS and web.

Why does expo-speech make no sound on my iPhone?

The most likely cause is silent mode. The reference warns that on physical iOS devices expo-speech will not produce sound when the device is in silent mode. Turn silent mode off and try again.

How do I stop expo-speech from talking?

Call Speech.stop(). It interrupts the current speech and clears everything in the queue. Call it in a useEffect cleanup too, so speech ends when the user leaves the screen.

Can I pause and resume speech in Expo on Android?

No. Speech.pause() and Speech.resume() are available on iOS and web only. On Android, stop the speech and remember where you were if you need a resume feature.

How do I change the voice in expo-speech?

Call Speech.getAvailableVoicesAsync(), pick a Voice from the list, and pass its identifier as the voice option to Speech.speak(). Do not hard-code identifiers, because they differ by platform and by device.

Does expo-speech need an API key?

No API key. It uses the text-to-speech voices built into the device's system, so there is nothing to sign up for and no per-request cost.

Last reviewed by David on October 24, 2026

David

Written by

David

Founder and app builder

Keep reading

ExpoClaude Code

How to Add Notification Actions to Your Expo App

To add notification actions to an Expo app, register a category with Notifications.setNotificationCategoryAsync, give it action buttons (and optionally a text reply), set categoryIdentifier on the notification, then read response.actionIdentifier in a response listener. Here is every action option, how to handle taps when the app was closed, the Android and iOS differences, and a Claude Code prompt that wires it all up.

David 8 min
Read article
ExpoClaude Code

How to Schedule Local Notifications in Your Expo App

To schedule local notifications in an Expo app, install expo-notifications, set a notification handler, ask for permission, create an Android channel, then call scheduleNotificationAsync with your content and a trigger like DAILY, WEEKLY or DATE. Here is every trigger type, how to cancel and list what is scheduled, why Android reminders arrive late, and a Claude Code prompt that builds the whole reminder flow.

David 8 min
Read article

Ready to build it yourself?

Join App Store Launch Club, the #1 community for building and launching apps, for $9/month.

← Back to the blog