TOAST(1) | General Commands Manual | TOAST(1) |
toast — GSM 06.10 lossy sound compression
toast [ -cdfpvhualsFC ] [ filename... ]
untoast [ -cfpvhuaslF ] [ filename... ]
tcat [ -vhuaslF ] [ filename... ]
Toast compresses the sound files given on its command line. Each file is replaced by a file with the extension .gsm . If no files are specified, the compression is applied to the standard input, and its result is written to standard output.
Toasted files can be restored to something not quite unlike their original form by running toast -d , or untoast , on the .gsm-files or standard input.
The program tcat (the same as running untoast -c ) uncompresses its input on standard output, but leaves the compressed .gsm-files alone.
When files are compressed or uncompressed into other files, the ownership (if run by root), modes, accessed and modified times are maintained between both versions.
Toast, untoast and tcat try to guess the appropriate audio data
format from the file suffix. Command line options can also specify a format
to be used for all files.
The following formats are supported:
In absence of options or suffixes to specify a format, μU-law encoding as forced by -u is assumed.
A four bit magic number is prefixed to each 32 1/2-byte GSM frame, mainly because 32 1/2-bytes are rather clumsy to handle.
The compression algorithm used is a lossy compression algorithm devised especially for speech; on no account should it be used for text, pictures or any other non-speech-data you consider valuable.
Please direct bug reports to jutta@pobox.com and cabo@tzi.org.
local |