Typedefs | Enumerations | Functions | Variables
baidu_asr_example.cpp File Reference
#include "asr/baidu/asr_online.h"
#include <iostream>
#include <thread>
Include dependency graph for baidu_asr_example.cpp:

Go to the source code of this file.

Typedefs

typedef enum ASR_MODE ASR_MODE
 

Enumerations

enum  ASR_MODE { READ_PCM_FILE_TO_ASR = 0, RECORDE_TO_ASR, READ_PCM_FILE_TO_ASR = 0, RECORDE_TO_ASR }
 

Functions

void fileToASR (const std::string pcm_file)
 
int main (int argc, char **argv)
 
void recordToASR (const std::string pcm_file)
 
void usage (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

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 9 of file baidu_asr_example.cpp.

Function Documentation

void fileToASR ( const std::string  pcm_file)

Definition at line 27 of file baidu_asr_example.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 78 of file baidu_asr_example.cpp.

void recordToASR ( const std::string  pcm_file)

Definition at line 50 of file baidu_asr_example.cpp.

void usage ( int &  asr_mode)

Definition at line 15 of file baidu_asr_example.cpp.

Variable Documentation

const std::string base_path = "../../.."

Definition at line 5 of file baidu_asr_example.cpp.

const int ONE_CHANNEL = 1

Definition at line 6 of file baidu_asr_example.cpp.

const int TWO_CHANNEL = 2

Definition at line 7 of file baidu_asr_example.cpp.



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