[SOLVED] Language of SpeechSynthesis?

Answered Closed
0
0

 

 

How can I specify the language?… i tried..

SpeechSynthesis1.Language = “es-ES”

 

But doesn’t work

  • You must to post comments
Best Answer
0
0

I think you have to change the voice too. The lang property doesn’t seem to do anything. Use this voice “Google español”. The string must match exactly the voice installed by chrome.

See:

https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/lang

https://codepen.io/matt-west/pen/wGzuJ

  • You must to post comments
Showing 1 result