How to use speech synthesis to speak a string in specific language with JavaScript

1 Answer

0 votes
const synthesis = window.speechSynthesis;

const text = new SpeechSynthesisUtterance("ג'אווה סקרי פ ט");

text.lang = 'he-IL';

synthesis.speak(text);





/*
run:



*/

 



answered Nov 30, 2022 by avibootz
...