react-speech-kit
react-speech-kit copied to clipboard
There seem to be only 2 voice options available.
trafficstars
I'm trying to switch to the Google UK Female voice but it doesn't work. Some clarity on how to change the voice would be appreciated.
Solved it:
const { speak, voices, supported } = useSpeechSynthesis()
const voice = voices[48] || null
speak({
voice,
text,
})