- Home /
Question by
Alp-Giray-Savrum · Jul 30, 2016 at 12:01 PM ·
soundmicrophonedevicecontrollersmechanics
Is it possible to detect sound from microphone ?
I've been thinking a different control mechanism for my game,
When player taps at back side of phone, It'll call a function.
But i need to understand how can i compare sounds or check if it's same
Comment
Answer by ericbegue · Jul 30, 2016 at 05:11 PM
You can record the sound from the microphone. See Microphone.Start, there is an example of how to acquire an audio record into a clip.
Once you've obtain a clip, you can read and analyse the recorded data, see AudioClip.
So you would need to apply signal processing and/or pattern recognition to detect the sound you are looking for.
This is just a lead; analyzing sound is a broad topic.