sdmswitch/sdm/data/nls-cloud-sdm/conf/service-asr.json
2023-10-11 04:39:21 +00:00

32 lines
2.3 KiB
JSON
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"url": "wss://nls-gateway.cn-shanghai.aliyuncs.com/ws/v1",
"appkey": "",
"format": "pcm",
"sample_rate": 8000,
"enable_intermediate_result": 1,
"enable_punctuation_prediction": 1,
"enable_inverse_text_normalization": 1,
"enable_semantic_sentence_detection": 0,
"enable_ignore_sentence_timeout": 1,
"enable_ner": 0,
"ner_name": "aca",
"enbale_gender_detect": 0,
"desc": {
"notice": "此处仅仅是描述信息,无需修改",
"url": "访问ASR的url, 如果是调用公有云ASR无需变动如果是调用私有云ASR需根据现场部署情况进行设置一般为:vip://gateway-ip.vipserver_1:port_1,gateway-ip.vipserver_2:port_2/vipTargetDomain其中vipServerIp:port可以有一个或者多个用逗号分割端口不指定默认为80最后指定vipServer的Domain",
"appkey": "appkey, 调用公有云ASR时需要在阿里云官网获取, 调用私有云ASR时固定设置为(全小写):default",
"format": "编码格式pcm或opu, 保持pcm不变",
"sample_rate": "采样率, 8000或16000, 保持8000不变",
"enable_intermediate_result": "设置是否返回中间识别结果, 可选参数. 服务端默认0",
"enable_punctuation_prediction": "设置是否在识别结果中添加标点, 可选参数. 服务端默认0",
"enable_inverse_text_normalization": "设置是否在识别结果中执行文本正则化/数字转换, 比如'一千六百五十'会返回'1650', 可选参数. 服务端默认0",
"enable_semantic_sentence_detection": "设置是否使用语义断句, 可选参数. 服务端默认0, 保持配置0不变",
"customization_id": "设置热词定制模型id, 默认不设置除非已经训练了定制模型且通过本配置生效则需要在上面json格式上增加",
"vocabulary_id": "设置热词id, 默认不设置除非已经训练了定制热词且通过本配置生效则需要在上面json格式上增加",
"class_vocabulary_id": "设置类热词id, 默认不设置除非已经训练了定制类热词且通过本配置生效则需要在上面json格式上增加",
"als_am_id": "在am混部时候设置的am模型id",
"enable_ner": "启动ner、地址解析功能默认不启用",
"enbale_gender_detect": "是否开启性别识别,默认不启用"
}
}