web-audio-editor icon indicating copy to clipboard operation
web-audio-editor copied to clipboard

Export audio file?

Open praneybehl opened this issue 10 years ago • 4 comments

Hi mate, Great effort, just wondering if there is an option to export the final audio as mp3/wav?

Appreciate your help. Cheers!

praneybehl avatar May 01 '15 01:05 praneybehl

Hi, unfortunately there is not such feature implemented. I wanted to add it, as the app itself is quite useless without this option, however, I'm quite busy with work related tasks all the time.

I found this http://stackoverflow.com/questions/16969201/web-audio-api-scheduling-sounds-and-exporting-the-mix which might be the way to go.

janmyler avatar May 04 '15 18:05 janmyler

@janmyler There's a library for exporting to wav (which I've used here) and a somewhat hackily converted version for mp3 (which does seem to work but might be incredibly slow for longer tracks)

1j01 avatar Sep 03 '15 04:09 1j01

Feel free to take export.coffee from my audio editor, compile it online and drop it into your project (along with the workers). From there, usage is simple:

var number_of_channels = 2;
var oactx = new OfflineAudioContext(number_of_channels, sample_rate * length, sample_rate);

start_playing(from_position, oactx);

oactx.startRendering().then(function(rendered_audio_buffer) {
    export_audio_buffer_as(rendered_audio_buffer, file_type);
});

1j01 avatar Dec 15 '15 23:12 1j01

I am finding difficulties to save the project in DB and re render as it is saved , is it possible with it , then what is the idea to be used ?

niyazhussain avatar Feb 04 '16 09:02 niyazhussain