Text to Speech [TTS] for Chat


#62

I changed it to speech.voice = voices.filter(function(voice) { return voice.name == 'Microsoft Zira Mobile - English (United States)'; })[0]; and the voice still sounds female but from GB?! It’s like nothing changed from your code above. Sorry to keep bothering about this. Just trying to understand what is happening. Thank you.


#63

and you have it set to speech.lang = 'en-US'; right?


#64

Yes. I took that code directly from what you posted above. Not sure why it isn’t seeing that line speech.lang = 'en-US'; //Also added as for some reason android devices used for testing loaded spanish language


#65

ok so i have worked it out… the first voice will be the male then after that it will be the voice you have selected

so the first time you load the page and the voice runs it will use your computers default voice then after that it will then use the voice selected in the script

i have also edited my post with the code to make it easier to edit too


#66

Alright! All is well now. Thank you for fixing that. It works great using Chrome on Windows 10. :clap::clap::clap: