MAN page from RedHat EL 4 gsm-1.0.10-6.el4.rf.x86_64.rpm
Section: User Commands (1)
toast --- GSM 06.10 lossy sound compression
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 thestandard input, and its result is written to standard output.
Toasted files can be restored to something not quite unliketheir original form by running toast-d, or untoast, on the .gsm-files or standard input.
The program tcat(the same as runninguntoast -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 timesare maintained between both versions.
- (cat)Write to the standard output; no files are changed.
- (decode)Decode, rather than encode, the files.
- (force)Force replacement of output files if they exist.If -f is omitted and toast (or untoast) is run interactively froma terminal, the user is prompted as to whether the file should be replaced.
- (precious)Do not delete the source files.Source files are implicitly left alone whenever -c isspecified or tcat is run.
- (LTP cut-off)Ignore most sample values when calculating the GSM long-termcorrelation lag during encoding.(The multiplications that do this are a bottleneckof the algorithm.)The resulting encoding process will not produceexactly the same results as GSM 06.10 would,but remains close enough to be compatible.
The-Coption applies only to the encoder and is silentlyignored by the decoder.
- (fast)On systems with a floating point processor, but withouta multiplication instruction, -F sacrifices standard conformance toperformance and nearly doubles the speed of the algorithm.
The resulting encoding and decoding process will not produceexactly the same results as GSM 06.10 would, but remains closeenough to be compatible.
The default is standard-conforming operation.
- (version) outputs the version of toast (or untoast or tcat) to stdout and exits.
- (help) prints a short overview of the options.
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:
- (µU-law)8 kHz, 8 bit µU-law encoding (file suffix .u)
- (A-law)8 kHz, 8 bit A-law encoding (file suffix .A)
- (Sun audio)8 kHz, 8 bit µU-law encoding with audio header (file suffix .au)
- (linear)8 kHz, 16 bit signed linear encoding in host byte orderwith 13 significant bits (file suffix .l)
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 algorithmdevised especially for speech; on no account should it be usedfor text, pictures or any other non-speech-data you considervaluable.
Please direct bug reports to juttaAATTcs.tu-berlin.de.
- SEE ALSO
This document was created byman2html,using the manual pages.