A
A
Apti Khasukhadzhiev2017-09-17 17:14:04
JavaScript
Apti Khasukhadzhiev, 2017-09-17 17:14:04

How to record audio in browser (in aac or ogg) and send to server?

You need to record the sound in the browser and send it to the server. I used Recorder.js for this , but it writes to wav (I need a minimum size for example aac) and transmitted using the fetch method via an HTTP stream. At the same time, if you transfer just audio, everything works, but if along with the sound, form data from the page is transmitted to the server, the file arrives broken. Can someone tell me how to implement it differently. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LiptonOlolo, 2017-09-19
@LiptonOlolo

Most likely, the gluing of the buffer into 1 common buffer works and you are given this very buffer. Try to split it into 2 buffers, 1 - voice, 2 - data. This is how TCP works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question