Please provide the following:
- SDK Version: ~46.0.9
- Platforms(Android/iOS/web/all): iOS
- Add the appropriate “Tag” based on what Expo library you have a question on.
I setonPause
andonResume
callback as an option when callingSpeech.speak
to speak text.
Although pausing and resuming speaking works totally fine, but the callbacks I give to speak function arent fired.
Does anyone know there is a known issue or how to fix it?
I set like this:
const speak = () => {
Speech.speak(text, {
...options,
onPause: ev => console.log('PAUSED!', ev),
onResume: ev => console.log('RESUMED! ', ev),
})
}
// pass the above to button like
<Button title="speak" onPress={speak} />
<Button title="pause" onPress={pauseFunc} />
<Button title="resume" onPress={resumeFunc} />
Nothing is logged in console…