I am working on getting audio recorded directly in browser and POSTed to a webserver. I am currently relying on flash to access the user microphone (using code derived from https://code.google.com/p/wami-recorder/) and passing the recorded Wav/pcm blob from flash to JS for upload (using XHR post). This works fine, but I am trying to avoid sending uncompressed WAV data (I can compress the audio on the server, but I am trying to limit CPU intensive work there).
Options I have found so far to compress to ogg on client side include:
relying on lab features of flash to compress the audio to ogg (labs.byhook.com/2011/02/15/ogg-vorbis-encoder-for-flash-alchemy-series-part-1/). Since it is an experimental feature in flash, it's risky to rely on it.
a few other browser specific solutions such as http://firefogg.org which require substantial user-side install to work, which I don't want.
I'm looking for a better option to solve this issue, if such an option exists. I am obviously waiting for html5 getUserMedia() to work, but I need a solution in the meantime that works cross-browser (not necessarily 100%, but at least on major/recent browsers).
preguntado el 09 de marzo de 12 a las 14:03