They are all binary files, but the encoding format is different. For example, the first four
bytes of each WAVE file are "RIFF".
WAVE files are composed of several Chunks. According to the position in the file, it includes: RIFF WAVE
Chunk, Format Chunk, Fact Chunk (optional), Data Chunk. See the picture below for details:
------------------------------------- ----------
| RIFF WAVE Chunk |
| ID = 'RIFF' |
| RiffType = 'WAVE' |
--------------------------------------------- -----
| Format Chunk |
| ID = 'fmt ' |
------------- ----------------------------------
| Fact Chunk(optional) |< /p>
| ID = 'fact' |
-------------------------------- ------------------
| Data Chunk |
| ID = 'data' |
---------------------------------------- p>