Skip to content

milo-trujillo/DTMFGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DTMF Tone Generator

Makes DTMF tones and saves them to a wave file. Maybe useful for phone phreaking in the 60s or 70s, now it's pretty much a novelty. You can test that it works by submitting your wave file for testing.

Usage

./tone.rb [options] <digits> <outputfile>
	-p, --pause PAUSE             Sets delay between each tone (in seconds)
	-v, --volume VOLUME           Sets volume between 0 (silent) and 1 (max)
	-h, --help                    Displays this usage message
	<digits>                      Specifies digit tones to emulate
	<outputfile>                  Specifies name of output wave file

For example, to generate the noise of dialing "1234":

tone.rb 1234 dialing.wav

To do the same with a tenth of a second delay instead of our default half a second, and with twice the default volume of 0.3:

tone.rb -p 0.1 -v 0.6 1234 dialing.wav

Dependencies

We make heavy use of the wavefile ruby gem. Everything is in pure ruby, nothing else is needed.

About

Makes DTMF tones and saves it to a wave file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages