DTMF

A simple DTMF generator

Function

Generates an audio file with DTMF tones and generic dual-tone and single-tone sinewaves according to the specs. Based on dtmf.c downloaded somewhere from the Net, widely rewritten.

Tone list from White Box

Usage: dtmf  > /dev/dsp
Produces 8000 Hz/8 bit audio sample of required DTMF tones.
Tone characters: 0123456789ABCD*#
Meta characters and commands:
  , - pause for one digit dial time
  [D=] - set duration of tone to 
  [P=] - set pause between tones to 
  [D=D] - set duration of tone to default (800 samples)
  [P=D] - set pause between tones to default (400 samples)
  [P,] - pause for 
  [] - beep tone 
  [,] - beep tone  for 
  [] - beep tone of  Hz
  [,] - beep tone of  Hz for 
  [:,] - beep dual tone of : Hz for 
   can be a number of samples (eg. 8000), number of seconds (eg. 2s),
        or number of milliseconds (eg. 200ms).
Example:
  dtmf 123,45[P,2s][2600,1250ms]5551234 - dial 123, pause, dial 45,
    pause two seconds, output 1.25 seconds of 2600 Hz tone, dial 555-1234
  dtmf [SERVO,10s]234[P,1s][TASI,1s][P,1s][MF1][MF3][MF4][MF2] - send 
    SERVICE_OBSERVING for 10 seconds, dial 234 in DTMF, wait for one sec,
    send TASI tone for one sec, wait for one sec, dial 1342 in MF
  dtmf tones - displays the list of named tones and their frequencies

Files

dtmf.c - C source
dtmf - Linux ELF binary
Makefile
dtmf.tar.gz - all the above