Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

184
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda