Recorderjs icon indicating copy to clipboard operation
Recorderjs copied to clipboard

How can I upload my audio file to a folder in my web Project?

Open AaronJPM opened this issue 10 years ago • 5 comments

Can I change the destination of the audio file to a folder in my solution instead of downloading it to my computer?

AaronJPM avatar Oct 22 '14 07:10 AaronJPM

Give a little more context here, 'my solution'? Are you thinking of generating the audio file for further use, but not creating a download link?

MarkIvanowich avatar Nov 21 '14 05:11 MarkIvanowich

Sounds like something I need to do as well, record a sound and save it to a server. I plan to save the base64 encrypted version to a noSQL database, which I expect should be fairly straight forward, but we should be able to just as easily save the binary file to the server's file system.

geirman avatar Nov 26 '14 17:11 geirman

@geirman,Have you investigated with saving blobs into your database? It may be useful to downsample the recording, or convert to mp3 to save some space. I'd expect encrypting a WAV alone will take some space. I have been able to create some functions that export just the Float32Array containing the PCM data. The downside is keeping track of the sample rate, how many channels, etc.

MarkIvanowich avatar Nov 26 '14 18:11 MarkIvanowich

@MarkIvanowich I've not gotten that far yet, but I'm actively working on it now. This is all new to me, so I'm working through it slowly. If you want to share those functions, I'll play with them and see what I can get going then let you know.

Since I'm saving it as JSON, I'd imagine I could save the meta data (sample rate, number of channels, etc) along with the document... or am I oversimplifying it?

geirman avatar Nov 26 '14 22:11 geirman

bump

bigstas avatar Apr 13 '16 10:04 bigstas