Version: 1.18
PRELIMINARY/CONFIDENTIAL
TrueSpeech® Co-Processor
C Wave File Format (.wav)
WAVE file format is actually a sub-format of RIFF (Resource Interchange File Format) and is as follows:
Example for 8/16 bit linear data (the byte offsets given are for illustration only; the byte offsets in a wave file are not
absolute):
Byte Offset
0000H
0004H
0008H
Number of Bytes
Contents
4
4
4
“RIFF” = 52 49 46 46 (hex)
filesize -8 (the size of the waveform chunk)
“WAVE” = 57 41 56 45 (hex)
000CH
0010H
0014H
0016H
0018H
001CH
0020H
0022H
4
4
2
2
4
4
2
2
“fmt “ = 66 6D 74 20 (hex)
format chunk size (16 for linear data)
wFormatTag = 1 (WAVE_FORMAT_PCM)
nChannels (number of channels 1:mono 2:stereo)
nSamplesPerSec (e.g. 8000)
nAvgBytesPerSec (.e.g. 8000, 16000)
nBlockAlign (block size in bytes 8-bit mono:1, 16 bit stereo:4)
wBitsPerSample (e.g. 8 or 16)
0024H
0028H
002CH
4
4
“data” = 64 61 74 61 (hex)
waveform data size (bytes)
start of actual waveform data
Example for TrueSpeech data (the byte offsets given are for illustration only; the byte offsets in a wave file are not
absolute):
Byte Offset
0000H
0004H
0008H
Number of Bytes
Contents
4
4
4
“RIFF” = 52 49 46 46 (hex)
filesize -8 (the size of the waveform chunk)
“WAVE” = 57 41 56 45 (hex)
000CH
0010H
0014H
0016H
0018H
001CH
0020H
0022H
0024H
0026H
0028H
002AH
4
4
2
2
4
4
2
2
2
2
2
28
“fmt “ = 66 6D 74 20 (hex)
format chunk size = 32H
wFormatTag = 22H (TrueSpeech tag value)
nChannels = 1
nSamplesPerSec = 8000
nAvgBytesPerSec = 1067 (used for buffer size estimation)
nBlockAlign = 20H
wBitsPerSample = 1
cbSize = 20H (size of extension area following)
wRevision = 1 (For TrueSpeech 8.5)
nSamplesPerBlock = 240
abReserved[28] (reserved area)
0042H
0046H
004AH
004EH
0052H
0056H
4
4
4
4
4
“fact” = 66 61 63 74
fact chunk size = 4
time length of data in sample units (e.g. 8000 = 1 sec)
“data” = 64 61 74 61 (hex)
waveform data size (bytes)
start of actual waveform data
CT8022A11AQC FW Revision 0118 DSP GROUP, INC., 3120 SCOTT BOULEVARD
SANTA CLARA, CA 95054 PH: 408 986 – 4300 FAX: 408 986 – 4490
185
All specifications are subject to change without prior notice.