After much frustration and searching high and low how to use the mega cool computeSpectrum method with Microphone input I’ve found it’s not possible. I actually found that out that this probably wasn’t going to be possible quite early in my search but didn’t want to accept this was the case… how could Adobe deny us the possibilities that this would open up!?
This article on Adobe live docs gave me the official bad news.
The closest I found to someone actually pulling this off was the flashliveaudiocontroller but as far as I can tell you can only run this on your local machine, not deployed across the web. Still, it’s kinda cool playing pong using your voice.
*Oh my goodness! a wonderful article dude. Regards However am experiencing trouble with ur rss .
yea nice Work. Thank you for posting this, Its just what I was browsing on bing. Id very much rather hear opinions from an individual, rather than a corporate web page, thats why I like blogs so much. Thanks! Agreeable : ) A lot more.
Hi Mark,
Thanks for the confirmation. You’ve saved me a lot of time. It seems that Adobe should make Microphone.setLoopBack(true) return a Sound or SoundChannel object to the SoundMixer, or at least allow something similar. I agree, it’s quite frustrating.
All the best,
Matt
Lets all vote on a feature request to get computeSpectrum to work with the microphone: https://bugs.adobe.com/jira/browse/FP-4592
I have a working implementation of this : http://testings.resistcorp.org/flash_mic/testP2P.html the problem is that it has many limitations.
It is based on sending the mic data to oneself via Adobe Stratus p2p, and sending a hacking message mySenderStream.send(”|RtmpSampleAccess”, true, true);
from then your mic is computeSpectrum – available… TADAAA!
I’m working on a solution for this. I will post it on my blog soon (still working on it). We wanted to use this for a VJ setup with Flash animations that react to beats etc, and also found out it wasn’t possible. But like I said, we’re working on a workaround.
Thanks for the link to flashliveaudiocontroller, but aren’t they just measuring the volume?
Thanks for the link