Can some one tell me the WAV file header information for A-Law and Mu-Law?
Asked
Active
Viewed 4,700 times
-3
-
You could search... google is your friend – richarbernal May 30 '12 at 19:13
1 Answers
2
In short, the WAVE format is a RIFF specification for mutlimedia files, which uses "chunks" to store data. Similar to a type-length-value representation, each chunk contains information about its own type and length (the fields SubChunkID
and SubChunkSize
) before the rest of the data.The information about the audio compression is stored in the "fmt" chunk.
-
1The interesting - not answered - question would be what to expect at offset 20 (`0x14` and `0x15` 2 bytes) as AudioFormat. Obviously PCM = 1 (i.e. Linear quantization) but what do we expect for a-law, what for mu-law? From what I read from one of the linked sites, the following values are IBM specific and not a-law/mu-law in general (`$0101` IBM mu-law (custom), `$0102` = IBM a-law (custom)). I've seen `$14=06, $15=00` for a-law being used in the wild. So there may be other common values for that, who knows. – mbx Nov 25 '20 at 14:46