📜  如何在 javascript 代码示例中说出数字

📅  最后修改于: 2022-03-11 15:02:08.851000             🧑  作者: Mango

代码示例1
var msg = new SpeechSynthesisUtterance("The number is " + localStorage.getItem("mynumber"));
msg.lang = 'en-US';
msg.rate = 4;
window.speechSynthesis.speak(msg);