testboard
Posts: 2
Joined: Thu Jan 05, 2017 1:42 pm

Best way to compare sound from mic

Thu Jan 05, 2017 1:50 pm

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 ?

User avatar
Gert van Loo
Posts: 2487
Joined: Tue Aug 02, 2011 7:27 am
Contact: Website

Re: Best way to compare sound from mic

Thu Jan 05, 2017 3:03 pm

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.

testboard
Posts: 2
Joined: Thu Jan 05, 2017 1:42 pm

Re: Best way to compare sound from mic

Thu Jan 05, 2017 4:16 pm

Thank's for reaplay men ;)
Maybe you see somewhere project like this ? Whrite from zero, to me its mission impossible :(

Return to “Beginners”