2.2.3 File Conversion:
Verification of Conversion to Raw There are several ways to verify that your conversion has proceeded correctly, including listening to the audio data. Three procedures are outlined below. SoX: Audio Playback In order to listen to the file, SoX must be installed on your system. To listen to the file speech.raw, convert the file from raw format to .au format using SoX. Go to the directory:
Once conversion has been completed, listen to the file on a computer running the Sun Solaris operating system using the command:
File Size Comparison: Using "ls -l" The NIST SPHERE header is typically 1024 bytes. Hence, we can use standard Unix commands to check if the output file is the correct size. Use the command:
-rw-rw-r-- 1 may isip 98510 Sep 10 15:12 speech.sph Octel Dump (od): Listing Values From time to time it will be necessary to list the values of a file. A useful command for this is "od". Since speech.raw consists of two-byte signed integers, we can use the od command to list the numeric values of the samples:
0000000 4 3 4 3 4 3 3 3 |