feat support mod vad detect (#54)

This commit is contained in:
Hoan Luu Huu
2024-05-28 19:38:20 +07:00
committed by GitHub
parent 569b994356
commit 0f9c096988
2 changed files with 14 additions and 1 deletions

View File

@@ -58,7 +58,8 @@
"onHoldMusic": "string",
"actionHookDelayAction": "#actionHookDelayAction",
"sipRequestWithinDialogHook": "object|string",
"boostAudioSignal": "number|string"
"boostAudioSignal": "number|string",
"vad":"#vad"
},
"required": []
},
@@ -946,6 +947,8 @@
"properties": {
"enable": "boolean",
"voiceMs": "number",
"silenceMs": "number",
"strategy": "string",
"mode": "number"
},
"required": [

View File

@@ -337,6 +337,16 @@ test("validate correct verbs", async (t) => {
}
}
},
{
"verb": "config",
"vad": {
"enable": true,
"voiceMs": 250,
"silenceMs": 150,
"strategy": "one-shot",
"mode": 2
}
},
{
"verb": "message",
"to": "15083084809",