views:

45

answers:

1

Hi all, i was wondering if it is possible to mix different audio files and export them into an mp3 file for the end user to download to his computer.

Actually, I know it can be done because they do it in various sites (http://aviary.com/tools/Myna , looplabs , audiotool , remixgalaxy the last 3 ones are dot coms, but I can't post them because I'm new), I just need help on how to do it.

I have the mixing part pretty much covered. My problem is with exporting the file to an mp3. I imagine that some external progamming language might be required, but I couldn't find an answer on Google... Php is my prefered language, but I'm willing to learn another one if it's not possible with PHP.

Any ideas?

Thanks!!

A: 

If it were me, I'd use the ogg library built with Alchemy. In a similar manner to playing files back, buffer by buffer, I'd render down to ogg and then save it directly to the users disk with the Flash 10 FileReference class.

I'm not aware of a suitable MP3 encoder that runs on AVM2, but if you really need that feature this might be a place to start your hunt. If that turns nothing up, perhaps uploading the ogg you render and converting it on a server with some command line tool would be the most timely workaround.

Ben