mirror of
https://github.com/jambonz/verb-specifications.git
synced 2026-03-26 05:47:53 +00:00
Compare commits
42 Commits
v0.0.93
...
feat/ttsCa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
241bb4cf42 | ||
|
|
4ea9cda0f8 | ||
|
|
a0b9f963c2 | ||
|
|
841a471faa | ||
|
|
44112f67b3 | ||
|
|
1f7c98c0ce | ||
|
|
276a55e672 | ||
|
|
840db61042 | ||
|
|
85e1b64ee4 | ||
|
|
8ed54e2d51 | ||
|
|
c24fb7996c | ||
|
|
6c24ad1145 | ||
|
|
af3955cb35 | ||
|
|
1ee29749c3 | ||
|
|
dea57e0910 | ||
|
|
f444a57bcd | ||
|
|
a9a2339821 | ||
|
|
95f3a06625 | ||
|
|
985476e8b1 | ||
|
|
1782db362e | ||
|
|
e654ee9e10 | ||
|
|
38d1d04c4a | ||
|
|
5cbd3886d1 | ||
|
|
de8dfc9202 | ||
|
|
637431468d | ||
|
|
4a817c97b2 | ||
|
|
ce44bf41d4 | ||
|
|
ab84583eff | ||
|
|
13901713b8 | ||
|
|
85fd68af16 | ||
|
|
5a5a397a68 | ||
|
|
b85c7ac743 | ||
|
|
82c6952f70 | ||
|
|
fc95fa3d02 | ||
|
|
6b3ee83d08 | ||
|
|
3700ba6607 | ||
|
|
09a76f44cb | ||
|
|
aa445c1edb | ||
|
|
57887a660c | ||
|
|
e9dace6495 | ||
|
|
762a9639bd | ||
|
|
2740eb9848 |
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.93",
|
||||
"version": "0.0.113",
|
||||
"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",
|
||||
|
||||
176
specs.json
176
specs.json
@@ -1,4 +1,28 @@
|
||||
{
|
||||
"pipeline": {
|
||||
"properties": {
|
||||
"id": "string",
|
||||
"stt": "#recognizer",
|
||||
"tts": "#synthesizer",
|
||||
"vad": "#vad",
|
||||
"llm": "#llm",
|
||||
"preflightLlm": "boolean",
|
||||
"actionHook": "object|string"
|
||||
},
|
||||
"required": [
|
||||
"stt",
|
||||
"tts"
|
||||
]
|
||||
},
|
||||
"alert" : {
|
||||
"properties": {
|
||||
"id": "string",
|
||||
"message": "string"
|
||||
},
|
||||
"required": [
|
||||
"message"
|
||||
]
|
||||
},
|
||||
"answer": {
|
||||
"properties": {
|
||||
"id": "string"
|
||||
@@ -52,10 +76,12 @@
|
||||
"ttsStream": "#ttsStream",
|
||||
"record": "#recordOptions",
|
||||
"listen": "#listenOptions",
|
||||
"stream": "#listenOptions",
|
||||
"transcribe": "#transcribeOptions",
|
||||
"amd": "#amd",
|
||||
"fillerNoise": "#fillerNoise",
|
||||
"notifyEvents": "boolean",
|
||||
"notifySttLatency": "boolean",
|
||||
"reset": "string|array",
|
||||
"onHoldMusic": "string",
|
||||
"actionHookDelayAction": "#actionHookDelayAction",
|
||||
@@ -63,7 +89,9 @@
|
||||
"boostAudioSignal": "number|string",
|
||||
"vad":"#vad",
|
||||
"referHook": "object|string",
|
||||
"earlyMedia": "boolean"
|
||||
"earlyMedia": "boolean",
|
||||
"autoStreamTts": "boolean",
|
||||
"disableTtsCache": "boolean"
|
||||
},
|
||||
"required": []
|
||||
},
|
||||
@@ -212,6 +240,7 @@
|
||||
"properties": {
|
||||
"id": "string",
|
||||
"text": "string|array",
|
||||
"instructions": "string",
|
||||
"stream": "boolean",
|
||||
"loop": "number|string",
|
||||
"synthesizer": "#synthesizer",
|
||||
@@ -289,6 +318,7 @@
|
||||
"exitMediaPath": "boolean",
|
||||
"boostAudioSignal": "number|string",
|
||||
"listen": "#listen",
|
||||
"stream": "#listen",
|
||||
"target": ["#target"],
|
||||
"timeLimit": "number",
|
||||
"timeout": "number",
|
||||
@@ -296,7 +326,8 @@
|
||||
"transcribe": "#transcribe",
|
||||
"amd": "#amd",
|
||||
"dub": ["#dub"],
|
||||
"tag": "object"
|
||||
"tag": "object",
|
||||
"forwardPAI": "boolean"
|
||||
},
|
||||
"required": [
|
||||
"target"
|
||||
@@ -380,6 +411,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",
|
||||
@@ -413,6 +472,7 @@
|
||||
"model": "string",
|
||||
"auth": "object",
|
||||
"connectOptions": "object",
|
||||
"mcpServers": ["#mcpServer"],
|
||||
"actionHook": "object|string",
|
||||
"eventHook": "object|string",
|
||||
"toolHook": "object|string",
|
||||
@@ -421,11 +481,20 @@
|
||||
},
|
||||
"required": [
|
||||
"vendor",
|
||||
"model",
|
||||
"auth",
|
||||
"llmOptions"
|
||||
]
|
||||
},
|
||||
"mcpServer": {
|
||||
"properties": {
|
||||
"url": "string",
|
||||
"auth": "object",
|
||||
"roots": ["#root"]
|
||||
},
|
||||
"required": [
|
||||
"url"
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"properties": {
|
||||
"id": "string",
|
||||
@@ -547,7 +616,6 @@
|
||||
"channel": "number"
|
||||
},
|
||||
"required": [
|
||||
"transcriptionHook"
|
||||
]
|
||||
},
|
||||
"target": {
|
||||
@@ -703,7 +771,8 @@
|
||||
"googleOptions": "#googleOptions",
|
||||
"customOptions": "#customOptions",
|
||||
"verbioOptions": "#verbioOptions",
|
||||
"speechmaticsOptions": "#speechmaticsOptions"
|
||||
"speechmaticsOptions": "#speechmaticsOptions",
|
||||
"openaiOptions": "#openaiOptions"
|
||||
},
|
||||
"required": [
|
||||
"vendor"
|
||||
@@ -752,6 +821,14 @@
|
||||
"AtStart",
|
||||
"Continuous"
|
||||
]
|
||||
},
|
||||
"speechRecognitionMode": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"CONVERSATION",
|
||||
"DICTATION",
|
||||
"INTERACTIVE"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -826,6 +903,7 @@
|
||||
"version": "string",
|
||||
"punctuate": "boolean",
|
||||
"smartFormatting": "boolean",
|
||||
"noDelay": "boolean",
|
||||
"profanityFilter": "boolean",
|
||||
"redact": {
|
||||
"type": "string",
|
||||
@@ -845,12 +923,18 @@
|
||||
"search": "array",
|
||||
"replace": "array",
|
||||
"keywords": "array",
|
||||
"keyterms": "array",
|
||||
"endpointing": "boolean | number",
|
||||
"utteranceEndMs": "number",
|
||||
"shortUtterance": "boolean",
|
||||
"vadTurnoff": "number",
|
||||
"tag": "string",
|
||||
"fillerWords" : "boolean"
|
||||
"fillerWords" : "boolean",
|
||||
"preflightThreshold": "number",
|
||||
"eotThreshold": "number",
|
||||
"eotTimeoutMs": "number",
|
||||
"mipOptOut": "boolean",
|
||||
"entityPrompt": "string"
|
||||
}
|
||||
},
|
||||
"sonioxOptions": {
|
||||
@@ -881,6 +965,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",
|
||||
@@ -1030,7 +1168,18 @@
|
||||
},
|
||||
"assemblyAiOptions": {
|
||||
"properties": {
|
||||
"apiKey": "string"
|
||||
"apiKey": "string",
|
||||
"serviceVersion": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"v2",
|
||||
"v3"
|
||||
]
|
||||
},
|
||||
"formatTurns": "boolean",
|
||||
"endOfTurnConfidenceThreshold": "number",
|
||||
"minEndOfTurnSilenceWhenConfident": "number",
|
||||
"maxTurnSilence": "number"
|
||||
}
|
||||
},
|
||||
"resource": {
|
||||
@@ -1111,16 +1260,25 @@
|
||||
"voiceMs": "number",
|
||||
"silenceMs": "number",
|
||||
"strategy": "string",
|
||||
"mode": "number"
|
||||
"mode": "number",
|
||||
"vendor": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"webrtc",
|
||||
"silero"
|
||||
]
|
||||
},
|
||||
"threshold": "number",
|
||||
"speechPadMs": "number"
|
||||
},
|
||||
"required": [
|
||||
"enable"
|
||||
]
|
||||
},
|
||||
"amd": {
|
||||
"properties": {
|
||||
"actionHook": "object|string",
|
||||
"thresholdWordCount": "number",
|
||||
"digitCount": "number",
|
||||
"timers": "#amdTimers",
|
||||
"recognizer": "#recognizer"
|
||||
},
|
||||
|
||||
@@ -72,12 +72,18 @@ test("validate correct verbs", async (t) => {
|
||||
},
|
||||
{
|
||||
"verb": "config",
|
||||
"notifySttLatency": true,
|
||||
"recognizer": {
|
||||
"vendor": "google",
|
||||
"language": "de-DE",
|
||||
"label": "label1",
|
||||
"assemblyAiOptions": {
|
||||
"apiKey": "apikey"
|
||||
"apiKey": "apikey",
|
||||
"serviceVersion": "v3",
|
||||
"formatTurns": true,
|
||||
"endOfTurnConfidenceThreshold": 0.5,
|
||||
"minEndOfTurnSilenceWhenConfident": 500,
|
||||
"maxTurnSilence": 2000
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -205,7 +211,12 @@ test("validate correct verbs", async (t) => {
|
||||
"hintsBoost": 10,
|
||||
"fastRecognitionTimeout": 2000,
|
||||
"deepgramOptions": {
|
||||
"endpointing": 500
|
||||
"endpointing": 500,
|
||||
"noDelay": true,
|
||||
preflightThreshold: 1000,
|
||||
eotThreshold: 500,
|
||||
eotTimeoutMs: 5000,
|
||||
mipOptOut: true
|
||||
}
|
||||
},
|
||||
"say": {
|
||||
@@ -220,6 +231,10 @@ test("validate correct verbs", async (t) => {
|
||||
"fallbackVoice": "voice"
|
||||
}
|
||||
},
|
||||
"say": {
|
||||
"text": "To speak to Sales press 1 or say Sales. To speak to customer support press 2 or say Support",
|
||||
"instructions": "Voice: High-energy, upbeat, and encouraging, projecting enthusiasm and motivation."
|
||||
},
|
||||
"say": {
|
||||
"text": "To speak to Sales press 1 or say Sales. To speak to customer support press 2 or say Support",
|
||||
"synthesizer": {
|
||||
@@ -373,6 +388,10 @@ test("validate correct verbs", async (t) => {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"verb": "config",
|
||||
"autoStreamTts": true
|
||||
},
|
||||
{
|
||||
"verb": "config",
|
||||
"vad": {
|
||||
@@ -380,7 +399,10 @@ test("validate correct verbs", async (t) => {
|
||||
"voiceMs": 250,
|
||||
"silenceMs": 150,
|
||||
"strategy": "one-shot",
|
||||
"mode": 2
|
||||
"mode": 2,
|
||||
"vendor": "webrtc",
|
||||
"threshold": 0.5,
|
||||
"speechPadMs": 1000
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -521,6 +543,26 @@ test("validate correct verbs", async (t) => {
|
||||
},
|
||||
"dual_streams": true,
|
||||
"timeLimit" : 10
|
||||
},
|
||||
{
|
||||
"verb": "llm",
|
||||
"vendor": 'ultravox',
|
||||
"model": 'fixie-ai/ultravox',
|
||||
"auth": {
|
||||
"apiKey": "sk-1234567890abcdefg"
|
||||
},
|
||||
"llmOptions": {
|
||||
"firstSpeaker": 'FIRST_SPEAKER_AGENT',
|
||||
},
|
||||
"mcpServers": [
|
||||
{
|
||||
"url": 'https://mcp.example.com',
|
||||
"auth": {
|
||||
"username": 'username',
|
||||
"password": 'password'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user