How do I use synthesizeTextToStreamAsync to get an audio stream url in javascript? -


none of posts on website cover in javascript. don't know did wrong:

var audio = new audio(); var synth = new windows.media.speechsynthesis.speechsynthesizer(); synth.synthesizetexttostreamasync("hello world").then(function (markersstream) { var blob = msapp.createblobfromrandomaccessstream(markersstream.contenttype, markersstream); audio.src = url.createobjecturl(blob); audio.play(); }); 

i'm new posting on website, want figure out why script not running @ all. came across article says synthesizetexttostreamasync doesn't work anymore? here link article: http://irisclasson.com/2014/11/11/error-access-denied-when-running-speechsynthesizer-synthesizetexttostreamasynctext/ anyway, did wrong in code , how fix it?


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -