make Arduino work on vocie ?

Hello
I would like to be able to light led on\off using 2 sounds
for example:
if my dog bake it will light led1
if my cat make a miaow Led2 will be light

I want to think it easier then make it work by word , no?

Thanks,

It is unlikely that an Arduino could do this. Your dog's bark and cat's miaow have rather complex forms, and repetitions of them will not be the same. Furthermore, the ambient noises in your environment might sometimes mimic the bark or miaow.

A lot more signal processing and memory, not to mention technical expertise, is needed for this. At the least, I think you would have to resolve frequencies up to 5Khz. That requires 10 KHz or higher sampling rate. An ADC reading on most Arduino products requires 100+ microseconds. 100x10000 = 1 million microseconds, so you have used up all your processing time with sampling, and none is left for any other activity.

That being said, I have designed Arduino-based systems that recognised specific frequencies, but that is a lot simpler than recognising complex signals.

jrdoner:
It is unlikely that an Arduino could do this. Your dog's bark and cat's miaow have rather complex forms, and repetitions of them will not be the same. Furthermore, the ambient noises in your environment might sometimes mimic the bark or miaow.

A lot more signal processing and memory, not to mention technical expertise, is needed for this. At the least, I think you would have to resolve frequencies up to 5Khz. That requires 10 KHz or higher sampling rate. An ADC reading on most Arduino products requires 100+ microseconds. 100x10000 = 1 million microseconds, so you have used up all your processing time with sampling, and none is left for any other activity.

That being said, I have designed Arduino-based systems that recognised specific frequencies, but that is a lot simpler than recognising complex signals.

Even if there was enough time, where would one store 10k of samples?

o.k.
let say I know the freq of the sound I want
how can I continue from there?
is there any way to test and get from the Arduino the freq?
so if I will play a sound for 2-3 seconds and then it will tell me the main Freq?

Thanks,

david1234:
so if I will play a sound for 2-3 seconds and then it will tell me the main Freq?

Does this mean you have given up on cats and dogs?

...R

:slight_smile:
the cats&dogs where just to explain what I wanted

so ..... is there any way to read the frequency from the sound ?

Thanks ,