Skip to content
A note being dictated

Expo STT

Speech to text for Expo, with one small API that behaves the same on iOS, Android and web. Every demo here runs live, above the code that runs in it.
import { listen } from 'expo-stt';
const { transcript } = await listen({ locale: 'en-US' });

It asks for permission, opens the microphone, waits until the user stops talking and closes everything again.

Live demo, needs a microphone.Open full screen ↗
import { useSpeechRecognition } from 'expo-stt';
function Dictation() {
const { transcript, isActive, toggle } =
useSpeechRecognition({ continuous: true });
return (
<>
<Text>{transcript}</Text>
<Button
title={isActive ? 'Stop' : 'Speak'}
onPress={() => void toggle()}
/>
</>
);
}

Same on every platform

One state machine, implemented and tested three times: every session that starts ends exactly once, with the same error codes.

Continuous

Keeps listening through pauses, and keeps final and interim text apart.

Volume

A level from 0 to 1 for waveforms and halos, without re-rendering your screen.

No dependencies

The recognizer of the platform and nothing else. No UI to fight with.