Is there any possible solution to get mp3 of text I get blob but not play able
text = document.getElementById("text");
voice = document.getElementById("Svoice");
action = document.getElementById("action");
function texttospeech(text){
let speech = new SpeechSynthesisUtterance(text);
items = [];
let record = speechSynthesis.speak(speech);
items.push(record);
var blob = new Blob(items, {type:'audio/mp3'});
aud.src = URL.createObjectURL(blob);
}
action.addEventListener('click', e => {
e.preventDefault();
if (text.value !== ""){
texttospeech(text.value);
}
});
Can anyone help me without node.js or any other library only javascript please