Netstream As sound only?
I'm trying to put the sound coming from a netstream into a Sound variable so I can visualize it like in this tutorial. Adobe ActionScript 3.0 * Accessing raw sound data
Problem is, search results only find how to attach a video to a video object, and not a sound object.
private function handleAccept(e:MouseEvent):void
{
myNS.attachAudio(Microphone.getEnhancedMicrophone(0));
myNS.publish("audio");
var s:Sound = new Sound(theirNS.play("audio"));//??
s.play();
//Custom tranformation ahead..
}

To be able to use
SoundMixer.computeSpectrum()with the audio of an RTMP stream, you should start by enabling the access to the audio raw data in the server side like this :For Adobe / Flash Media Server ( AMS / FMS ) :
Application.xml :
or using Main.asc :
For Wowza Media Server :
Application.xml :
For RED5 :
red5-web.xml :
Then you have just to play your stream as you did usually and for the graphic representation of the sound wave data, you can use, for example, the example code available in the documentation page of
SoundMixer.computeSpectrum():samplehere is anFLVvideo file provided with AMS / FMS. You can of course use any kind of supported video or audio files ( MP4, MP3, ... ).The above code gives you something like this :
Hope that can help.