Typedefs | Enumerations | Functions | Variables
asr_example.cpp File Reference
#include "asr/xunfei/xfei_speech_recog.h"
#include "asr/xunfei/BuildGrammar.h"
#include "common_config.h"
#include <iostream>
#include <thread>
Include dependency graph for asr_example.cpp:

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 Documentation

typedef enum ASR_MODE ASR_MODE
typedef enum ASR_MODULE ASR_MODULE

Enumeration Type Documentation

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.

Function Documentation

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.

Variable Documentation

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.



xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54