I have a Meteor call which takes the text as parameter and returns the .wav data of that particular text. Now I need to convert that into .mp3 and play that audio in my Meteor app. How can I do this?
Meteor.call("watsonaudio",wusername,wpassword,text, function(error, results) {
console.log("Insideeeeee");
if(results){
console.log("resultsss",results.content);
var audio = new Audio(results.content);
//audio.src = results.content;
audio.play();
console.log("audio played");
}
});
In the above code, results.content
has .wav data something like (RIFF����WAVEfmt ....). Now how can I make it play?