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
javascript blob audio webspeech-api


source to share


No one has answered this question yet

Check out similar questions:

4086
What's the difference between using "let" and "var"?
2038
Is there a standard function for testing null, undefined, or empty variables in JavaScript?
1957
How do I determine if a variable is "undefined" or "null"?
1904
Get the size of the screen, current web page and browser window
1850
What is the scope of variables in JavaScript?
1643
How do you check if a variable is an array in JavaScript?
1513
Check if a variable is a string in JavaScript.
4
How do I capture the generated sound from the window.speechSynthesis.speak () call?
2
API Web Speech: two statements at the same time
2
Text-to-speech API volume, speed and pitch not working



All Articles
Loading...
X
Show
Funny
Dev
Pics