diff --git a/specs.json b/specs.json index 4fe77fc..a9d45cc 100644 --- a/specs.json +++ b/specs.json @@ -627,7 +627,7 @@ "search": "array", "replace": "array", "keywords": "array", - "endpointing": "boolean", + "endpointing": "boolean | number", "vadTurnoff": "number", "tag": "string" } diff --git a/test/jambonz-verb-test.js b/test/jambonz-verb-test.js index bffefee..fce0058 100644 --- a/test/jambonz-verb-test.js +++ b/test/jambonz-verb-test.js @@ -110,7 +110,10 @@ test("validate correct verbs", async (t) => { "vendor": "google", "language": "en-US", "hints": ["sales", "support"], - "hintsBoost": 10 + "hintsBoost": 10, + "deepgramOptions": { + "endpointing": 500 + } }, "say": { "text": "To speak to Sales press 1 or say Sales. To speak to customer support press 2 or say Support", @@ -120,6 +123,25 @@ 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": "google", + "language": "en-US", + "hints": ["sales", "support"], + "hintsBoost": 10, + "deepgramOptions": { + "endpointing": true + } + }, + }, { "verb": "hangup", "headers": {