View Full Version : microphone waveform data

01-29-2009, 03:45 AM
I'm trying to write an application using flex and actionscript where a user speaks into a microphone and as they speak into the microphone the waveform of the sound wave is dynamically displayed. I want the user to be able to see the waveform they are creating while they are creating it. If anyone knows how this might be possible, please let me know. I know about the microphone class in flash.media but it doesn't give you direct access to the waveform data. The soundmixer class can give you access to the waveform information using the computeSpectrum() method but only for sound coming from the server. I want everything to run on the client side because I want as little lag time between the user speech and displaying the waveform as possible.

01-29-2009, 10:53 AM
I don't think Flash can do this, because this is a rather intensive process. Far as I know, it can't be done in Flash as of now.

Perhaps you can record each second or two of sound into different clips, send them to the server to be processed and then display? It wouldn't be a smooth display, but you could make it work perhaps.