#include <nitro/asr.h>
typedef enum {
ASR_DTB_DATA_TYPE = 0x1,
ASR_HMM_DATA_TYPE,
ASR_TREE_DATA_TYPE,
ASR_PHN_DATA_TYPE,
ASR_MDC_DATA_TYPE,
ASR_STORAGE_DATA_TYPE
} ASR_DataType;
typedef struct tag_ASR_DataItemType {
ASR_DataType type; // Data type
void *data; // Pointer to binary data
long size; // Binary data size
} ASR_DataItemType;| ASR_DTB_DATA_TYPE | Data type corresponding to dtb.bin language-dependent data |
| ASR_HMM_DATA_TYPE | Data type corresponding to hmm.bin language-dependent data |
| ASR_TREE_DATA_TYPE | Data type corresponding to tree.bin language-dependent data |
| ASR_PHN_DATA_TYPE | Data type corresponding to phn.bin language-dependent data |
| ASR_MDC_DATA_TYPE | Data type corresponding to mdc.bin language-dependent data |
| ASR_STORAGE_DATA_TYPE | Data type corresponding to str.bin language-dependent data |
| type | Sets data types corresponding to the six types of language-dependent data. |
| data | Sets the pointer to the language-dependent data |
| size | Sets the size of the language-dependent data |
This structure is used in ASR_RecogInit and ASR_MWInit as the pointer to the language-dependent data group.
The application secures a region in memory to store language-dependent data, reads the binary data located in ROM, prepares an array to store six ASR_DataItemType structures, configures member variables for all language-dependent data, and starts the recognition engine initialization API.
Note: Be sure to place dtb.bin at the beginning of the six arrays passed to the intialization API.
12/21/2005 Corrected the description and added a note regarding dtb.bin.
02/16/2005 Initial release.