![]() |
CI130X SDK API手册
2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
|
#include <stdint.h>
结构体 | |
struct | command_info_st |
Command information 更多... | |
struct | Special_wait_count_st |
time wait after special word. 更多... | |
struct | command_string_index_st |
Index of command string, used to get command id by command string. 更多... | |
struct | voice_info_st |
Voice information 更多... | |
宏定义 | |
#define | CMD_FLAG_WAKEUP_WORD 0x01 |
#define | CMD_FLAG_COMBO_WORD 0x02 |
#define | CMD_FLAG_EXPECTED_WORD 0x04 |
#define | CMD_FLAG_UNEXPECTED_WORD 0x08 |
#define | CMD_FLAG_SPECIAL_WORD 0x10 |
#define | CMD_FLAG_AUTO_PLAY 0x20 |
类型定义 | |
typedef struct command_info_st | command_info_t |
Command information 更多... | |
typedef struct Special_wait_count_st | special_wait_count_t |
time wait after special word. 更多... | |
typedef struct command_string_index_st | command_string_index_t |
Index of command string, used to get command id by command string. 更多... | |
typedef struct voice_info_st | voice_info_t |
Voice information 更多... | |
函数 | |
uint32_t | cmd_file_reader_init (uint32_t start_addr_in_flash) |
Initialize command file reader. 更多... | |
uint32_t | cmd_file_get_model_number () |
Get models number. 更多... | |
uint32_t | cmd_file_change_model (uint32_t model_index) |
Change current model group. 更多... | |
uint32_t | cmd_file_get_cur_model_id (uint32_t *p_dnn_id, uint32_t *p_asr_id) |
Get models ID. 更多... | |
uint32_t | cmd_file_get_command_number () |
Get number of commands in current model. 更多... | |
uint32_t | cmd_file_read_command_table (void *table_buffer) |
Reads commands table to the specifiled buffer. 更多... | |
uint32_t | cmd_file_get_special_word_number () |
Get number of special words. 更多... | |
uint32_t | cmd_file_read_special_word_table (void *table_buffer) |
Reads special words table to the specifiled buffer. 更多... | |
uint32_t | cmd_file_read_string_index_table (void *table_buffer) |
Read string index table to the specifiled buffer. 更多... | |
uint32_t | cmd_file_get_string_table_size () |
Get size of string table. 更多... | |
uint32_t | cmd_file_read_string_table (void *table_buffer) |
Read string table to the specifiled buffer. 更多... | |
uint32_t | cmd_file_get_voice_number () |
Get number of voice. 更多... | |
uint32_t | cmd_file_read_voice_table (void *table_buffer) |
Read voice table to the specifiled buffer. 更多... | |
uint32_t | cmd_file_get_max_model_group_id () |
Get id of model group, that prun of asr is the max. 更多... | |
uint32_t | cmd_file_change_cur_model_group (uint8_t model_group_id) |
int32_t | cmd_file_get_send_data_item_len (void) |
int32_t | cmd_file_get_recieve_data_item_len (void) |
int32_t | cmd_file_read_send_data_table (uint8_t *p_send_data_table, uint8_t *p_item_length) |
int32_t | cmd_file_read_recieve_data_table (uint8_t *p_recieve_data_table, uint8_t *p_item_length) |
struct command_info_st |
Command information
struct Special_wait_count_st |
struct command_string_index_st |
struct voice_info_st |
#define CMD_FLAG_AUTO_PLAY 0x20 |
#define CMD_FLAG_COMBO_WORD 0x02 |
#define CMD_FLAG_EXPECTED_WORD 0x04 |
#define CMD_FLAG_SPECIAL_WORD 0x10 |
#define CMD_FLAG_UNEXPECTED_WORD 0x08 |
#define CMD_FLAG_WAKEUP_WORD 0x01 |
typedef struct command_info_st command_info_t |
Command information
typedef struct command_string_index_st command_string_index_t |
Index of command string, used to get command id by command string.
typedef struct Special_wait_count_st special_wait_count_t |
time wait after special word.
typedef struct voice_info_st voice_info_t |
Voice information
uint32_t cmd_file_change_cur_model_group | ( | uint8_t | model_group_id | ) |
uint32_t cmd_file_change_model | ( | uint32_t | model_index | ) |
Change current model group.
model_group_id | ID of medel group in cmd file. |
uint32_t cmd_file_get_command_number | ( | ) |
Get number of commands in current model.
uint32_t cmd_file_get_cur_model_id | ( | uint32_t * | p_dnn_id, |
uint32_t * | p_asr_id | ||
) |
Get models ID.
p_dnn_id | A pointer to a uint32_t variable used to receive dnn file id. |
p_asr_id | A pointer to a uint32_t variable used to receive asr file id. |
p_voice_group_id | A pointer to a uint32_t variable used to receive voice group id. |
uint32_t cmd_file_get_max_model_group_id | ( | ) |
Get id of model group, that prun of asr is the max.
uint32_t cmd_file_get_model_number | ( | ) |
Get models number.
int32_t cmd_file_get_recieve_data_item_len | ( | void | ) |
int32_t cmd_file_get_send_data_item_len | ( | void | ) |
uint32_t cmd_file_get_special_word_number | ( | ) |
Get number of special words.
uint32_t cmd_file_get_string_table_size | ( | ) |
Get size of string table.
uint32_t cmd_file_get_voice_number | ( | ) |
Get number of voice.
uint32_t cmd_file_read_command_table | ( | void * | table_buffer | ) |
Reads commands table to the specifiled buffer.
table_buffer | The buffer use to save commands table, provided by caller. Buffer size is larger or equal to commands number times sizeof(command_info_t). |
int32_t cmd_file_read_recieve_data_table | ( | uint8_t * | p_recieve_data_table, |
uint8_t * | p_item_length | ||
) |
int32_t cmd_file_read_send_data_table | ( | uint8_t * | p_send_data_table, |
uint8_t * | p_item_length | ||
) |
uint32_t cmd_file_read_special_word_table | ( | void * | table_buffer | ) |
Reads special words table to the specifiled buffer.
table_buffer | The buffer use to save special words table, provided by caller. Buffer size is larger or equal to special words number times sizeof(special_wait_count_t). |
uint32_t cmd_file_read_string_index_table | ( | void * | table_buffer | ) |
Read string index table to the specifiled buffer.
table_buffer | The buffer use to save string index table, provided by caller. Buffer size is larger or eaqual to commands number times sizeof(command_string_index_t). |
uint32_t cmd_file_read_string_table | ( | void * | table_buffer | ) |
Read string table to the specifiled buffer.
table_buffer | The buffer use to save string table, provided by caller. Buffer size is larger or eaqual to string table size. |
uint32_t cmd_file_read_voice_table | ( | void * | table_buffer | ) |
Read voice table to the specifiled buffer.
table_buffer | The buffer used to save voice table, provided by caller. Buffer size is larger or equal to voice number times sizeof(voice_info_t). |
uint32_t cmd_file_reader_init | ( | uint32_t | start_addr_in_flash | ) |
Initialize command file reader.
start_addr_in_flash | Start address of command file in flash. |