Page 1 of 1

Best way to compare sound from mic

Posted: Thu Jan 05, 2017 1:50 pm
by testboard
Hi
Need compare sound from mic, example: knock to window turn on led, if knock to door turn on another led. It is dificult to create with raspberry ?
Any idea ?

Re: Best way to compare sound from mic

Posted: Thu Jan 05, 2017 3:03 pm
by Gert van Loo
You have two problems:
1/ Recording the sound
2/ Analysing the sound.
As for (1): The Pi has no direct recording capabilities but the issue of sound recording has been asked many times. I suggest you look at some of the appropriate subjects.
For (2): I would apply Fast Fourier transformation on the sound to convert from
the time domain to the frequency domain and then have a look at the major differences
between the frequencies present in two types of sound.

Re: Best way to compare sound from mic

Posted: Thu Jan 05, 2017 4:16 pm
by testboard
Thank's for reaplay men ;)
Maybe you see somewhere project like this ? Whrite from zero, to me its mission impossible :(