As discussed in Section 2.2.3. Basic Voice Features Supported, Play and Record functionality for additional coders is now included with Dialogic Voice Software. These coders are included with the player (dx_playiottdata( ) function) and recorder (dx_reciottdata( ) function) in the voice library.
The DX_XPB structure specifies the file format, data format (coder), sampling rate, and resolution for all audio files associated with a DX_IOTT table. It is used by the following play and record functions: dx_playiottdata( ) and dx_reciottdata( ).
Parameter |
Description | |
Specifies one of the following audio file formats. Note that this field is ignored by the convenience functions dx_recwav( ), dx_recvox( ), and dx_playvox( ). | ||
FILE_FORMAT_VOX |
Dialogic VOX file format | |
FILE_FORMAT_WAVE |
Microsoft WAVE file format | |
Specifies one of the following data formats: | ||
DATA_FORMAT_DIALOGIC_ |
4-bit OKI ADPCM (Dialogic registered) | |
DATA_FORMAT_MULAW or DATA_FORMAT_G711_ |
8-bit mu-law G.711 PCM | |
DATA_FORMAT_ALAW or DATA_FORMAT_G711_ |
8-bit a-law G.711 PCM | |
DATA_FORMAT_PCM |
8-bit or 16-bit Linear PCM | |
DATA_FORMAT_G721 |
G.721 | |
DATA_FORMAT_G726 |
G.726 bit-exact coder | |
DATA_FORMAT_GSM610_ |
GSM 6.10 full-rate coder (Microsoft Windows compatible format)* | |
DATA_FORMAT_GSM610_ |
GSM 6.10 VOX full-rate coder (TIPHON format) | |
DATA_FORMAT_ |
TrueSpeech data format | |
Specifies one of the following sampling rates: | ||
DRT_6KHZ |
6 kHz sampling rate. | |
DRT_8KHZ |
8 kHz sampling rate. | |
DRT_11KHZ |
11 kHz sampling rate. Note: 11kHz OKI ADPCM is not supported. | |
Specifies the number of bits per sample. This number varies with the data format. For more information, refer to the following sections on coder support. | ||
*Microsoft Windows Media Recorder Audio Compression Codec: GSM 6.10 Audio CODEC
G.711 Voice Coder SupportThe G.711 voice coder is supported through the following parameters in the DX_XPB structure:
|
Parameter |
Possible Values |
|
FILE_FORMAT_WAV FILE_FORMAT_VOX |
|
|
DATA_FORMAT_G711_ALAW or |
|
|
DATA_FORMAT_G711_MULAW or |
|
|
DRT_6KHZ DRT_8KHZ |
|
|
8 (48 Kb/s or 64 Kb/s) |
G.721 Voice Coder SupportThe G.721 voice coder is supported through the following parameters in the DX_XPB structure:
|
Parameter |
Possible Values |
|
FILE_FORMAT_WAV FILE_FORMAT_VOX |
|
|
DATA_FORMAT_G721 |
|
|
DRT_8KHZ |
|
|
4 (32 Kb/s) |
Linear PCM Voice Coder SupportThe linear PCM voice coder is supported through the following parameters in the DX_XPB structure:
|
Parameter |
Possible Values |
|
FILE_FORMAT_WAV FILE_FORMAT_VOX |
|
|
DATA_FORMAT_PCM |
|
|
DRT_11KHZ |
|
|
8 (88 Kb/s) 16 (176 Kb/s) |
OKI ADPCM Voice Coder SupportThe OKI ADPCM voice coder is supported through the following parameters in the DX_XPB structure:
|
Parameter |
Possible Values |
|
FILE_FORMAT_WAV FILE_FORMAT_VOX |
|
|
DATA_FORMAT_DIALOGIC_ADPCM |
|
|
DRT_6KHZ DRT_8KHZ |
|
|
4 (24 Kb/s or 32 Kb/s) |
G.726 Voice Coder SupportThe G.726 voice coder is supported through the following parameters in the DX_XPB structure:
|
Parameter |
Possible Values |
|
FILE_FORMAT_WAV FILE_FORMAT_VOX |
|
|
DATA_FORMAT_G726 |
|
|
DRT_8KHZ |
|
|
2, 3, 4, or 5 |
GSM Voice Coder SupportThe GSM voice coder is supported through the following parameters in the DX_XPB structure:
|
Parameter |
Possible Values |
|
FILE_FORMAT_WAV (supported only with DATA_FORMAT_GSM610_MICROSOFT) FILE_FORMAT_VOX |
|
|
DATA_FORMAT_GSM610_MICROSOFT |
|
|
DATA_FORMAT_GSM610_TIPHON |
|
|
DRT_8KHZ |
|
|
0 (13 Kb/s.) |
TrueSpeech Voice Coder SupportThe TrueSpeech voice coder is supported through the following parameters in the DX_XPB structure:
|
Parameter |
Possible Values |
|
FILE_FORMAT_WAV FILE_FORMAT_VOX |
|
|
DATA_FORMAT_TRUESPEECH |
|
|
DRT_8KHZ |
|
|
0 (8.5 Kb/s) |
ExampleFollowing is a sample of the values for G.726 in the DX_XPB structure:
wFileFormat: FILE_FORMAT_VOX wDataFormat: DATA_FORMAT_G726 nSamplesPerSec: DRT_8KHZ wBitsPerSample: 4
Click here to contact Dialogic Customer Engineering
Copyright 2002, Intel Corporation