JS/html5 文字转语音

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

 

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