Skip to content

Migrating from 0.x

0.x 1.0
startSpeech(): boolean start(options): Promise<void>, listen(options)
stopSpeech() stop()
cancelSpeech(), destroySpeech() abort()
checkRecognitionPermission() getPermissionsAsync()
requestRecognitionPermission() requestPermissionsAsync()
addOnSpeechResultListener(({ value }) => …) addListener('result', ({ transcript }) => …)
addOnSpeechErrorListener(({ cause }) => …) addListener('error', ({ code, message }) => …)
addOnSpeechCancelledListener addListener('end', ({ reason }) => …)

Android no longer shows Google’s dialog. Your app draws its own UI, and needs the microphone permission, which start() asks for.