Go Back   Home > Forums > Source & Line > Digital Line Level
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Digital Line Level DACs, Digital Crossovers, Equalizers, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 13th May 2013, 07:51 AM   #1
yolco is offline yolco  Spain
diyAudio Member
 
Join Date: May 2013
Default Filtering Specific Audio

Hi,

I have some doubts about how to implement a solution for the app that I explain below:
  • I want to filter specific audio sounds (truck, trumpet...) with an arduino and a microphone (amplifier + microphone).
  • The main idea is taking samples for a short time (a few seconds), analyze the sound in frequency, and know if it is from an audio source or another.
  • I have characterized my target sounds in three frequencial components (Hz), with their amplitude (dB). And I only want to compare the sound measured with these components but I can't split them from audio samples I have taken.

I read about doing it with 'ffft' library, but for the moment I don't know how to implement it. Could someone tell me how to do it?

Is there another solution for this app?

Regards.
  Reply With Quote
Old 13th May 2013, 08:36 AM   #2
diyAudio Member
 
s3tup's Avatar
 
Join Date: Dec 2004
Location: Israel
Arduino won't do, you need some hefty CPU.
Then you want to continuously FFT the signal (realtime), match it to the patterns stored (with frequency offsets and level matched), compare the normalized FFTs of microphone sound versus stored "samples" (at least one sample per sound you'd like to recognize), decide which of which matches best at which severity...

Same thing goes with picture recognition as well as some old studies on voice recognition...
These subjects are well-known and the methods are documented - learn DSP, FFT, and follow to the image/voice recognition techniques.
__________________
The missing link between lead and gold in alchemist's world was BS and commerce.
  Reply With Quote
Old 13th May 2013, 02:07 PM   #3
qusp is online now qusp  Australia
is choosing a less facetious title...
diyAudio Member
 
qusp's Avatar
 
Join Date: Oct 2009
Location: Brisbane, Australia
nah, I reckon a beaglebone black would do, but agree its probably a bit much to ask of an arduino
  Reply With Quote
Old 13th May 2013, 02:45 PM   #4
diyAudio Member
 
s3tup's Avatar
 
Join Date: Dec 2004
Location: Israel
Depends on the language you use - it's either fast writing and slow code or slooooow writing and code which speed will quite depend on your coding skills

Doing a FFT with tiny window size, on lowish sample rate will help to speed things up...
Could be fitted to almost any okayish CPU.

I'd go for android OS (if portable is must) - the hardware is already there, with a nice screen and fast CPU.
Cheap.
Cute lookink.
__________________
The missing link between lead and gold in alchemist's world was BS and commerce.
  Reply With Quote
Old 13th May 2013, 04:29 PM   #5
qusp is online now qusp  Australia
is choosing a less facetious title...
diyAudio Member
 
qusp's Avatar
 
Join Date: Oct 2009
Location: Brisbane, Australia
depends, would you be able to leverage the GPU for FFT? the BB black also has 512mb DDR3 and 2gb of onboard eMMC. got one on the way for glorified MCU and Xbee wifi/network receiver for a small network of 6 balanced amps and 3 stereo balanced ESS dacs.

I wont use it for much processing, the crossover and convolution will still be done on my i5 mac mini and the result bounced over the network and output by USB. thats the plan anyway, I may not send the signal via it at all, just use it for housekeeping, power switching/sequencing.
  Reply With Quote
Old 14th May 2013, 07:53 AM   #6
yolco is offline yolco  Spain
diyAudio Member
 
Join Date: May 2013
Hi,

thanks everyone!

There's FFT library for arduino.
My doubt is how can I read, save and compare the sound measured with a 'pre-defined' one.

I know there are several best options for doing this task, but I want to try doing it with Arduino. I'm not looking for doing a perfect system, only one which allow me to compare sounds and give a positive detection if sound is similar.

I know there are a lot of parameters to take in mind, but for this application I want to abstract the most I can from them.

Regards.
  Reply With Quote
Old 15th May 2013, 11:13 AM   #7
deanoUK is offline deanoUK  United Kingdom
diyAudio Member
 
Join Date: Oct 2008
Location: Birmingham UK
Hi Yolco,
I would suggest (assuming you already have one ) a PC or MAC .
This will give you ample processing power and provides the audio I/O, at no extra cost.
Add a free C/C++ complier and you are ready to go.
Use this for proof of concept and then spend money on dedicated hardware if you choose to move forward.
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Specific Help with Set-Up subhelp Subwoofers 5 16th September 2011 04:30 PM
Looking for specific pot moriendi Parts 2 5th May 2010 08:01 PM
Fostex for my specific needs. Highef Full Range 32 13th October 2009 05:45 PM
Audio filtering with brutefir soundcheck Digital Source 2 16th November 2007 11:31 AM
Why can't authors be specific? Jennice Everything Else 4 25th January 2005 11:56 AM


New To Site? Need Help?

All times are GMT. The time now is 06:54 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2013 DragonByte Technologies Ltd. (Resources saved on this page: MySQL 30.00%)
Copyright ©1999-2013 diyAudio