mirror of
https://github.com/jambonz/verb-specifications.git
synced 2026-01-25 02:08:06 +00:00
feat support mod vad detect (#54)
This commit is contained in:
@@ -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": [
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user