Skip to content
Advertisement

Send Wav file from js to flask

I have this code in js witch recod an audio from the browser and I need to send it back from js to flask

JavaScript

How I should do that while making the file in wav format?

Advertisement

Answer

The following example creates a limited time audio recording and uploads it when finished. A form containing a blob is used for this.
It would also be possible to transmit the pure blob to the server, but since there are differences in the audio format used depending on the browser, this is the more general variant.

JavaScript

All recordings are saved on the server in a directory with the default name “var/app-instance/uploads”.

JavaScript

I wish you every success in implementing your project.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement