tonegen.c

Introduction

Generates single, dual, or Touch Tone(tm) tones.

Requirements

Download

tonegen.c (v0.1)

Compiling

cc tonegen.c -o tonegen -lm

Usage

./tonegen [OPTIONS]
-a   Specify a string of Touch Tone numbers
-b   Specify number of bits (default 8)
-c   Specify number of channels (default 1)
-d   Specify sound card device (default /dev/dsp)
-f   Specify frequencies (one, two, or Touch Tone)
     eg. -f 2600 (or) -f 1100,1700 (or) -f T1
     Special T tones: R: ring  S: busy  T: dial
-h   Show help and exit
-l   Specify length of tone (in miliseconds)
-m   Match tonegen settings to sound card (closest supported match)
-r   Specify sample rate (default 8000)
-s   Silent
-v   Show version and exit

Example:

./tonegen -m -a 9,18005551212

-or-

./tonegen -m -f 2600

Last update: 2005-01-30