Compare commits

..

3 Commits

Author SHA1 Message Date
Dave Horton
9513e0e6ab 0.0.31 2023-09-11 07:44:15 -04:00
Dave Horton
3436ac5db8 more changes for cobalt 2023-08-29 12:50:01 -04:00
Dave Horton
e0ddcea74b add support for cobalt 2023-08-29 12:39:13 -04:00
4 changed files with 10 additions and 87 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@jambonz/verb-specifications",
"version": "0.0.39",
"version": "0.0.31",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@jambonz/verb-specifications",
"version": "0.0.39",
"version": "0.0.31",
"license": "MIT",
"dependencies": {
"debug": "^4.3.4",

View File

@@ -1,6 +1,6 @@
{
"name": "@jambonz/verb-specifications",
"version": "0.0.39",
"version": "0.0.31",
"description": "Jambonz Verb Specification Utilities",
"main": "index.js",
"scripts": {

View File

@@ -46,9 +46,7 @@
"amd": "#amd",
"notifyEvents": "boolean",
"reset": "string|array",
"onHoldMusic": "string",
"actionHookDelayAction": "#actionHookDelayAction",
"sipRequestWithinDialogHook": "object|string"
"onHoldMusic": "string"
},
"required": []
},
@@ -62,12 +60,7 @@
"type": "string",
"enum": ["mono", "stereo", "mixed"]
},
"metadata": "object",
"maxLength": "number",
"passDtmf": "boolean",
"playBeep": "boolean",
"disableBidirectionalAudio": "boolean",
"timeout": "number"
"metadata": "object"
},
"required": [
"enable"
@@ -176,8 +169,7 @@
"timeout": "number",
"recognizer": "#recognizer",
"play": "#play",
"say": "#say",
"actionHookDelayAction": "#actionHookDelayAction"
"say": "#say"
},
"required": [
]
@@ -410,8 +402,7 @@
"to": "#target",
"headers": "object",
"timeout": "number",
"amd": "#amd",
"dual_streams" : "boolean"
"amd": "#amd"
},
"required": [
"call_hook",
@@ -577,7 +568,6 @@
"azureSttEndpointId": "string",
"asrDtmfTerminationDigit": "string",
"asrTimeout": "number",
"fastRecognitionTimeout": "number",
"nuanceOptions": "#nuanceOptions",
"deepgramOptions": "#deepgramOptions",
"ibmOptions": "#ibmOptions",
@@ -601,12 +591,7 @@
},
"cobaltOptions": {
"properties": {
"serverUri": "string",
"enableConfusionNetwork": "boolean",
"metadata": "string",
"compiledContextData": "string",
"wordTimeOffsets": "boolean",
"contextToken": "string"
"serverUri": "string"
},
"required": [
]
@@ -649,7 +634,6 @@
"customModel": "string",
"version": "string",
"punctuate": "boolean",
"smartFormatting": "boolean",
"profanityFilter": "boolean",
"redact": {
"type": "string",
@@ -670,7 +654,6 @@
"replace": "array",
"keywords": "array",
"endpointing": "boolean | number",
"utteranceEndMs": "number",
"vadTurnoff": "number",
"tag": "string"
}
@@ -845,14 +828,5 @@
"toneTimeoutMs": "number",
"greetingCompletionTimeoutMs": "number"
}
},
"actionHookDelayAction" : {
"properties": {
"enabled": "boolean",
"noResponseTimeout": "number",
"noResponseGiveUpTimeout": "number",
"retries": "number",
"actions": "array"
}
}
}

View File

@@ -37,30 +37,7 @@ test("validate correct verbs", async (t) => {
"input" : ["speech"],
"actionHook": "/userInput"
},
"onHoldMusic": "http://server.com/hold",
"actionHookDelayAction": {
"enabled": true,
"noResponseTimeout": 5,
"noResponseGiveUpTimeout": 10,
"retries": 3,
"actions": [
{
"verb": "say",
"text": "To speak to Sales press 1 or say Sales. To speak to customer support press 2 or say Support",
"synthesizer": {
"vendor": "google",
"language": "en-US"
}
},
{
"verb": "play",
"url": "https://example.com/example.mp3",
"timeoutSecs": 10,
"seekOffset": 8000,
"actionHook": "/play/action"
}
]
}
"onHoldMusic": "http://server.com/hold"
},
{
"verb": "config",
@@ -73,10 +50,6 @@ test("validate correct verbs", async (t) => {
}
}
},
{
"verb": "config",
"sipRequestWithinDialogHook": "https://jambonz.or/sipIndialogActionHook"
},
{
"verb": "config",
"record": {
@@ -162,7 +135,6 @@ test("validate correct verbs", async (t) => {
"language": "en-US",
"hints": ["sales", "support"],
"hintsBoost": 10,
"fastRecognitionTimeout": 2000,
"deepgramOptions": {
"endpointing": 500
}
@@ -201,28 +173,6 @@ test("validate correct verbs", async (t) => {
"endpointing": true
}
},
"actionHookDelayAction": {
"noResponseTimeout": 5,
"noResponseGiveUpTimeout": 10,
"retries": 3,
"actions": [
{
"verb": "say",
"text": "To speak to Sales press 1 or say Sales. To speak to customer support press 2 or say Support",
"synthesizer": {
"vendor": "google",
"language": "en-US"
}
},
{
"verb": "play",
"url": "https://example.com/example.mp3",
"timeoutSecs": 10,
"seekOffset": 8000,
"actionHook": "/play/action"
}
]
}
},
{
"verb": "hangup",
@@ -362,8 +312,7 @@ test("validate correct verbs", async (t) => {
"amd": {
"actionHook": "/answeringMachineDetection",
},
"dual_streams": true
}
}
];
try {