3

是否可以从 Web Speech API 返回生成的音频(https://developers.google.com/web/updates/2014/01/Web-apps-that-talk-Introduction-to-the-Speech-Synthesis- API ) 到可以通过 Audio 对象使用的变量?

IE 类似于以下内容(伪代码):

var msg = new SpeechSynthesisUtterance('Hello World');
var speechToAudioFileLink = speechSynthesis.speak(msg);
var audio = new Audio(speechToAudioFileLink);
audio.play();
4

0 回答 0