JS/html5 文字转语音

var sound = function (text) {
  let utterance = new SpeechSynthesisUtterance(text);
  return window.speechSynthesis.speak(utterance);
};

 

posted @ 2023-04-21 21:57    阅读(188)  评论(0)    收藏  举报