2002-02-08 04:36:18 +03:00
|
|
|
.\" $NetBSD: dtmfdecode.1,v 1.3 2002/02/08 01:38:48 ross Exp $
|
2001-01-06 16:00:10 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1999 Hellmuth Michaelis. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
2002-02-08 04:36:18 +03:00
|
|
|
.\" $Id: dtmfdecode.1,v 1.3 2002/02/08 01:38:48 ross Exp $
|
2001-01-06 16:00:10 +03:00
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.\" last edit-date: [Mon Dec 13 22:53:13 1999]
|
|
|
|
.\"
|
|
|
|
.\"
|
2001-04-09 17:21:45 +04:00
|
|
|
.Dd February 15, 1999
|
2001-01-06 16:00:10 +03:00
|
|
|
.Dt DTMFDECODE 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm dtmfdecode
|
|
|
|
.Nd decodes DTMF tones from A-law audio data
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Sh DESCRIPTION
|
2001-04-09 17:21:45 +04:00
|
|
|
.Nm
|
2001-01-06 16:00:10 +03:00
|
|
|
is part of the isdn4bsd package and is used to detect DTMF tones in the
|
|
|
|
audio stream.
|
|
|
|
.Pp
|
|
|
|
It reads audio G.711 A-Law coded data from stdin and outputs the detected
|
|
|
|
numbers values as ASCII charcters to stdout.
|
|
|
|
.Pp
|
|
|
|
The detector is implemented as 8 narrow band-pass filters realized with
|
2001-04-09 17:21:45 +04:00
|
|
|
an integer double-cross recursive algorithm. Various ad-hoc methods are
|
2001-01-06 16:00:10 +03:00
|
|
|
employed to provide hysteresis and anti-bounce for the detected signals.
|
|
|
|
.Sh EXAMPLES
|
|
|
|
The command:
|
|
|
|
.Bd -literal -offset indent
|
2002-02-08 04:36:18 +03:00
|
|
|
dtmfdecode \*[Lt] beep.al
|
2001-01-06 16:00:10 +03:00
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
will print a "1" to stdout.
|
|
|
|
.Sh STANDARDS
|
|
|
|
ITU Recommendations G.711
|
2001-04-09 17:21:45 +04:00
|
|
|
.Sh AUTHORS
|
2001-01-06 16:00:10 +03:00
|
|
|
The
|
|
|
|
.Nm
|
2001-04-09 17:21:45 +04:00
|
|
|
utility was written by
|
2001-01-06 16:00:10 +03:00
|
|
|
.An Poul-Henning Kamp Aq phk@freebsd.org .
|
2001-04-09 17:21:45 +04:00
|
|
|
This man page was written by
|
2001-01-06 16:00:10 +03:00
|
|
|
.An Hellmuth Michaelis Aq hm@freebsd.org .
|