Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

185
Visualizações
Is there any possible solution to get mp3 of text I get blob but not play able

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

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

TL;DR:

You can't record speech synthesis output in the browser.


The W3C draft report for the Web Speech API does not include methods for accessing speech synthesis output, and SpeechSynthesis.speak(speech) returns undefined, not data to create a blob from.

Browser software implementing the speech synthesizer component of the API may in fact be calling the O/S to synthesize the speech rather than producing any kind of audio stream itself.

Most speech synthesis output heard on YouTube is likely being captured by the video recording/screen capture software used to record the video. Please research further to determine what might suite you best - I am not offering recommendations other than to include "Xbox Gamebar App" and "VLC" in your searches if they don't turn up by themselves.

This related question answer covers interesting information about copyright and potential limitations on commercial use of recorded speech synthesis output imposed by some manufacturers.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda