#include "asr/xunfei/xfei_speech_recog.h"#include "asr/xunfei/BuildGrammar.h"#include "common_config.h"#include <iostream>#include <thread>
Go to the source code of this file.
Typedefs | |
| typedef enum ASR_MODE | ASR_MODE |
| typedef enum ASR_MODULE | ASR_MODULE |
Enumerations | |
| enum | ASR_MODE { READ_PCM_FILE_TO_ASR = 0, RECORDE_TO_ASR, READ_PCM_FILE_TO_ASR = 0, RECORDE_TO_ASR } |
| enum | ASR_MODULE { ASR_ONLINE = 0, ASR_OFFLINE } |
Functions | |
| void | build_grammar () |
| void | fileToASR (const std::string asr_param, const std::string pcm_file) |
| void | fileToASROffline (const std::string asr_param, const std::string pcm_file) |
| int | main (int argc, char **argv) |
| void | recordToASR (const std::string asr_param, const std::string pcm_file) |
| void | recordToASROffline (const std::string asr_param, const std::string pcm_file) |
| void | usage (int &asr_module, int &asr_mode) |
Variables | |
| const std::string | base_path = "../../.." |
| const int | ONE_CHANNEL = 1 |
| const int | TWO_CHANNEL = 2 |
| typedef enum ASR_MODULE ASR_MODULE |
| enum ASR_MODE |
| Enumerator | |
|---|---|
| READ_PCM_FILE_TO_ASR | |
| RECORDE_TO_ASR | |
| READ_PCM_FILE_TO_ASR | |
| RECORDE_TO_ASR | |
Definition at line 17 of file asr_example.cpp.
| enum ASR_MODULE |
| Enumerator | |
|---|---|
| ASR_ONLINE | |
| ASR_OFFLINE | |
Definition at line 12 of file asr_example.cpp.
| void build_grammar | ( | ) |
Definition at line 151 of file asr_example.cpp.
| void fileToASR | ( | const std::string | asr_param, |
| const std::string | pcm_file | ||
| ) |
Definition at line 42 of file asr_example.cpp.
| void fileToASROffline | ( | const std::string | asr_param, |
| const std::string | pcm_file | ||
| ) |
Definition at line 84 of file asr_example.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 167 of file asr_example.cpp.
| void recordToASR | ( | const std::string | asr_param, |
| const std::string | pcm_file | ||
| ) |
Definition at line 60 of file asr_example.cpp.
| void recordToASROffline | ( | const std::string | asr_param, |
| const std::string | pcm_file | ||
| ) |
Definition at line 114 of file asr_example.cpp.
| void usage | ( | int & | asr_module, |
| int & | asr_mode | ||
| ) |
Definition at line 22 of file asr_example.cpp.
| const std::string base_path = "../../.." |
Definition at line 8 of file asr_example.cpp.
| const int ONE_CHANNEL = 1 |
Definition at line 9 of file asr_example.cpp.
| const int TWO_CHANNEL = 2 |
Definition at line 10 of file asr_example.cpp.