一句话模型对接方式
# mod_vad 对接
# 1. 获取mod_vad版本信息
SSH控制执行命令:fs_cli -x "vad_status"
,或者freeswitch控制台执行命令:vad_status
,可获取到mod_vad版本信息,然后根据版本信息配置smartivr.json文件。
# 2. 配置smartivr.json文件
mod_vad版本如果是4.0以上,请使用以下配置:
{ "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 }
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23mod_vad版本如果是4.0以下,请使用以下配置:
{ "asr": { "customasr": { "mode": 0, "connecttimeout": 1000, "responsetimeout": 2000, "url":"http://asr服务器IP:9990/test", "keylist": [{ "id": "test", "secret": "test" }] }, "enable": [ "customasr" ], "mode": 0 }
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 3. 重启smartivr程序
如果通过任务计划执行smartivrcheck脚本启动的程序,需要先kill掉程序进程,然后等待一分钟,程序会自动启动。执行以下命令kill掉smartivr的程序进程:
kill -9 `pgrep smartivr`
1
上次更新: 2025/02/15, 15:05:32