Compare commits

...

8 Commits

Author SHA1 Message Date
Dave Horton
874abac5e3 0.0.18 2023-05-06 21:12:49 -04:00
Dave Horton
827ddcebf0 Merge pull request #9 from jambonz/feat/metadata
feat: add rest:dial metadata
2023-05-06 21:11:56 -04:00
Quan HL
98043693be feat: add rest:dial metadata 2023-05-07 06:39:35 +07:00
Dave Horton
436c8e1861 0.0.17 2023-04-28 07:39:08 -04:00
Dave Horton
21214eb2ce Merge pull request #8 from jambonz/feat/deepgram_endpointing
deepgram: endpointing support number
2023-04-28 07:38:15 -04:00
Quan HL
017b8cd0c3 deepgram: endpointing support number 2023-04-28 11:32:15 +07:00
Dave Horton
8ae7419b7a 0.0.16 2023-04-13 13:13:53 -04:00
Dave Horton
11c34aa6fc dont restrict deepgram tier 2023-04-13 13:13:43 -04:00
4 changed files with 49 additions and 13 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@@ -394,7 +394,8 @@
"tag": "object",
"to": "#target",
"headers": "object",
"timeout": "number"
"timeout": "number",
"metadata": "object"
},
"required": [
"call_hook",
@@ -603,13 +604,7 @@
"deepgramOptions": {
"properties": {
"apiKey": "string",
"tier": {
"type": "string",
"enum": [
"enhanced",
"base"
]
},
"tier": "string",
"model": "string",
"customModel": "string",
"version": "string",
@@ -633,7 +628,7 @@
"search": "array",
"replace": "array",
"keywords": "array",
"endpointing": "boolean",
"endpointing": "boolean | number",
"vadTurnoff": "number",
"tag": "string"
}

View File

@@ -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": {
@@ -236,6 +258,25 @@ test("validate correct verbs", async (t) => {
"language" : "en-US",
"interim": true
}
},
{
"verb": "rest:dial",
account_sid: "1291964182631236912836123912",
call_hook: {
url: "http://127.0.0.1:3100/",
method: "POST",
username: "username",
password: "password",
},
from: "15583084810",
to: {
type: "phone",
number: "15583084809",
},
metadata: {
customer: "acme",
referenceId: "deadbeef",
}
}
];
try {