Is there a something that can detect audio for the app inventor.

418 views
Skip to first unread message

Arjun Pratap Singh Saharan

unread,
Apr 11, 2017, 5:22:16 AM4/11/17
to MIT App Inventor Forum
Hey,

So what I am trying to build is something like a time counter. 

I wish to trigger the clock by a sound. The moment a sound is made the app starts the stopwatch and logs the timing of the next two sounds.

In order to do that I need a sensor for audio/sound which I can't find in the AI. Can anyone help me a hack for the same?

Thanks in advance!
-Arjun

Ghica

unread,
Apr 11, 2017, 8:26:23 AM4/11/17
to MIT App Inventor Forum
The bigger problem you have is that App Inventor cannot run in the background, so unless you want to have your app active all the time, this is a showstopper. And, indeed I think there is no component that will pick up sound by itself.
Cheers, Ghica

Taifun

unread,
Apr 11, 2017, 1:42:22 PM4/11/17
to MIT App Inventor Forum
The moment a sound is made the app starts the stopwatch and logs the timing of the next two sounds.
you might be able to do this using the Sound Analysis extension from Mouhamadou

Multimedia component that analyzes the pitch of a sound through the microphone and returns it. It can be used as an input to different situations, for instance to control some components with a specific sound whistle(pitch > 500Hz) or clap(pitch > 2000Hz).        


Taifun
Reply all
Reply to author
Forward
0 new messages