Apache web server for windows - 524 Part IV . Running Applications To see
524 Part IV . Running Applications 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 To reduce the noise, you can send the file through a low-pass filter. Here s an example: $ sox file1.voc file2.voc lowp 2200 For more information on SoX and to get the latest download, go to the SoX Sound eXchange home page (www.sourceforge.net/projects/sox/). Compressing Music Files with oggenc The oggenc command takes music or other audio data and converts it from uncompressed formats (such as WAV, RAW, or AIFF) to the compressed Ogg Vorbis format. Using Ogg Vorbis, audio files can be significantly reduced in size without a noticeable loss of sound quality. (I used the default settings in oggenc and reduced a 48MB WAV music file to 4MB.) In its most basic form, you can use oggenc with one or more WAV or AIFF files following it. For example: $ oggenc *.wav This command would result in all files ending with .wav in the current directory to be converted to Ogg Vorbis format. An OGG file is produced for each WAV file, with oggenc substituting .ogg for .wav as the file suffix for the compressed file. Ogg Vorbis files can be played in many different audio players in Linux, including the XMMS player (described earlier). If you want to rip music files from a CD and compress them, you can use the Grip window (described later in this chapter). Grip enables you to select oggenc as the tool to do the file compression. Tip
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision virtual web hosting services