public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "David D. Hagood" <wowbagger@sktc.net>
To: Thomas Tonino <ttonino@users.sourceforge.net>
Cc: Roy Sigurd Karlsbakk <roy@karlsbakk.net>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [Asterisk] DTMF noise
Date: Thu, 09 Jan 2003 06:42:19 -0600	[thread overview]
Message-ID: <3E1D6E2B.6060504@sktc.net> (raw)
In-Reply-To: <3E1C889F.70303@users.sf.net>

Thomas Tonino wrote:

> The original idea does one better by splitting high and low bands first. 

<snip>

> But it may be more expensive computationally than doing twice the number 
> of Goertzel filters.

Not really - the Goertzel filter is a fairly cheap filter. A filter to 
split the low band frequencies off from the high band, then doing the 8 
Goertzel filters for tone detection burns more MIPS than just doing the 
8 Goertzel filters. Furthurmore, the result is the same - you get the 
energies in the 8 tones.


> Harmonics seem like a bad idea. In between frequencies are better, but 
> using the total band energy must be the most sure way to detect 
> interference.
> 

Not really. The problem with the total energy approach is that the least 
amount of real noise will prevent tone detection, and if you set the 
threshold high enough that white noise does not prevent tone detection 
then you get falsing in voice.

If you have 1mW/Hz of white noise, then that is 2700 mW of noise power 
across the band. With voice, you get one of two types of "noise" - 
either voiced signals with lots of energy at harmonicly related 
frequencies, or unvoiced fricatives ("s", "f") that are basically white 
noise. A voiced signal with a total power of 2000 mW of power and a 
fundemental at one of the tone frequencies might have 1000 mW of power 
at the tone energy, and the remaining 1000 mW on the harmonics. Yet, if 
your noise threshold is set to not be blocked by the white noise case 
(2700 mW of power), then it would accept the voice case (1000 mW of power).

The 16 filter algorithm is the one we use in radio - it lets us pick a 
tone out of a staticy signal without falsing on voice.

It helps to think of looking at the signal on an audio spectrum analyzer 
- a DTMF tone looks like 2 peaks. If the signal in question has more 
than 2 peaks, it isn't DTMF.


  reply	other threads:[~2003-01-09 12:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030107140012$1b66@gated-at.bofh.it>
     [not found] ` <20030107150006$4896@gated-at.bofh.it>
2003-01-07 19:08   ` [Asterisk] DTMF noise Thomas Tonino
2003-01-07 22:46     ` Roy Sigurd Karlsbakk
2003-01-08  7:51       ` Thomas Tonino
2003-01-08 12:43         ` David D. Hagood
2003-01-08 13:04           ` Matti Aarnio
2003-01-08 15:49           ` Wolfgang Fritz
2003-01-08 16:30             ` Wolfgang Fritz
2003-01-08 19:48             ` Andrew McGregor
2003-01-08 22:19             ` Jamie Lokier
2003-01-09 12:51             ` David D. Hagood
2003-01-09 13:31               ` Wolfgang Fritz
2003-01-09 23:32                 ` David D. Hagood
2003-01-10  6:52                   ` Matti Aarnio
2003-01-10 12:42                     ` David D. Hagood
2003-01-10 12:03                 ` Roy Sigurd Karlsbakk
2003-01-08 20:22           ` Thomas Tonino
2003-01-09 12:42             ` David D. Hagood [this message]
2003-01-07 13:55 Roy Sigurd Karlsbakk
2003-01-07 14:49 ` [Asterisk] " Mark Spencer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E1D6E2B.6060504@sktc.net \
    --to=wowbagger@sktc.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roy@karlsbakk.net \
    --cc=ttonino@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox