Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

186
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!