Prev | Current Page 1010 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


In its most basic form, you can convert one file format (such as a WAV file) to another format (such
as an AU file) as follows:
$ sox file1.wav file1.au
To see what SoX is doing, use the -V option. For example:
$ sox -V file1.wav file1.voc
sox: Reading Wave file: Microsoft PCM format, 2 channel, 44100 samp/sec
sox: 176400 byte/sec, 4 block align, 16 bits/samp, 50266944 data bytes
sox: Input file: using sample rate 11025
size bytes, style unsigned, 1 channel
sox: Input file1.wav: comment ???file1.wav???
sox: Output file1.voc: using sample rate 44100
size shorts, encoding signed (2??™s complement), 2 channels
sox: Output file: comment ???file1.wav???
You can apply sound effects during the SoX conversion process. The following example shows how
to change the sample rate (using the -r option) from 10,000 KHz to 5,000 KHz:
$ sox -r 10000 file1.wav -r 5000 file1.voc
Pseudo file, used to open a
/dev/audio file and set it to
use the data type being passed
to SoX.
File Extension
or Pseudonym
File Extension
or Pseudonym
Used to compress speech audio
for voice mail and similar
applications.
.ub, .sb, .uw,
.sw, .ul, .al,
.lu, .la, .sl
Raw files (contain no header
information, so sample rate,
size, and style must be given).
Microsoft WAV RIFF files.


Pages:
998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022