public class AsrRequest extends TRequest
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.lang.Integer |
convertNumMode
是否进行阿拉伯数字智能转换。
|
protected java.lang.Integer |
cutLength
语音切片字节长度,如果是8k引擎则长度区间为0-3200*5 如果16K引擎则长度区间为0-6400*5.如果超出区间则设置默认值,8k对应默认值为3200, 16k对应默认值为6400。
|
protected java.lang.String |
engineModelType
引擎模型类型。
|
protected java.lang.Long |
expired
签名的有效期,是一个符合 UNIX Epoch 时间戳规范的数值,单位为秒;Expired 必须大于 Timestamp 且 Expired - Timestamp 小于90天。
|
protected java.util.Map<java.lang.String,java.lang.Object> |
extendsParam
扩展字段
|
protected java.lang.Integer |
filterDirty
是否过滤脏词(目前支持中文普通话引擎)。
|
protected java.lang.Integer |
filterModal
是否过滤语气词(目前支持中文普通话引擎)。
|
protected java.lang.Integer |
filterPunc
是否过滤句末的句号(目前支持中文普通话引擎)。
|
protected java.lang.String |
hotWordId
热词 id。
|
protected java.lang.Integer |
needVad
0:关闭 vad,1:开启 vad。
|
protected java.lang.Integer |
nonce
随机正整数。
|
protected java.lang.Integer |
projectId
腾讯云项目 ID,语音识别目前不区分项目,所以填0即可。
|
protected java.lang.Integer |
resType
结果返回方式。
|
protected java.lang.Integer |
resultTextFormat
识别结果文本编码方式。
|
protected java.lang.Integer |
source
默认值为 0。
|
protected java.lang.Integer |
subServiceType
子服务类型。
|
protected java.lang.Integer |
timeout
设置超时时间,单位为毫秒。
|
protected java.lang.Long |
timestamp
当前 UNIX 时间戳,可记录发起 API 请求的时间。
|
protected java.lang.Integer |
vadSilenceTime
语音断句检测阈值,静音时长超过该阈值会被认为断句(多用在智能客服场景,需配合 needvad=1 使用),取值范围150-2000,单位 ms,目前仅支持 8k_zh 引擎模型。
|
protected java.lang.Integer |
voiceFormat
语音编码方式,可选,默认值为 4。
|
protected java.lang.Integer |
wordInfo
是否显示词级别时间戳。
|
| 构造器和说明 |
|---|
AsrRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static AsrRequest |
init()
对参数进行默认初始化
|
protected java.lang.Integer cutLength
原因是: 1. 如果设置太小,则发出的分片数量特别多,会影响最终的识别速度; 2. 如果设置太大,则中间结果返回的相对较慢,总的识别速度也并不是最快。
protected java.lang.Integer projectId
protected java.lang.Integer subServiceType
protected java.lang.String engineModelType
protected java.lang.String hotWordId
protected java.lang.Integer resultTextFormat
protected java.lang.Integer resType
protected java.lang.Integer voiceFormat
protected java.lang.Integer needVad
protected java.lang.Integer vadSilenceTime
protected java.lang.Integer source
protected java.lang.Long timestamp
protected java.lang.Long expired
protected java.lang.Integer timeout
protected java.lang.Integer nonce
protected java.lang.Integer filterDirty
protected java.lang.Integer filterModal
protected java.lang.Integer filterPunc
protected java.lang.Integer convertNumMode
protected java.lang.Integer wordInfo
protected java.util.Map<java.lang.String,java.lang.Object> extendsParam
public static AsrRequest init()
Copyright © 2023. All rights reserved.