react-speech-kit icon indicating copy to clipboard operation
react-speech-kit copied to clipboard

There seem to be only 2 voice options available.

Open anomaly-fr opened this issue 4 years ago • 1 comments

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.

anomaly-fr avatar Dec 17 '20 02:12 anomaly-fr

Solved it:

    const { speak, voices, supported } = useSpeechSynthesis()
    const voice = voices[48] || null

    speak({
      voice,
      text,
    })

paulm17 avatar Dec 06 '21 13:12 paulm17