LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Thread Tools
Old 08-03-2005, 01:05 PM   #1
jspenguin
Member
 
Registered: Feb 2003
Location: Wichita, KS
Distribution: Heavily modified Redhat
Posts: 194
Thanked: 0
DTMF detection


[Log in to get rid of this advertisement]
I am writing a simple answering machine program and I need an algorithm to detect DTMF (dual-tone multifrequency) tones. I have a simple frequency detection algorithm, but it only works on single frequencies.
jspenguin is offline     Reply With Quote
Old 08-03-2005, 05:59 PM   #2
Amadaeus09
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware
Posts: 4
Thanked: 0
One approach is to include a Fast Fourier Transform (FFT) library to attach magnitude-of-presence to each frequency, then pay attention only to the 2 largest magnitudes.

Another, more efficient approach is to use the Goertzel Algorithm:
http://ptolemy.eecs.berkeley.edu/pap...www/node3.html


Last edited by Amadaeus09; 08-04-2005 at 12:54 AM..
Amadaeus09 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OS Detection ilnli Linux - General 2 01-08-2005 02:36 AM
sniffer detection? groovin Linux - Security 2 04-14-2004 01:58 PM
Modem detection Darkhlmt32 Linux - Hardware 3 10-12-2003 12:31 PM
linmodem (Dell Inspiron 2100) with SmartLink (slmdm 2.7.14) generate ERROR DTMF ¨6¨ makutpong Linux - Security 1 07-22-2003 04:53 PM
linmodem (Dell Inspiron 2100) with SmartLink (slmdm 2.7.14) generate ERROR ´6´ DTMF makutpong Linux - Networking 0 07-22-2003 04:52 AM


All times are GMT -5. The time now is 08:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration