# Control Flash w/ Realtime Sound?

**URL:** <https://forum.kirupa.com/t/control-flash-w-realtime-sound/263924>\
**Category:** flash\
**Created:** [June 20, 2008, 2:25pm UTC](https://forum.kirupa.com/t/control-flash-w-realtime-sound/263924 "2008-06-20T14:25:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Persistent1](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@Persistent1](https://forum.kirupa.com/u/Persistent1)\
**Post date:** [June 20, 2008, 2:25pm UTC](https://forum.kirupa.com/t/control-flash-w-realtime-sound/263924/1 "2008-06-20T14:25:03Z")

</div>

Hi folks,

I was curious if anyone knows of any experiments or API’s out there that would allow a user to control flash interaction/display etc…via voice or sound commands in realtime with their cell phone?

Let me know. Any help is greatly appreciated. :cool:

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [June 20, 2008, 3:16pm UTC](https://forum.kirupa.com/t/control-flash-w-realtime-sound/263924/2 "2008-06-20T15:16:30Z")

</div>

The short answer is probably no. You could conceivably use the activity level of the mic in AS to control a cursor as per this example:

> **[possible to use setinterval to control this script?](https://www.kirupa.com/forum/showthread.php?t=301022)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

However, the Microphone object may not be available in Flashlite (the version of Flash that’s geared towards mobile phones). Besides which, encouraging people to bellow even louder into their mobile phone probably isn’t the best idea in the world!

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 20, 2008, 3:19pm UTC](https://forum.kirupa.com/t/control-flash-w-realtime-sound/263924/3 "2008-06-20T15:19:21Z")

</div>

it should be though… another thing I have no idea how to code

---

<div class="post-metadata">

**Author:** ![Persistent1](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@Persistent1](https://forum.kirupa.com/u/Persistent1)\
**Post date:** [June 20, 2008, 3:21pm UTC](https://forum.kirupa.com/t/control-flash-w-realtime-sound/263924/4 "2008-06-20T15:21:36Z")

</div>

Hi glosrfc.

Let me see if I can clarify.

Ideally looking to build an online experience where site visitors would blow into handset and in return, invoke some sort of animation on the site in realtime simulating the experience of say “blowing out a candle.” - that harder and more one blows, the faster the animation occurs and so on.

Does this help clear up my question and intent? Still don’t think it’s possible?

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [June 20, 2008, 3:28pm UTC](https://forum.kirupa.com/t/control-flash-w-realtime-sound/263924/5 "2008-06-20T15:28:27Z")

</div>

Yes, that’s entirely possible using code almost identical to the link I posted. Instead of changing the \_x position of the movieclip you could change the \_x and \_y scales of, for example, a flame movieclip.

However I’m pretty sure that you can’t access the Microphone object with Flashlite 1.0 or 2.0 so a cell phone is out of the question. Flash Lite 3.0 might be doable though

---

<div class="post-metadata">

**Author:** ![Persistent1](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@Persistent1](https://forum.kirupa.com/u/Persistent1)\
**Post date:** [June 20, 2008, 3:38pm UTC](https://forum.kirupa.com/t/control-flash-w-realtime-sound/263924/6 "2008-06-20T15:38:35Z")

</div>

OK, cool…

I guess I’m just not clear on why we necesarily have to use flashlit on the mobile device and not just use a webservice of some sorts to pass the variables to the website?

Do you know of any such services? I’m aware of oddcast’s Text-to-speech products and such but not certain this capacity would be doable with there tool sets.

Thanks again for your help.

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [June 20, 2008, 3:46pm UTC](https://forum.kirupa.com/t/control-flash-w-realtime-sound/263924/7 "2008-06-20T15:46:38Z")

</div>

Here’s a useful tut:  
[http://www.kirupa.com/developer/actionscript/microphone.htm](http://www.kirupa.com/developer/actionscript/microphone.htm)

The reason for Flash Lite is because the processing capabilities of most mobiles is much lower than that of PCs.

---

<div class="post-metadata">

**Author:** ![Persistent1](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@Persistent1](https://forum.kirupa.com/u/Persistent1)\
**Post date:** [June 20, 2008, 3:53pm UTC](https://forum.kirupa.com/t/control-flash-w-realtime-sound/263924/8 "2008-06-20T15:53:48Z")

</div>

Ok, thanks again. I will look into this and flash lite further.
