1 #ifndef __COMMAND_FILE_READER_V2_H__ 2 #define __COMMAND_FILE_READER_V2_H__ 11 #define CMD_FLAG_WAKEUP_WORD 0x01 12 #define CMD_FLAG_COMBO_WORD 0x02 13 #define CMD_FLAG_EXPECTED_WORD 0x04 14 #define CMD_FLAG_UNEXPECTED_WORD 0x08 15 #define CMD_FLAG_SPECIAL_WORD 0x10 uint16_t command_id
Index of this command's voice in voice table.
Definition: command_file_reader_v2.h:31
uint8_t flags
Definition: command_file_reader_v2.h:27
uint32_t cmd_file_get_model_number()
Get models number.
Definition: command_file_reader_v2.c:91
uint32_t cmd_file_change_cur_model_group(uint8_t model_group_id)
Definition: command_file_reader_v2.c:97
Index of command string, used to get command id by command string.
Definition: command_file_reader_v2.h:49
uint16_t voice_end_index
Index of this command's voice in voice table.
Definition: command_file_reader_v2.h:30
uint32_t cmd_file_get_max_model_group_id()
Get id of model group, that prun of asr is the max.
Definition: command_file_reader_v2.c:158
uint32_t cmd_file_read_string_table(void *table_buffer)
Read string table to the specifiled buffer.
Definition: command_file_reader_v2.c:282
time wait after special word.
Definition: command_file_reader_v2.h:39
uint32_t cmd_file_get_command_number()
Get number of commands in current model.
Definition: command_file_reader_v2.c:239
uint32_t cmd_file_get_max_command_number()
Definition: command_file_reader_v2.c:305
Voice information
Definition: command_file_reader_v2.h:59
Command information
Definition: command_file_reader_v2.h:25
uint32_t cmd_file_read_command_table(void *table_buffer)
Reads commands table to the specifiled buffer.
Definition: command_file_reader_v2.c:244
uint32_t cmd_file_change_model(uint32_t model_index)
Change current model group.
Definition: command_file_reader_v2.c:126
struct Special_wait_count_st special_wait_count_t
time wait after special word.
uint32_t cmd_file_get_special_word_number()
Get number of special words.
Definition: command_file_reader_v2.c:253
uint32_t cmd_file_get_string_table_size()
Get size of string table.
Definition: command_file_reader_v2.c:277
uint8_t wait_count
Identity of command.
Definition: command_file_reader_v2.h:42
uint32_t cmd_file_get_cur_model_id(uint32_t *p_dnn_id, uint32_t *p_asr_id)
Get models ID.
Definition: command_file_reader_v2.c:226
uint32_t cmd_file_get_voice_number()
Get number of voice.
Definition: command_file_reader_v2.c:291
uint32_t semantic_id
Identity of command.
Definition: command_file_reader_v2.h:32
struct voice_info_st voice_info_t
Voice information
uint32_t cmd_file_get_max_special_word_number()
Definition: command_file_reader_v2.c:310
uint16_t voice_group
Definition: command_file_reader_v2.h:61
uint16_t voice_start_index
100 times the true float value of score.
Definition: command_file_reader_v2.h:29
uint16_t index_of_cmd_table
Definition: command_file_reader_v2.h:41
struct command_string_index_st command_string_index_t
Index of command string, used to get command id by command string.
uint32_t cmd_file_reader_init(uint32_t start_addr_in_flash)
Initialize command file reader.
Definition: command_file_reader_v2.c:79
uint32_t cmd_file_read_voice_table(void *table_buffer)
Read voice table to the specifiled buffer.
Definition: command_file_reader_v2.c:296
struct command_info_st command_info_t
Command information
uint32_t cmd_file_read_string_index_table(void *table_buffer)
Read string index table to the specifiled buffer.
Definition: command_file_reader_v2.c:267
uint32_t cmd_file_get_max_cmd_string_table_size()
Definition: command_file_reader_v2.c:315
uint16_t voice_id
voice group information.
Definition: command_file_reader_v2.h:62
uint32_t cmd_file_read_special_word_table(void *table_buffer)
Reads special words table to the specifiled buffer.
Definition: command_file_reader_v2.c:258
uint32_t command_string_offset
Definition: command_file_reader_v2.h:51
uint8_t score
Use to save flags that indicate this command is a special word,or is a combo word,or is a expected word,and so on.
Definition: command_file_reader_v2.h:28