This structure describes the format of voice data not stored in Blueworx Voice Response voice elements.
Format |
Valid sample_width values |
---|---|
FORMAT_ALAW |
8 or 16 |
FORMAT_ULAW |
8 or 16 |
FORMAT_TWOC |
16 |
FORMAT_SMAG |
16 |
FORMAT_MAG |
16 |
FORMAT_TWOC = two’s complement where 16 bit sample values are in the range -32K to +32K in standard two’s complement notation.
Maximum |
+32K |
= |
X’7FFF’ |
Center |
0 |
= |
X’0000’ |
Minimum |
-32K |
= |
X’8000’ |
FORMAT_SMAG = signed magnitude where the 16 bit sample consists of a sign bit plus a 15 bit amplitude value, in the range 0 to +32K.
Maximum |
+32K |
= |
X’7FFF’ |
Center |
0 |
= |
X’0000’ |
Minimum |
-32K |
= |
X’FFFF’ |
FORMAT_MAG = unsigned magnitude where the 16 bit sample is an unsigned binary value in the range 0 to 64K.
Maximum |
+64K |
= |
X’FFFF’ |
Center |
+32K |
= |
X’7FFF’ or X’8000’ |
Minimum |
0 |
= |
X’0000’ |