9/21/2010 11:32:23 PM
Title:
Spectrum of Receiving Live Audio
Hello Friends..
I have a question, i am receiving an audio stream of a person. My stream name is receiveStream.
Now i have to show its audio spectrum. I have tried from a local file (eg: "abc.mp3") and achieved that. Now the problem is for live streaming (using netstream).
What can i do for this. Please help me out from this ASAP.
Here's the receiving code :
private function receiveAudio(stream:String):void{
receiveStream = new NetStream(fmsConnection);
receiveStream.play(streamName,-1);
receiveStream.addEventListener(NetStatusEvent.NET_STATUS,receiveStreamStatus);
receiveStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR,receiveAsyncErr);
}
Thanks in Advance
Kiney
Points: 600
Posts:0
9/24/2010 5:17:24 AM
interesting question , I also worked on this some time ago but no success, There are many examples online but none is with the live audio. I am using RED5 server . Please let me know if you find any solution.
this should work but , not working with me
var myByteArr:ByteArray = new ByteArray();
SoundMixer.computeSpectrum(bytes, true, 0);
9/28/2010 11:07:52 PM
any success with you guys, I also need the create equalizer from live audio, have smashed my head but got no clue.