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 ?
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.