Debian Codegraph @

gsm/toast.1

raw
1 .\"
2 .\" Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
3 .\" Universitaet Berlin. See the accompanying file "COPYRIGHT" for
4 .\" details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
5 .\"
6 .if n .ds mU u
7 .if t .ds mU \(*m
8 .\"
9 .PU
10 .TH TOAST 1 local
11 .SH NAME
12 toast \(em GSM\ 06.10 lossy sound compression
13 .SH SYNOPSIS
14 .ll +8
15 .B toast
16 [
17 .B \-cdfpvhualsFC
18 ] [
19 .I "filename...\&"
20 ]
21 .LP
22 .B untoast
23 [
24 .B \-cfpvhuaslF
25 ] [
26 .I "filename...\&"
27 ]
28 .LP
29 .B tcat
30 [
31 .B \-vhuaslF
32 ] [
33 .I "filename...\&"
34 ]
35 .ll -8
36 .SH DESCRIPTION
37 Toast compresses the sound files given on its command line.
38 Each file is replaced by a file with the extension
39 .I \&.gsm .
40 If no files are specified, the compression is applied to the
41 standard input, and its result is written to standard output.
42 .PP
43 Toasted files can be restored to something not quite unlike
44 their original form by running toast
45 .I "\-d"
46 , or
47 .I untoast
48 , on the \&.gsm-files or standard input.
49 .PP
50 The program
51 .I tcat
52 (the same as running
53 .I "untoast \-c"
54 ) uncompresses its input on standard output,
55 but leaves the compressed .gsm\-files alone.
56 .PP
57 When files are compressed or uncompressed into other files,
58 the ownership (if run by root), modes, accessed and modified times
59 are maintained between both versions.
60 .SH OPTIONS
61 .TP
62 .B \-c
63 (cat)
64 Write to the standard output; no files are changed.
65 .TP
66 .B \-d
67 (decode)
68 Decode, rather than encode, the files.
69 .TP
70 .B \-f
71 (force)
72 Force replacement of output files if they exist.
73 If \-f is omitted and toast (or untoast) is run interactively from
74 a terminal, the user is prompted as to whether the file should be replaced.
75 .TP
76 .B \-p
77 (precious)
78 Do not delete the source files.
79 Source files are implicitly left alone whenever \-c is
80 specified or tcat is run.
81 .TP
82 .B \-C
83 (LTP cut-off)
84 Ignore most sample values when calculating the GSM long-term
85 correlation lag during encoding.
86 (The multiplications that do this are a bottleneck
87 of the algorithm.)
88 The resulting encoding process will not produce
89 exactly the same results as GSM 06.10 would,
90 but remains close enough to be compatible.
91 .br
92 The
93 .B \-C
94 option applies only to the encoder and is silently
95 ignored by the decoder.
96 .TP
97 .B \-F
98 (fast)
99 On systems with a floating point processor, but without
100 a multiplication instruction, \-F sacrifices standard conformance to
101 performance and nearly doubles the speed of the algorithm.
102 .br
103 The resulting encoding and decoding process will not produce
104 exactly the same results as GSM 06.10 would, but remains close
105 enough to be compatible.
106 .br
107 The default is standard-conforming operation.
108 .TP
109 .B \-v
110 (version)\
111 outputs the version of toast (or untoast or tcat) to stdout and exits.
112 .TP
113 .B \-h
114 (help)\
115 prints a short overview of the options.
116 .PP
117 Toast, untoast and tcat try to guess the appropriate audio data
118 format from the file suffix.
119 Command line options can also specify a format to be used for
120 all files.
121 .br
122 The following formats are supported:
123 .TP
124 .B "\-u"
125 (\(*mU-law)
126 8 kHz, 8 bit \(*mU-law encoding (file suffix .u)
127 .TP
128 .B "\-a"
129 (A-law)
130 8 kHz, 8 bit A-law encoding (file suffix .A)
131 .TP
132 .B "\-s"
133 (Sun audio)
134 8 kHz, 8 bit \(*mU-law encoding with audio header (file suffix .au)
135 .TP
136 .B "-l"
137 (linear)
138 8 kHz, 16 bit signed linear encoding in host byte order
139 with 13 significant bits (file suffix .l)
140 .PP
141 In absence of options or suffixes to specify a format,
142 \(*mU-law encoding as forced by \-u is assumed.
143 .PP
144 .SH PECULIARITIES
145 A four bit magic number is prefixed to each 32 1/2-byte GSM frame,
146 mainly because 32 1/2-bytes are rather clumsy to handle.
147 .SH WARNING
148 The compression algorithm used is a lossy compression algorithm
149 devised especially for speech; on no account should it be used
150 for text, pictures or any other non-speech-data you consider
151 valuable.
152 .SH BUGS
153 Please direct bug reports to [email protected].
154 .SH "SEE ALSO"
155 gsm(3)
156 .\"
157 .\" Toast is dedicated to Bill Sienkiewicz, author of "Stray Toasters".