#include <asr_online.h>
Public Attributes | |
std::string | api_key |
std::string | cuid |
int | dev_pid |
std::string | format |
int | rate |
std::string | scope |
std::string | secret_key |
std::string | url |
百度语音识别相关参数的配置
Definition at line 17 of file asr_online.h.
std::string AsrConfig::api_key |
填写网页上申请的appkey 如 $apiKey="g8eBUMSokVB1BHGmgxxxxxx"
Definition at line 20 of file asr_online.h.
std::string AsrConfig::cuid |
用户唯一标识,用来区分用户
Definition at line 30 of file asr_online.h.
int AsrConfig::dev_pid |
不填写lan参数生效,都不填写,默认1537(普通话输入法模型)
Definition at line 28 of file asr_online.h.
std::string AsrConfig::format |
音频格式
Definition at line 24 of file asr_online.h.
int AsrConfig::rate |
音频采样率
Definition at line 26 of file asr_online.h.
std::string AsrConfig::scope |
有此scope表示有asr能力,没有请在网页里勾选,非常旧的应用可能没有
Definition at line 32 of file asr_online.h.
std::string AsrConfig::secret_key |
填写网页上申请的APP SECRET 如$secretKey="94dc99566550d87f8fa8ece112xxxxx"
Definition at line 22 of file asr_online.h.
std::string AsrConfig::url |
百度在线语音识别URL:http://vop.baidu.com/server_api
Definition at line 34 of file asr_online.h.