Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to make a voice activated animation?

New Here ,
May 14, 2013 May 14, 2013

Dear adobe gods,

Is it possible to make a voice activated animation by using a microphone?

I want to make a character wave if the user speaks in the microphone. I have browsed the adobe forum and now

I know that the micophone class has a SampleDataEvent and that i can use SAMPLE_DATA event to trigger a listner function.

My knowledge is not that big when it comes to coding, could someone point me to a tutorial to clear things up?

Thank you so much



TOPICS
ActionScript
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 14, 2013 May 14, 2013
LATEST

you should probably use an activityevent:

var mic:Microphone = Microphone.getMicrophone();

mic.addEventListener(ActivityEvent.ACTIVITY, micF);

function micF(e:ActivityEvent):void {

if(mic.activityLevel>40){

your_mc.play();

} else {

your_mc.stop();

}

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines