Select Language For Text-to-speed On Android Webview
I have searching for many hours without a real answer. Is there anyway to select different language than the default one for the Text-to-speech function? This code works perfectly
Solution 1:
Well, after search and search finally I found the solution and it´s very very simple...
In PC Chrome, the lang of the voice goes implicit in the voice packet but in Mobile Chrome the lang must be specified explicit in the SpeechSynthesisUtterance object.
So for the example it works adding the line
msg.lang = voices[$('#voices').val()].lang;
If someone needs help, I'm ready.
Greetings.
Post a Comment for "Select Language For Text-to-speed On Android Webview"