Skip to main content
Participant
March 29, 2007
Question

Showing sound levels on audio record

  • March 29, 2007
  • 2 replies
  • 696 views
Hi --

I am recording an audio stream from the microphone and wanted to know if there is a way to show the sound levels of the audio from the mic in a graphical display?
    This topic has been closed for replies.

    2 replies

    MrLooferAuthor
    Participant
    March 30, 2007
    Thanks Shack -- that worked great! Also, do you know how to prevent the FLV being written compressing using VB6? I'm trying to extract the audio from the FLV to a WAV file but not having much luck with most of the conversion tools out there. Apparently it's becuase it's compressing using VB6.

    Thanks again!
    March 30, 2007
    MrLoofer,

    Download SUPER converter from net. It converts all file format specially from .flv to any other format.

    I've tried and it's really super.

    fguru
    MrLooferAuthor
    Participant
    March 31, 2007
    Yeah... long time Super fan here too, however even with the FLVSplitter plugin it still doesnt convert. I've tried every converter under the sun. Funnily enough, the online flv converter tool flv2mp3 works fine!
    March 29, 2007
    MrLoofer,
    The client that publishes the mic can use Mic.activityLevel to set a graphical representation of the mic level.

    Make a graph bar movieClip that spans from 0 to 100 keyframes and apply a shape tween.

    Enter the following on the __micMeter movieClip

    this.onEnterFrame = function() {
    if(this.owner.__mic.activityLevel == 0)
    {
    bar.gotoAndStop(0);
    } else {
    bar.gotoAndStop(this.owner.__mic.activityLevel);
    }
    }

    __mic is the Mic object you created.
    owner is the reference to the graph movieclips owner object.

    var __mic:Microphone = Microphone.get();
    var __micMeter:MovieClip;
    __micMeter["owner"] = this;

    This will move the meter when the mic broadcasts. Now, a client playing the audio has no access to Mic.activityLevel, so you would have to use NetStream.send(__mic.activityLevel) to their __micMeter.

    HTH,
    Shack