Set voice for text to speech

I have to use react-native-tts instead of Expo Speech module because there is a huge difference between default iOS voice Expo uses and the native siri one you can pick.

On iOS, it’s basically just adding

utterance.voice = [AVSpeechSynthesisVoice voiceWithIdentifier:voice]

https://github.com/ak1394/react-native-tts can be used as a reference

Can someone update Speech module to support setting voice or point me to where I can find it to make PR?

feature request on Canny

Hey @andrey,

If this is urgent for you, it’d be best to submit a PR since as far as I know, this isn’t in the pipeline to be added to the SDK near-term. Our source of truth is this repo GitHub - expo/expo: An open-source platform for making universal native apps with React. Expo runs on Android, iOS, and the web.

Cheers,

Adam

Hey @adamjnav, thanks for your reply. Made PR here: Add option to select voice by pyankoff · Pull Request #2833 · expo/expo · GitHub

1 Like

Awesome, thanks for doing that! Looks like James has already started some back and forth with you there.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.