DTMFkit

Introduction

DTMFkit is an application which decodes or encodes DTMF tones through a sound card (or possibly other DSP) interface.

Requirements

Download

dtmfkit-0.20.tar.gz

Compiling

Ideally, you should be able to just type:

make

and optionally:

make install

You may need to modify the Makefile to meet your particular system's needs.

Usage

Usage: dtmfkit [OPTIONS]

Generic Options
----------
  -d,  --device       Set device
                      Default: /dev/dsp
  -b,  --bits         Set device bits (8 or 16)
                      Default: 8
  -c,  --channels     Set device channels (1 or 2)
                      Default: 1
  -s,  --sample-rate  Set device sample rate
                      Default: 8000
  -S,  --set-ioctl    Sets ioctls for device
  -V,  --verbose      Verbose mode
  -h,  --help         Show help and exit
  -v,  --version      Show version and exit

Decoder Options
----------
  -D,  --decode       Decode DTMF tones (default)
  -p,  --percent      Set the sensitivity of decoder
                      (1-99: higher = more sensitive)
                      Default: 10
  -r,  --reqtwo       Require two tone detections
  -u,  --dupes        Print dupes
  -n,  --newline      Print newlines
  -P,  --pauses       Print pauses
  -w,  --widefreq     Wide frequencies

Encoder Options
----------
  -E,  --encode       Encode DTMF tones
                      (eg. --encode "12125551212")
  -l,  --length       Set encoder DTMF tone duration

Encode example:

$ ./dtmfkit -E 1,212,555,1212 -S

Decode example:

$ ./dtmfkit -D -S
12125551212

See README for a more detailed explanation of command-line options.

Last update: 2006-10-15