cwilso / AudioRecorder

Simple live audio file recorder, based on RecorderJS
MIT License
421 stars 168 forks source link

How to save it on server instead download ? #24

Open vwebtech opened 6 years ago

vwebtech commented 6 years ago

Hi buddy . you did great job already. I am new to this , can you please help me how i can save the audio file directly to the server. I know you will have batter solution guys.

Thanks.

HarshRookie commented 6 years ago

@vwebtech Did you get the solution? If yes, please can you share it?

axew3 commented 6 years ago

@HarshRookie @vwebtech You need to grab the stream, and pass it via an XHR post request to some Php file/script (if using php as server side language). I will put an example as i can if no body else done it. On a script i've prepare, it for convenience convert the stereo wav in mono, so the resulting wav is suitable also to be passed to google speech api (for example).

rmalav15 commented 6 years ago

Hey @axew3, Can you please share the example? If you have completed it.

Much Thanks

axew3 commented 6 years ago

Yes. It is here: https://github.com/axew3/monowaw-AudioRecorder This is very basic, but working example, that of course need to be executed into a server where Php is running on.