samedi 20 décembre 2014

How can I analyse whether samples match

I am looking to create a program which will recognise a specific door bell sound. The only variable will be the length of the bell sound.


The pitch and volume will stay the same and the microphone will always be the same distance from the sound source.


I am currently recording the audio from my microphone through my raspberry pi using a script like this:



$ arecord -D plughw:io2 --duration=10 -f cd -vv /var/www/audio.mp3 -V stereo




I need a way to differentiate between the doorbell and other noises.


The only method I can think of to notice when the doorbell is being rung is with the pitch and volume. I am not sure whether that would be a good method? But if it is how should I go about analysing the pitch and volume?


For example should I look at the whole audio track and check whether the pitch is ever hit and then if it is, whether the decibels reach the said amount? The only problem I can think of for this method is if there is any excess noise such as rain or someone talking. The pitch will probably change? But the decibels won't?


Also what programming language should I use to do this or could it just be a bash script?


Any help to get me on my way to make a script to notice this action (of a doorbell ring) would be greatly appreciated!


Aucun commentaire:

Enregistrer un commentaire