Public Attributes | List of all members
AsrConfig Struct Reference

#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
 

Detailed Description

百度语音识别相关参数的配置

Definition at line 17 of file asr_online.h.

Member Data Documentation

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.


The documentation for this struct was generated from the following file:


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