Web Speech API Audio to Variable

时间:2017-06-29 14:50:51

标签: javascript audio blob webspeech-api

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

即。类似下面的内容(伪代码):

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

0 个答案:

没有答案