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

152
Views
How to transmit real-time audio data through js/browser?

In a project, I need to process audio data acquired by a microphone which is displayed in a edge device(with limited computer capacity). And to improve the performance, I want to place the data process program on a powerful computer(server), and transmit real-time audio data captured by the microphone to the server. For some reasons, I need to do these through browser. My question is, it seems that there are no good ways to transmit streaming data via browser. Can post effectively do this job?

Here are my code and thought:

    ...
    let audiodata = [];
    let recorder = new MediaRecorder(stream);
        let senddata = setInterval(()=>{
            /*transmit data*/
            $.ajax({
                type: "POST",
                data: audiodata,
                ...
            });
            /*clear audiodata*/
            audiodata = [];
        }, 1000);

        let stopped = new Promise((resolve, reject) => {
            recorder.onstop = function(){
                window.clearInterval(senddata);
                resolve();
            };
            recorder.onerror = event => reject(event.name);
        });
        
    ...
about 4 years ago · Juan Pablo Isaza
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!