verbioOptions support (#53)

This commit is contained in:
Hoan Luu Huu
2024-05-29 18:12:09 +07:00
committed by GitHub
parent 27b1a06944
commit c029a18c3e
2 changed files with 42 additions and 1 deletions

View File

@@ -228,6 +228,31 @@ test("validate correct verbs", async (t) => {
}
}
},
{
"verb": "gather",
"actionHook": "http://example.com/collect",
"input": ["digits", "speech"],
"bargein": true,
"dtmfBargein": true,
"finishOnKey": "#",
"numDigits": 5,
"timeout": 8,
"recognizer": {
"vendor": "verbio",
"language": "en-US",
"verbioOptions": {
"enable_formatting": true,
"enable_diarization": true,
"topic": 0,
"inline_grammar": "this is inline grammar",
"grammar_uri": "https://grammar_uri.com",
"label": "label",
"recognition_timeout": 500,
"speech_complete_timeout": 500,
"speech_incomplete_timeout": 500,
}
},
},
{
"verb": "gather",
"actionHook": "http://example.com/collect",