Sound Web Speech API for Variables

Is it possible to revert the resulting sound from the Web Speech API ( https://developers.google.com/web/updates/2014/01/Web-apps-that-talk-Introduction-to-the-Speech-Synthesis-API ) to a variable that can be used through the Sound Object?

those. something like the following (pseudocode):

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

      

+3


source to share





All Articles