force english language for speech synthesis
This commit is contained in:
parent
5858876692
commit
7ddabae84b
|
@ -614,6 +614,7 @@
|
|||
if (!speechStorage.get()) return false;
|
||||
var msg = text.text ? text : new SpeechSynthesisUtterance(text);
|
||||
msg.volume = api.getVolume();
|
||||
msg.lang = 'en-US';
|
||||
if (cut) speechSynthesis.cancel();
|
||||
speechSynthesis.speak(msg);
|
||||
console.log(`%c${msg.text}`, 'color: blue');
|
||||
|
|
Loading…
Reference in a new issue