阿里云国际站对接例子
# ASR对接例子
/*阿里云国际站 开通说明 https://www.alibabacloud.com/help/zh/isi/getting-started/start-here*/
"aliyun_international": {
"count": 0, //最大多少并发
"fault_threshold": 0, //连续错误多少次停用
"fault_try_interval": 600, //停用多久后,从新尝试用这个KEY
"type": "aliyun", //识别引擎,通过配置指定调用的ASR类型
"engine": "transcriber", //transcriber:流接口,recognizer:一句话接口
"appid": "", //项目APPKEY,详细看开通说明 https://www.alibabacloud.com/help/zh/isi/getting-started/manage-projects
"key": "", //AccessKey ID 看secret的说明
"secret": "", //AccessKey Secret 需要给予智能语音交换的权限 详细看 https://www.alibabacloud.com/help/zh/isi/activate-intelligent-speech-interaction-1
"url":"ws://nls-gateway-ap-southeast-1.aliyuncs.com/ws/v1", // 接口地址详细看 https://www.alibabacloud.com/help/zh/isi/developer-reference/api-reference
"tokenurl":"http://nlsmeta.ap-southeast-1.aliyuncs.com", // tokenurl、regionid、version 这3个参数 国际站才需要配置 具体看 https://www.alibabacloud.com/help/zh/isi/getting-started/use-http-or-https-to-obtain-an-access-token
"regionid":"ap-southeast-1",
"version":"2019-02-28",
"enable_intermediate_result": true, //设置是否返回中间识别结果
"enable_punctuation_prediction": false, //设置是否在后处理中添加标点
"enable_inverse_text_normalization": false, //设置是否在后处理中执行数字转换
"enable_semantic_sentence_detection": false, //设置是否使用语义断句。
"nlpmodel": "", //设置NLP模型名称,开启NLP服务后必填
"customizationid": "", //设置定制模型
"vocabularyid": "", //设置泛热词
"enable_ignore_sentencetimeout": true, //是否忽略实时识别中的单句识别超时, 默认是False
"disfluency": true, //是否对识别文本进行顺滑(去除语气词,重复说等), 默认是False
"speech_noise_threshold": 0.1, //噪音参数阈值,参数范围:[-1,1]取值越趋于-1:噪音被判定为语音的概率越大,取值越趋于+1:语音被判定为噪音的概率越大,该参数属高级参数, 调整需慎重并重点测试
"enable_sdk_log": false
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# TTS对接例子
"aliyun_international": {
"count": 0, //最大多少并发
"fault_threshold": 0, //连续错误多少次停用
"fault_try_interval": 600, //停用多久后,从新尝试用这个KEY
"type": "aliyun", //TTS引擎,通过配置指定调用的TTS类型
"appid": "", //项目APPKEY,详细看开通说明 https://www.alibabacloud.com/help/zh/isi/getting-started/manage-projects
"key": "", //AccessKey ID 看secret的说明
"secret": "", //AccessKey Secret 需要给予智能语音交换的权限 详细看 https://www.alibabacloud.com/help/zh/isi/activate-intelligent-speech-interaction-1
"url":"ws://nls-gateway-ap-southeast-1.aliyuncs.com/ws/v1", // 接口地址详细看 https://www.alibabacloud.com/help/zh/isi/developer-reference/api-reference
"tokenurl":"http://nlsmeta.ap-southeast-1.aliyuncs.com", // tokenurl、regionid、version 这3个参数 国际站才需要配置 具体看 https://www.alibabacloud.com/help/zh/isi/getting-started/use-http-or-https-to-obtain-an-access-token
"regionid":"ap-southeast-1",
"version":"2019-02-28"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
上次更新: 2024/12/03, 19:18:14