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

Add language

Open Markohui opened this issue 4 years ago • 1 comments

Hi, can you provide little help on how to set up new language to voice?

Markohui avatar Jul 15 '20 17:07 Markohui

I'm not sure what you mean by set up a new language, but the useSpeechSynthesis hook returns an array of voices that are available in the browser. You can then pass this as an argument when you call the speak function. For an example see https://github.com/MikeyParton/react-speech-kit/blob/master/examples/src/useSpeechSynthesis.jsx.

Is this what you are after?

MikeyParton avatar Jul 20 '20 21:07 MikeyParton