-
联系顶顶通申请Asrproxy授权,勾选asrproxy和asrserver模块。
-
下载语音识别模型 链接: https://pan.baidu.com/s/1ugh-fVwhdt30A0ueMjdvHg?pwd=65e4 提取码: 65e4
-
安装asrproxy到/ddt/asrproxy,模型解压到 /ddt/asrproxy/model
-
对接mod_vad
- asrproxy.json 配置如下
{"key":"asrproxy.license", //授权文件路径"log":{"console_level":0, //输出控制台日志等级0-5(0:DEBUG, 1:INFO, 2:NOTICE, 3:WARNING, 4:CRIT, 5:CONSOLE)"file_level":0, //输出到文件日志等级0-5(0:DEBUG, 1:INFO, 2:NOTICE, 3:WARNING, 4:CRIT, 5:CONSOLE)"file_maxsize":100, //文件大于多少M就自动创建新的日志文件。"file_number":10 //最大保留日志文件个数},"short_sentence_asr":{"listen_ip":"0.0.0.0","listen_port":9990,"users":{// samrtivr.json配置的keylist.id"test":{ "key":"test", //smartivr.json配置的 keylist.secret"ip":"*" //*任意IP都可以访问,也可以限制可以访问的ip}}},"asr":{"interface": {"funasr": {"type": "funasr","engine": "sentence", //一句话"model-dir": "model/paraformer-large"}},"groups":{"shortsentence":{"mode":0,"enable":["funasr"]}}} }
- smartivr.json配置如下
"asr": {"ddt": {"mode": 0,"connecttimeout": 2000,"responsetimeout": 5000,"url":"http://asr服务器IP:9990/asr","engine":"shortsentence","keylist": [{"id": "test","secret": "test"}]},"enable": ["ddt"],"mode": 0 }
-
对接mod_cti
- asrproxy.json 配置如下
"asr":{"interface": {"funasr_realtime": {"type": "funasr","engine": "2pass",//offline:关闭实时识别 online:开启实时识别 2pass:混合2种模式,需要更多CPU。"model-dir": "model/paraformer-large","online-model-dir": "model/paraformer-large-online","punc-dir": "model/punc-realtime"},"groups":{//默认使用的ASR"default":{ "mode":0, //0:顺序使用,当使用数量等于count的时候切换下一个 1:循环使用"enable": //启用的那些ASR配置["funasr_realtime"]}}