mirror of
https://github.com/jambonz/verb-specifications.git
synced 2026-03-26 05:47:53 +00:00
Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
637431468d | ||
|
|
4a817c97b2 | ||
|
|
ce44bf41d4 | ||
|
|
ab84583eff | ||
|
|
13901713b8 | ||
|
|
85fd68af16 | ||
|
|
5a5a397a68 | ||
|
|
b85c7ac743 | ||
|
|
82c6952f70 | ||
|
|
fc95fa3d02 | ||
|
|
6b3ee83d08 | ||
|
|
3700ba6607 | ||
|
|
09a76f44cb | ||
|
|
aa445c1edb | ||
|
|
57887a660c | ||
|
|
e9dace6495 | ||
|
|
762a9639bd | ||
|
|
2740eb9848 | ||
|
|
1a525e7a3e | ||
|
|
f16b49cc23 | ||
|
|
1cc7dae926 | ||
|
|
8c50bf8764 | ||
|
|
e2bffbe0a8 | ||
|
|
4b79b1408b | ||
|
|
900d517b8a | ||
|
|
104ca00a3d | ||
|
|
7b3dd92c18 | ||
|
|
43a2805ea8 |
2596
package-lock.json
generated
2596
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@jambonz/verb-specifications",
|
||||
"version": "0.0.88",
|
||||
"version": "0.0.102",
|
||||
"description": "Jambonz Verb Specification Utilities",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
@@ -20,7 +20,7 @@
|
||||
"devDependencies": {
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-plugin-promise": "^4.3.1",
|
||||
"tape": "^5.6.1"
|
||||
"tape": "^5.7.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "^4.3.4",
|
||||
|
||||
117
specs.json
117
specs.json
@@ -34,6 +34,7 @@
|
||||
"id": "string",
|
||||
"referTo": "string",
|
||||
"referredBy": "string",
|
||||
"referredByDisplayName": "string",
|
||||
"headers": "object",
|
||||
"actionHook": "object|string",
|
||||
"eventHook": "object|string"
|
||||
@@ -48,8 +49,10 @@
|
||||
"synthesizer": "#synthesizer",
|
||||
"recognizer": "#recognizer",
|
||||
"bargeIn": "#bargeIn",
|
||||
"ttsStream": "#ttsStream",
|
||||
"record": "#recordOptions",
|
||||
"listen": "#listenOptions",
|
||||
"stream": "#listenOptions",
|
||||
"transcribe": "#transcribeOptions",
|
||||
"amd": "#amd",
|
||||
"fillerNoise": "#fillerNoise",
|
||||
@@ -97,6 +100,15 @@
|
||||
"enable"
|
||||
]
|
||||
},
|
||||
"ttsStream": {
|
||||
"properties": {
|
||||
"enable": "boolean",
|
||||
"synthesizer": "#synthesizer"
|
||||
},
|
||||
"required": [
|
||||
"enable"
|
||||
]
|
||||
},
|
||||
"bargeIn": {
|
||||
"properties": {
|
||||
"enable": "boolean",
|
||||
@@ -278,6 +290,7 @@
|
||||
"exitMediaPath": "boolean",
|
||||
"boostAudioSignal": "number|string",
|
||||
"listen": "#listen",
|
||||
"stream": "#listen",
|
||||
"target": ["#target"],
|
||||
"timeLimit": "number",
|
||||
"timeout": "number",
|
||||
@@ -369,6 +382,34 @@
|
||||
]
|
||||
},
|
||||
"listen": {
|
||||
"properties": {
|
||||
"id": "string",
|
||||
"actionHook": "object|string",
|
||||
"auth": "#auth",
|
||||
"finishOnKey": "string",
|
||||
"maxLength": "number",
|
||||
"metadata": "object",
|
||||
"mixType": {
|
||||
"type": "string",
|
||||
"enum": ["mono", "stereo", "mixed"]
|
||||
},
|
||||
"passDtmf": "boolean",
|
||||
"playBeep": "boolean",
|
||||
"disableBidirectionalAudio": "boolean",
|
||||
"bidirectionalAudio": "#bidirectionalAudio",
|
||||
"sampleRate": "number",
|
||||
"timeout": "number",
|
||||
"transcribe": "#transcribe",
|
||||
"url": "string",
|
||||
"wsAuth": "#auth",
|
||||
"earlyMedia": "boolean",
|
||||
"channel": "number"
|
||||
},
|
||||
"required": [
|
||||
"url"
|
||||
]
|
||||
},
|
||||
"stream": {
|
||||
"properties": {
|
||||
"id": "string",
|
||||
"actionHook": "object|string",
|
||||
@@ -410,7 +451,6 @@
|
||||
},
|
||||
"required": [
|
||||
"vendor",
|
||||
"model",
|
||||
"auth",
|
||||
"llmOptions"
|
||||
]
|
||||
@@ -508,7 +548,8 @@
|
||||
"amd": "#amd",
|
||||
"dual_streams": "boolean",
|
||||
"sipRequestWithinDialogHook": "string",
|
||||
"referHook": "object|string"
|
||||
"referHook": "object|string",
|
||||
"timeLimit": "number"
|
||||
},
|
||||
"required": [
|
||||
"call_hook",
|
||||
@@ -691,7 +732,8 @@
|
||||
"googleOptions": "#googleOptions",
|
||||
"customOptions": "#customOptions",
|
||||
"verbioOptions": "#verbioOptions",
|
||||
"speechmaticsOptions": "#speechmaticsOptions"
|
||||
"speechmaticsOptions": "#speechmaticsOptions",
|
||||
"openaiOptions": "#openaiOptions"
|
||||
},
|
||||
"required": [
|
||||
"vendor"
|
||||
@@ -740,6 +782,14 @@
|
||||
"AtStart",
|
||||
"Continuous"
|
||||
]
|
||||
},
|
||||
"speechRecognitionMode": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"CONVERSATION",
|
||||
"DICTATION",
|
||||
"INTERACTIVE"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -814,6 +864,7 @@
|
||||
"version": "string",
|
||||
"punctuate": "boolean",
|
||||
"smartFormatting": "boolean",
|
||||
"noDelay": "boolean",
|
||||
"profanityFilter": "boolean",
|
||||
"redact": {
|
||||
"type": "string",
|
||||
@@ -833,11 +884,13 @@
|
||||
"search": "array",
|
||||
"replace": "array",
|
||||
"keywords": "array",
|
||||
"keyterms": "array",
|
||||
"endpointing": "boolean | number",
|
||||
"utteranceEndMs": "number",
|
||||
"shortUtterance": "boolean",
|
||||
"vadTurnoff": "number",
|
||||
"tag": "string"
|
||||
"tag": "string",
|
||||
"fillerWords" : "boolean"
|
||||
}
|
||||
},
|
||||
"sonioxOptions": {
|
||||
@@ -868,6 +921,60 @@
|
||||
"required": [
|
||||
]
|
||||
},
|
||||
"openaiOptions": {
|
||||
"properties": {
|
||||
"apiKey": "string",
|
||||
"model": "string",
|
||||
"prompt": "string",
|
||||
"promptTemplates": "#promptTemplates",
|
||||
"language": "string",
|
||||
"input_audio_noise_reduction": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"near_field",
|
||||
"far_field"
|
||||
]
|
||||
},
|
||||
"turn_detection": "#turnDetection"
|
||||
},
|
||||
"required": [
|
||||
]
|
||||
},
|
||||
"promptTemplates": {
|
||||
"properties": {
|
||||
"hintsTemplate": "string",
|
||||
"conversationHistoryTemplate": "string"
|
||||
},
|
||||
"required": [
|
||||
]
|
||||
},
|
||||
"turnDetection": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"none",
|
||||
"server_vad",
|
||||
"semantic_vad"
|
||||
]
|
||||
},
|
||||
"eagerness": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"auto"
|
||||
]
|
||||
},
|
||||
"threshold": "number",
|
||||
"prefix_padding_ms": "number",
|
||||
"silence_duration_ms": "number"
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"speechmaticsOptions": {
|
||||
"properties": {
|
||||
"transcription_config": "#sm_transcriptionConfig",
|
||||
@@ -880,6 +987,7 @@
|
||||
"sm_transcriptionConfig": {
|
||||
"properties": {
|
||||
"language": "string",
|
||||
"domain": "string",
|
||||
"additional_vocab": "array",
|
||||
"diarization": "string",
|
||||
"speaker_diarization_config": "#sm_speakerDiarizationConfig",
|
||||
@@ -1107,6 +1215,7 @@
|
||||
"properties": {
|
||||
"actionHook": "object|string",
|
||||
"thresholdWordCount": "number",
|
||||
"digitCount": "number",
|
||||
"timers": "#amdTimers",
|
||||
"recognizer": "#recognizer"
|
||||
},
|
||||
|
||||
@@ -139,6 +139,7 @@ test("validate correct verbs", async (t) => {
|
||||
"callerName": "Tom",
|
||||
"answerOnBridge": true,
|
||||
"dtmfCapture": ["*2", "*3"],
|
||||
"timeLimit": 10,
|
||||
"dtmfHook": {
|
||||
"url": "/dtmf",
|
||||
"method": "GET"
|
||||
@@ -204,7 +205,8 @@ test("validate correct verbs", async (t) => {
|
||||
"hintsBoost": 10,
|
||||
"fastRecognitionTimeout": 2000,
|
||||
"deepgramOptions": {
|
||||
"endpointing": 500
|
||||
"endpointing": 500,
|
||||
"noDelay": true,
|
||||
}
|
||||
},
|
||||
"say": {
|
||||
@@ -440,6 +442,12 @@ test("validate correct verbs", async (t) => {
|
||||
"referTo": "+15083084809",
|
||||
"actionHook": "/action"
|
||||
},
|
||||
{
|
||||
"verb": "sip:refer",
|
||||
"referTo": "+15083084809",
|
||||
"referredByDisplayName": "Alice",
|
||||
"actionHook": "/action"
|
||||
},
|
||||
{
|
||||
"verb": "tag",
|
||||
"data": {
|
||||
@@ -512,7 +520,8 @@ test("validate correct verbs", async (t) => {
|
||||
"actionHook": "/answeringMachineDetection",
|
||||
|
||||
},
|
||||
"dual_streams": true
|
||||
"dual_streams": true,
|
||||
"timeLimit" : 10
|
||||
}
|
||||
];
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user