Compare commits

...

153 Commits

Author SHA1 Message Date
Dave Horton
027cce284d 0.0.84 2024-11-15 15:46:53 -05:00
Dave Horton
9a8194b360 speechmatics changes (#71) 2024-11-15 15:46:21 -05:00
Markus Frindt
0bcfa783b7 fix key of sm_transcriptionConfig and required in speechmaticsOptions (#70)
Co-authored-by: mfrindt <m.frindt@cognigy.com>
2024-10-23 07:23:08 -04:00
Dave Horton
9a3fb68fe7 0.0.83 2024-10-09 11:53:57 -04:00
Dave Horton
f2ea3f3913 Feat/llm verb (#69)
* llm verb

* initial support for llm verb

* auth is required for llm, events is an array

* fix invalid syntax
2024-10-09 11:53:24 -04:00
Dave Horton
6a75a8b98a Feat/llm verb (#68)
* llm verb

* initial support for llm verb

* auth is required for llm, events is an array
2024-10-09 11:52:01 -04:00
Dave Horton
2af0fd4415 0.0.82 2024-10-01 13:38:11 -04:00
Dave Horton
46688934bc add support for speechmatics ASR (#67) 2024-10-01 13:37:45 -04:00
Dave Horton
afce20a206 0.0.81 2024-09-25 07:25:12 -04:00
Hoan Luu Huu
e80679fd07 support config referHook (#66) 2024-09-25 07:24:40 -04:00
Dave Horton
aa86d0b3e6 0.0.80 2024-09-17 13:23:55 -04:00
rammohan-y
60f4bcd97a feat/902 - added giveUpActions to actionHookDelayAction object (#65)
https://github.com/jambonz/jambonz-feature-server/issues/902wq
2024-09-17 13:22:58 -04:00
Dave Horton
cb8b51da4a 0.0.79 2024-08-20 18:09:33 -04:00
Dave Horton
d9fd63850b add queryInput to dialogflow (#63) 2024-08-20 18:09:08 -04:00
Dave Horton
e57c81aeed 0.0.78 2024-08-20 13:54:37 -04:00
Dave Horton
610b14736a add agent to dialflow cx (#62) 2024-08-20 13:54:23 -04:00
Dave Horton
4a8517cab5 0.0.77 2024-08-20 08:58:32 -04:00
Dave Horton
21bb3c2b73 add support for dialogflow cx (#61) 2024-08-20 08:57:45 -04:00
Dave Horton
e044621bbc 0.0.76 2024-08-13 08:17:40 -04:00
rammohan-kore
6d8ffc9d80 feat/859: Added generative, long-form to engine enum (#60) 2024-08-13 08:05:14 -04:00
Dave Horton
941ba6aa8c 0.0.75 2024-08-07 10:04:46 -04:00
Hoan Luu Huu
1d8cf321a7 support jambonz transcribe sampling rate (#59)
* support jambonz transcribe sampling rate

* fix review comment
2024-08-07 10:04:30 -04:00
Dave Horton
0d8b9de099 0.0.74 2024-07-15 15:30:28 -04:00
Dave Horton
08e01efa7f add recognizer.minConfidence and rest:dial.referHook (#58) 2024-07-15 15:30:06 -04:00
Dave Horton
1fdda56c39 0.0.73 2024-07-07 09:16:06 -06:00
Vinod Dharashive
8db0a91521 Aure PostProcessing #755 (#56) 2024-07-07 09:15:26 -06:00
Dave Horton
6432d9e64b 0.0.72 2024-05-29 07:12:30 -04:00
Hoan Luu Huu
c029a18c3e verbioOptions support (#53) 2024-05-29 07:12:09 -04:00
Dave Horton
27b1a06944 0.0.71 2024-05-28 08:39:36 -04:00
Hoan Luu Huu
0f9c096988 feat support mod vad detect (#54) 2024-05-28 08:38:20 -04:00
Markus Frindt
569b994356 fix vulnerabilities via npm audit fix (#51)
Co-authored-by: Markus Frindt <m.frindt@cognigy.com>
2024-04-24 11:49:05 -04:00
Dave Horton
9b639a9591 0.0.70 2024-04-17 16:29:02 -04:00
Dave Horton
6242514b6e add support for partialResultHook in config.bargeIn 2024-04-17 16:28:52 -04:00
Dave Horton
6f5884f7be 0.0.69 2024-04-02 14:48:33 -04:00
Dave Horton
d5bc910907 typo 2024-04-02 14:48:26 -04:00
Dave Horton
2f6696bbf8 0.0.68 2024-04-02 14:45:17 -04:00
Dave Horton
2c19b34922 added googleOptions.recognizer_id to allow someone to specify a preconfigured google recognizer for STT 2024-04-02 14:45:08 -04:00
Dave Horton
c5d977da50 0.0.67 2024-04-02 08:36:02 -04:00
Hoan Luu Huu
a6f64710c1 support google v2 enable_voice_activity_events (#50) 2024-04-02 08:35:47 -04:00
Dave Horton
3463528127 0.0.66 2024-04-01 19:14:23 -04:00
Hoan Luu Huu
030eb5f847 support google stt version 2 (#49)
* support google stt version 2

* fix review comments

* fix review comment
2024-04-01 19:14:06 -04:00
Dave Horton
f8d07d340a 0.0.65 2024-03-30 09:10:18 -04:00
Hoan Luu Huu
8a96b05f23 feat fork audio support bidirectional audio stream (#48)
* feat fork audio support bidirectional audio stream

* update bidirectionalAudio
2024-03-30 09:09:17 -04:00
Dave Horton
a6a942c1c6 0.0.64 2024-03-14 11:18:49 -04:00
Dave Horton
85fa4714fb change dial to allow an array of dub verbs instead of a single one 2024-03-14 11:18:40 -04:00
Dave Horton
d047892fff 0.0.63 2024-03-11 17:45:21 -04:00
Dave Horton
11bb83f703 add dial.boostAudioSignal to set gain on B leg after dial 2024-03-11 17:45:12 -04:00
Dave Horton
c5a263ee68 0.0.62 2024-03-10 21:05:46 -04:00
Dave Horton
47f8a593f5 dub say can either be text or object with text and synthesizer (ie like say verb syntax) 2024-03-10 21:05:37 -04:00
Dave Horton
c9d2c9aa4d 0.0.61 2024-03-10 19:13:11 -04:00
Dave Horton
1ce577c8c9 add channel property to transcribe, can be used in dial verb to indicate to transcribe only one of the two channels (#47) 2024-03-10 19:12:40 -04:00
Dave Horton
dc0abfad02 0.0.60 2024-03-07 15:11:34 -05:00
Dave Horton
1e9285b9d9 add support for playing filler noise while waiting for app to process a gather (#46) 2024-03-07 15:10:55 -05:00
Dave Horton
f3f048d94f 0.0.59 2024-03-07 09:59:28 -05:00
Dave Horton
a737d8bcbb add config.boostAudioSignal and nested dub in dial verb (#45) 2024-03-07 09:58:59 -05:00
Dave Horton
c3d69e614e 0.0.58 2024-03-07 07:47:27 -05:00
Hoan Luu Huu
9277e053a6 support azure language identification mode (#44) 2024-03-06 12:05:24 -05:00
Dave Horton
954f9479c9 0.0.57 2024-03-04 18:11:01 -05:00
Dave Horton
58385e791b rework dub verb (#43) 2024-03-04 18:10:30 -05:00
Dave Horton
85aaab5856 0.0.56 2024-02-29 19:49:12 -05:00
Dave Horton
d70324485b add support for dub channel (#42) 2024-02-29 19:48:33 -05:00
Dave Horton
2cf2c15586 0.0.55 2024-02-27 12:49:51 -05:00
Dave Horton
f6ad050a32 Feat/ambient sounds (#41)
* add config.ambientNoise

* add answer verb to force answer
2024-02-27 12:49:19 -05:00
Dave Horton
ba02161f74 0.0.54 2024-02-25 15:20:25 -05:00
Dave Horton
fabf9255ea add specs to allow coach mode in conferencing, where one participant can only be heard by another (#40) 2024-02-25 15:19:26 -05:00
Dave Horton
3f1e7cbd3b 0.0.53 2024-02-12 10:43:18 -05:00
Anton Voylenko
ff6bea3168 tag for dial verb (#38) 2024-02-12 10:42:31 -05:00
Dave Horton
4ea66245d4 0.0.52 2024-02-07 08:30:03 -05:00
Dave Horton
faa99cdce3 modify deepgram onprem property names 2024-02-07 08:29:55 -05:00
Dave Horton
d017e739b1 0.0.51 2024-02-05 13:01:05 -05:00
Dave Horton
764383cf43 add support for deepgram on-prem with deepgramOptions.deepgramUri 2024-02-05 13:00:36 -05:00
Dave Horton
3f19ce4a24 0.0.50 2023-12-26 10:14:16 -05:00
Hoan Luu Huu
1e6b24181c support config->transcribe run in background (#37)
* support config->transcribe run in background

* wip

* fix review comments
2023-12-26 10:13:57 -05:00
Dave Horton
63aa94a9ec 0.0.49 2023-12-01 10:28:21 -05:00
Dave Horton
d4614c2ad1 fix awsOptions 2023-12-01 10:28:15 -05:00
Dave Horton
7da6165b93 0.0.48 2023-11-30 15:53:01 -05:00
Dave Horton
ad76081fa7 allow region override in awsOptions 2023-11-30 15:52:43 -05:00
Dave Horton
ce94e943d2 0.0.47 2023-11-30 15:45:11 -05:00
Dave Horton
436fb557dc add support for recognizer.awsOptions (#36) 2023-11-30 15:44:27 -05:00
Dave Horton
203b8600a8 0.0.46 2023-11-14 08:31:08 -05:00
Dave Horton
b877ca52d0 add target.proxy to dial verb (#35) 2023-11-14 08:30:41 -05:00
Anton Voylenko
cdb671d25d sipRequestWithinDialogHook support (#34) 2023-11-14 08:27:33 -05:00
Dave Horton
6ae0aff8b1 0.0.45 2023-11-01 07:57:29 -04:00
Hoan Luu Huu
9a2a22dd88 feat assemblyAi (#33) 2023-11-01 07:56:52 -04:00
Dave Horton
369583d536 minor readme typo 2023-10-30 13:48:08 -04:00
Dave Horton
77d203ca80 0.0.44 2023-10-30 12:49:54 -04:00
Dave Horton
9cb550f49e fix prev commit 2023-10-30 12:49:35 -04:00
Dave Horton
de88976293 0.0.43 2023-10-30 11:15:49 -04:00
Dave Horton
60efb4b9af add recognizer.azureOptions.speechSegmentationSilenceTimeoutMs (to support https://github.com/jambonz/jambonz-feature-server/issues/508) (#31) 2023-10-30 11:15:18 -04:00
Dave Horton
49ac048477 0.0.42 2023-10-29 21:38:28 -04:00
Hoan Luu Huu
e653a62c49 feat google custom voice (#30) 2023-10-29 21:37:49 -04:00
Dave Horton
f41aae81c6 0.0.41 2023-10-27 15:19:12 -04:00
Dave Horton
5707f7d4d4 remove properties with undefined values before validation: the SttTask superclass of gather and transcribe creates them for label and callbackVendor 2023-10-27 15:18:58 -04:00
Dave Horton
f75871dc46 0.0.40 2023-10-27 10:23:39 -04:00
Dave Horton
98fa56bd3d add deepgramOptions.shortUtterance - triggers transcript based on is_final not speech_final 2023-10-27 10:23:31 -04:00
Dave Horton
e1b9abef9e 0.0.39 2023-10-26 13:54:19 -04:00
Dave Horton
22b118534b add deepgramOptions.utteranceEndMs 2023-10-26 13:54:10 -04:00
Dave Horton
733a4760fe 0.0.38 2023-10-25 10:09:21 -04:00
Dave Horton
3deb8759db add deepgramOptions.smartFormatting (#28) 2023-10-25 10:08:56 -04:00
Dave Horton
79cdfc73d4 0.0.37 2023-10-06 08:54:14 -04:00
Hoan Luu Huu
9b7358d6b4 feat: add sip Indialog actionHook (#27)
* feat: add sip Indialog actionHook

* to use Hook

* to use Hook

* fix
2023-10-06 08:49:49 -04:00
Dave Horton
4bb25941bf 0.0.36 2023-09-22 09:09:22 -04:00
Hoan Luu Huu
42ff6170b6 support bot delay action (#26)
* support bot delay action

* support bot delay action
2023-09-22 09:09:04 -04:00
Dave Horton
873d8dc0c8 0.0.35 2023-09-20 07:31:02 -04:00
Hoan Luu Huu
992a5fe897 add support for dual streams in rest:dial (#25) 2023-09-20 07:30:23 -04:00
Dave Horton
6803a3e49d 0.0.34 2023-09-13 09:39:46 -04:00
Hoan Luu Huu
2d2145917e feat fast recognition (#22) 2023-09-13 09:39:17 -04:00
Anton Voylenko
4fa8d46fd8 missing config verbs for listen (#24) 2023-09-13 09:33:25 -04:00
Dave Horton
9690e14f64 0.0.33 2023-09-13 08:59:09 -04:00
Dave Horton
49752d16ea allow specification of token for cobalt speech when compiling contexts 2023-09-13 08:59:01 -04:00
Dave Horton
9e141cba6a 0.0.32 2023-09-12 20:48:02 -04:00
Dave Horton
82e2bc5239 Vendor/cobalt (#23)
* add support for cobalt

* more changes for cobalt

* 0.0.31

* more cobalt options
2023-09-12 20:47:30 -04:00
Dave Horton
3a5b053248 0.0.30 2023-08-19 09:45:46 -04:00
Dave Horton
d74364b1c2 Merge pull request #21 from avoylenko/main
endConferenceDuration for conference verb
2023-08-19 09:45:36 -04:00
Anton Voylenko
213d7596d2 endConferenceDuration for conference verb 2023-08-19 15:36:02 +03:00
Dave Horton
3d4df422e1 0.0.29 2023-08-17 07:53:39 -04:00
Dave Horton
3531711991 Merge pull request #20 from jambonz/feat/fallback_speech
feat fallback speech vendor
2023-08-17 07:53:07 -04:00
Quan HL
f860074a24 fix typo 2023-08-17 11:54:15 +07:00
Quan HL
65de44012a feat fallback speech vendor 2023-08-17 11:29:44 +07:00
Dave Horton
067a49bd2c 0.0.28 2023-08-15 18:17:33 -04:00
Dave Horton
4967efa745 Merge pull request #19 from jambonz/feat/moh_01
add onHoldHook to dial verb
2023-08-15 18:16:39 -04:00
Quan HL
61669e5574 add onHoldHook to dial verb 2023-08-16 05:01:34 +07:00
Dave Horton
e25ef7349e 0.0.27 2023-08-15 08:47:07 -04:00
Dave Horton
26f5609996 Merge pull request #18 from jambonz/fix/multi_speech_same_vendor
feat add label to synthesizer
2023-08-15 08:45:58 -04:00
Quan HL
1a1436b612 add label to recognizer 2023-08-15 09:14:33 +07:00
Quan HL
ba9a9f9b60 feat add label to synthesizer 2023-08-15 07:07:47 +07:00
Dave Horton
93c368e894 Merge pull request #17 from jambonz/feat/moh
feat: add onhold music to dial verb
2023-08-10 07:49:26 -04:00
Quan HL
185e4df06e obholdMusic for config verb 2023-08-10 13:56:10 +07:00
Quan HL
c22e8c9cf0 feat: add onhold music to dial verb 2023-07-25 17:56:28 +07:00
Dave Horton
1c3d86c807 0.0.26 2023-07-20 07:35:08 -04:00
Dave Horton
7e986acc17 Merge pull request #15 from jambonz/feat/siprec_custom_headers
feat confige record allow SIP custom headers
2023-07-20 07:34:29 -04:00
Quan HL
d5c535c02c feat confige record allow SIP custom headers 2023-07-20 15:12:10 +07:00
Dave Horton
6e819279d1 0.0.25 2023-06-19 06:45:03 +01:00
Dave Horton
24e73a4dc6 Merge pull request #13 from jambonz/feat/multi_srs
config with multiple siprecServerURL
2023-06-19 06:44:28 +01:00
Quan HL
cfd367f185 config with multiple siprecServerURL 2023-06-19 07:26:53 +07:00
Dave Horton
f472de9638 0.0.24 2023-06-02 12:53:12 -04:00
Dave Horton
45a2a039cd transcribe: recognizer is not required, but transcriptionHook is 2023-06-02 12:53:00 -04:00
Dave Horton
4a345633a3 0.0.23 2023-05-28 21:55:58 -04:00
Dave Horton
f14ff2e319 Merge pull request #12 from jambonz/feat/advanced_queue
feat: enqueue dequeue priority and callSid
2023-05-28 21:55:35 -04:00
Quan HL
c85cb7e67e feat: enqueue dequeue priority and callSid 2023-05-29 07:09:00 +07:00
Dave Horton
8ccb13f962 0.0.22 2023-05-09 11:48:09 -04:00
Dave Horton
044ce2d4bb add synthesizer.options 2023-05-09 11:48:00 -04:00
Dave Horton
b483e04611 0.0.21 2023-05-08 09:47:01 -04:00
Dave Horton
c1032638b2 config: add support for resetting recognizer and/or synthesizer to application defaults 2023-05-08 09:46:45 -04:00
Dave Horton
72225385ae 0.0.20 2023-05-07 08:41:52 -04:00
Dave Horton
6ad9d2bce0 Merge pull request #11 from jambonz/feat/rest_dial_amd
rest:dial amd
2023-05-07 08:41:37 -04:00
Quan HL
045df8a9fe rest:dial amd 2023-05-07 19:40:28 +07:00
Dave Horton
f3ede17b80 0.0.19 2023-05-07 08:31:16 -04:00
Dave Horton
2551dbe18e Merge pull request #10 from jambonz/feat/remove_metadata
fix: remove metadata in rest:dial
2023-05-07 08:31:02 -04:00
Quan HL
f4a887a67a fix: remove metadata in rest:dial 2023-05-07 19:30:17 +07:00
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
6 changed files with 629 additions and 41 deletions

View File

@@ -1,4 +1,4 @@
# verb-specificiations
# verb-specifications
Jambonz Verb Specification Utilities
#### Running the test suite

View File

@@ -58,7 +58,8 @@ function validateVerb(name, data, logger) {
const dSpec = specData.properties[dKey];
debug(`Task:validate validating property ${dKey} with value ${JSON.stringify(dVal)}`);
if (typeof dSpec === 'string' && dSpec === 'array') {
if (typeof dVal === 'undefined') continue;
else if (typeof dSpec === 'string' && dSpec === 'array') {
if (!Array.isArray(dVal)) throw new Error(`${name}: property ${dKey} is not an array`);
}
else if (typeof dSpec === 'string' && dSpec.includes('|')) {

28
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@jambonz/verb-specifications",
"version": "0.0.17",
"version": "0.0.84",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@jambonz/verb-specifications",
"version": "0.0.17",
"version": "0.0.84",
"license": "MIT",
"dependencies": {
"debug": "^4.3.4",
@@ -2011,9 +2011,9 @@
}
},
"node_modules/semver": {
"version": "7.3.8",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz",
"integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==",
"version": "7.6.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz",
"integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==",
"dev": true,
"dependencies": {
"lru-cache": "^6.0.0"
@@ -2446,9 +2446,9 @@
}
},
"node_modules/word-wrap": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
"integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
"integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
"dev": true,
"engines": {
"node": ">=0.10.0"
@@ -3922,9 +3922,9 @@
"integrity": "sha512-gMxvPJYhP0O9n2pvcfYfIuYgbledAOJFcqRThtPRmjscaipiwcwPPKLytpVzMkG2HAN87Qmo2d4PtGiri1dSLA=="
},
"semver": {
"version": "7.3.8",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz",
"integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==",
"version": "7.6.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz",
"integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==",
"dev": true,
"requires": {
"lru-cache": "^6.0.0"
@@ -4253,9 +4253,9 @@
}
},
"word-wrap": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
"integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
"integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
"dev": true
},
"wrappy": {

View File

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

View File

@@ -1,4 +1,11 @@
{
"answer": {
"properties": {
"id": "string"
},
"required": [
]
},
"sip:decline": {
"properties": {
"id": "string",
@@ -43,11 +50,30 @@
"bargeIn": "#bargeIn",
"record": "#recordOptions",
"listen": "#listenOptions",
"transcribe": "#transcribeOptions",
"amd": "#amd",
"notifyEvents": "boolean"
"fillerNoise": "#fillerNoise",
"notifyEvents": "boolean",
"reset": "string|array",
"onHoldMusic": "string",
"actionHookDelayAction": "#actionHookDelayAction",
"sipRequestWithinDialogHook": "object|string",
"boostAudioSignal": "number|string",
"vad":"#vad",
"referHook": "object|string"
},
"required": []
},
"fillerNoise": {
"properties": {
"enable": "boolean",
"url": "string",
"startDelaySecs": "number"
},
"required": [
"enable"
]
},
"listenOptions": {
"properties": {
"enable": "boolean",
@@ -58,7 +84,13 @@
"type": "string",
"enum": ["mono", "stereo", "mixed"]
},
"metadata": "object"
"metadata": "object",
"maxLength": "number",
"passDtmf": "boolean",
"playBeep": "boolean",
"disableBidirectionalAudio": "boolean",
"bidirectionalAudio": "#bidirectionalAudio",
"timeout": "number"
},
"required": [
"enable"
@@ -69,6 +101,7 @@
"enable": "boolean",
"sticky": "boolean",
"actionHook": "object|string",
"partialResultHook": "object|string",
"input": "array",
"finishOnKey": "string",
"numDigits": "number",
@@ -82,13 +115,42 @@
"enable"
]
},
"transcribeOptions": {
"properties": {
"enable": "boolean",
"transcriptionHook": "string",
"recognizer": "#recognizer"
},
"required": [
"enable"
]
},
"dub": {
"properties": {
"id": "string",
"action": {
"type": "string",
"enum": ["addTrack", "removeTrack", "silenceTrack", "playOnTrack", "sayOnTrack"]
},
"track": "string",
"play": "string",
"say": "string|object",
"loop": "boolean",
"gain": "number|string"
},
"required": [
"action",
"track"
]
},
"dequeue": {
"properties": {
"id": "string",
"name": "string",
"actionHook": "object|string",
"timeout": "number",
"beep": "boolean"
"beep": "boolean",
"callSid": "string"
},
"required": [
"name"
@@ -100,6 +162,7 @@
"name": "string",
"actionHook": "object|string",
"waitHook": "object|string",
"priority": "number",
"_": "object"
},
"required": [
@@ -165,7 +228,9 @@
"timeout": "number",
"recognizer": "#recognizer",
"play": "#play",
"say": "#say"
"say": "#say",
"fillerNoise": "#fillerNoise",
"actionHookDelayAction": "#actionHookDelayAction"
},
"required": [
]
@@ -175,8 +240,11 @@
"id": "string",
"name": "string",
"beep": "boolean",
"memberTag": "string",
"speakOnlyTo": "string",
"startConferenceOnEnter": "boolean",
"endConferenceOnExit": "boolean",
"endConferenceDuration": "number",
"maxParticipants": "number",
"joinMuted": "boolean",
"actionHook": "object|string",
@@ -194,6 +262,7 @@
"properties": {
"id": "string",
"actionHook": "object|string",
"onHoldHook": "object|string",
"answerOnBridge": "boolean",
"callerId": "string",
"callerName": "string",
@@ -204,13 +273,16 @@
"dtmfHook": "object|string",
"headers": "object",
"anchorMedia": "boolean",
"boostAudioSignal": "number|string",
"listen": "#listen",
"target": ["#target"],
"timeLimit": "number",
"timeout": "number",
"proxy": "string",
"transcribe": "#transcribe",
"amd": "#amd"
"amd": "#amd",
"dub": ["#dub"],
"tag": "object"
},
"required": [
"target"
@@ -221,15 +293,17 @@
"id": "string",
"credentials": "object|string",
"project": "string",
"agent": "string",
"environment": "string",
"region": {
"region": "string",
"model": {
"type": "string",
"enum": ["europe-west1", "europe-west2", "australia-southeast1", "asia-northeast1"]
"enum": ["es", "cx"]
},
"lang": "string",
"actionHook": "object|string",
"eventHook": "object|string",
"events": "[string]",
"events": "array",
"welcomeEvent": "string",
"welcomeEventParams": "object",
"noInputTimeout": "number",
@@ -237,7 +311,8 @@
"passDtmfAsTextInput": "boolean",
"thinkingMusic": "string",
"tts": "#synthesizer",
"bargein": "boolean"
"bargein": "boolean",
"queryInput": "#queryInput"
},
"required": [
"project",
@@ -245,6 +320,16 @@
"lang"
]
},
"queryInput": {
"properties": {
"text": "string",
"intent": "string",
"event": "string",
"dtmf": "string"
},
"required": [
]
},
"dtmf": {
"properties": {
"id": "string",
@@ -295,6 +380,7 @@
"passDtmf": "boolean",
"playBeep": "boolean",
"disableBidirectionalAudio": "boolean",
"bidirectionalAudio": "#bidirectionalAudio",
"sampleRate": "number",
"timeout": "number",
"transcribe": "#transcribe",
@@ -306,6 +392,26 @@
"url"
]
},
"llm": {
"properties": {
"id": "string",
"vendor": "string",
"model": "string",
"auth": "object",
"connectOptions": "object",
"actionHook": "object|string",
"eventHook": "object|string",
"toolHook": "object|string",
"events": "array",
"llmOptions": "object"
},
"required": [
"vendor",
"model",
"auth",
"llmOptions"
]
},
"message": {
"properties": {
"id": "string",
@@ -361,7 +467,8 @@
"enum": ["startCallRecording", "stopCallRecording", "pauseCallRecording", "resumeCallRecording"]
},
"recordingID": "string",
"siprecServerURL": "string"
"siprecServerURL": "string|array",
"headers": "object"
},
"required": [
"action"
@@ -394,7 +501,11 @@
"tag": "object",
"to": "#target",
"headers": "object",
"timeout": "number"
"timeout": "number",
"amd": "#amd",
"dual_streams": "boolean",
"sipRequestWithinDialogHook": "string",
"referHook": "object|string"
},
"required": [
"call_hook",
@@ -416,10 +527,11 @@
"id": "string",
"transcriptionHook": "string",
"recognizer": "#recognizer",
"earlyMedia": "boolean"
"earlyMedia": "boolean",
"channel": "number"
},
"required": [
"recognizer"
"transcriptionHook"
]
},
"target": {
@@ -442,7 +554,8 @@
"vmail": "boolean",
"tenant": "string",
"trunk": "string",
"overrideTo": "string"
"overrideTo": "string",
"proxy": "string"
},
"required": [
"type"
@@ -469,16 +582,22 @@
"synthesizer": {
"properties": {
"vendor": "string",
"label": "string",
"language": "string",
"voice": "string",
"voice": "string|object",
"fallbackVendor": "string",
"fallbackLabel": "string",
"fallbackLanguage": "string",
"fallbackVoice": "string|object",
"engine": {
"type": "string",
"enum": ["standard", "neural"]
"enum": ["standard", "neural", "generative", "long-form"]
},
"gender": {
"type": "string",
"enum": ["MALE", "FEMALE", "NEUTRAL"]
}
},
"options": "object"
},
"required": [
"vendor"
@@ -487,7 +606,11 @@
"recognizer": {
"properties": {
"vendor": "string",
"label": "string",
"language": "string",
"fallbackVendor": "string",
"fallbackLabel": "string",
"fallbackLanguage": "string",
"vad": "#vad",
"hints": "array",
"hintsBoost": "number",
@@ -550,12 +673,21 @@
"azureSttEndpointId": "string",
"asrDtmfTerminationDigit": "string",
"asrTimeout": "number",
"fastRecognitionTimeout": "number",
"minConfidence": "number",
"nuanceOptions": "#nuanceOptions",
"deepgramOptions": "#deepgramOptions",
"ibmOptions": "#ibmOptions",
"nvidiaOptions": "#nvidiaOptions",
"sonioxOptions": "#sonioxOptions",
"customOptions": "#customOptions"
"cobaltOptions": "#cobaltOptions",
"awsOptions": "#awsOptions",
"azureOptions": "#azureOptions",
"assemblyAiOptions": "#assemblyAiOptions",
"googleOptions": "#googleOptions",
"customOptions": "#customOptions",
"verbioOptions": "#verbioOptions",
"speechmaticsOptions": "#speechmaticsOptions"
},
"required": [
"vendor"
@@ -565,11 +697,78 @@
"properties": {
"authToken": "string",
"uri": "string",
"sampleRate": "number",
"options": "object"
},
"required": [
]
},
"awsOptions": {
"properties": {
"accessKey": "string",
"secretKey": "string",
"securityToken": "string",
"region": "string",
"vocabularyName": "string",
"vocabularyFilterName": "string",
"vocabularyFilterMethod": {
"type": "string",
"enum": [
"remove",
"mask",
"tag"
]
},
"languageModelName": "string",
"piiEntityTypes": "array",
"piiIdentifyEntities": "boolean"
},
"required": [
]
},
"azureOptions": {
"properties": {
"speechSegmentationSilenceTimeoutMs": "number",
"postProcessing" : "string",
"languageIdMode": {
"type": "string",
"enum": [
"AtStart",
"Continuous"
]
}
},
"required": [
]
},
"googleOptions" : {
"properties": {
"serviceVersion": {
"type": "string",
"enum": [
"v1",
"v2"
]
},
"recognizerId": "string",
"speechStartTimeoutMs": "number",
"speechEndTimeoutMs": "number",
"enableVoiceActivityEvents": "boolean",
"transcriptNormalization": "array"
}
},
"cobaltOptions": {
"properties": {
"serverUri": "string",
"enableConfusionNetwork": "boolean",
"metadata": "string",
"compiledContextData": "string",
"wordTimeOffsets": "boolean",
"contextToken": "string"
},
"required": [
]
},
"nvidiaOptions": {
"properties": {
"rivaUri": "string",
@@ -602,12 +801,15 @@
},
"deepgramOptions": {
"properties": {
"deepgramSttUri": "string",
"deepgramSttUseTls": "boolean",
"apiKey": "string",
"tier": "string",
"model": "string",
"customModel": "string",
"version": "string",
"punctuate": "boolean",
"smartFormatting": "boolean",
"profanityFilter": "boolean",
"redact": {
"type": "string",
@@ -628,6 +830,8 @@
"replace": "array",
"keywords": "array",
"endpointing": "boolean | number",
"utteranceEndMs": "number",
"shortUtterance": "boolean",
"vadTurnoff": "number",
"tag": "string"
}
@@ -645,6 +849,110 @@
"required": [
]
},
"verbioOptions": {
"properties": {
"enable_formatting": "boolean",
"enable_diarization": "boolean",
"topic": "number",
"inline_grammar": "string",
"grammar_uri": "string",
"label": "string",
"recognition_timeout": "number",
"speech_complete_timeout": "number",
"speech_incomplete_timeout": "number"
},
"required": [
]
},
"speechmaticsOptions": {
"properties": {
"transcription_config": "#sm_transcriptionConfig",
"translation_config": "#sm_translationConfig",
"audio_events_config_config": "#sm_audioEventsConfig"
},
"required": [
]
},
"sm_transcriptionConfig": {
"properties": {
"language": "string",
"additional_vocab": "array",
"diarization": "string",
"speaker_diarization_config": "#sm_speakerDiarizationConfig",
"enable_partials": "boolean",
"max_delay": "number",
"max_delay_mode": {
"type": "string",
"enum": [
"fixed",
"flexible"
]
},
"output_locale": "string",
"punctuation_overrides": "#sm_puctuationOverrides",
"operating_point": "string",
"enable_entities": "boolean",
"audio_filtering_config": "#sm_audioFilteringConfig",
"transcript_filtering_config": "#sm_transcriptFilteringConfig"
},
"required": [
]
},
"sm_speakerDiarizationConfig": {
"properties": {
"speaker_sensitivity": "number",
"max_speakers": "number"
},
"required": [
]
},
"sm_puctuationOverrides": {
"properties": {
"permitted_marks": "array",
"sensitivity": "number"
},
"required": [
]
},
"sm_audioFilteringConfig": {
"properties": {
"volume_threshold": "number"
},
"required": [
"volume_threshold"
]
},
"sm_transcriptFilteringConfig": {
"properties": {
"remove_disfluencies": "boolean"
},
"required": [
"remove_disfluencies"
]
},
"sm_translationConfig": {
"properties": {
"target_languages": "array",
"enable_partials": "boolean"
},
"required": [
"target_languages"
]
},
"sm_audioEventsConfig": {
"properties": {
"types": {
"type": "array",
"enum": [
"applause",
"music",
"laughter"
]
}
},
"required": [
]
},
"sonioxStorage": {
"properties": {
"id": "string",
@@ -702,6 +1010,11 @@
"required": [
]
},
"assemblyAiOptions": {
"properties": {
"apiKey": "string"
}
},
"resource": {
"properties": {
"externalReference": "#resourceReference",
@@ -778,6 +1091,8 @@
"properties": {
"enable": "boolean",
"voiceMs": "number",
"silenceMs": "number",
"strategy": "string",
"mode": "number"
},
"required": [
@@ -802,5 +1117,22 @@
"toneTimeoutMs": "number",
"greetingCompletionTimeoutMs": "number"
}
},
"actionHookDelayAction" : {
"properties": {
"enabled": "boolean",
"noResponseTimeout": "number",
"noResponseGiveUpTimeout": "number",
"retries": "number",
"actions": "array",
"giveUpActions": "array"
}
},
"bidirectionalAudio" : {
"properties": {
"enabled": "boolean",
"streaming": "boolean",
"sampleRate": "number"
}
}
}
}

View File

@@ -24,27 +24,117 @@ test("validate correct verbs", async (t) => {
"verb": "config",
"synthesizer": {
"voice": "Jenny",
"vendor": "google"
"vendor": "google",
"label": "label1"
},
"recognizer": {
"vendor": "google",
"language": "de-DE"
"language": "de-DE",
"label": "label1"
},
"bargeIn": {
"enable": true,
"input" : ["speech"],
"actionHook": "/userInput"
},
"transcribe": {
"enable": true,
"transcriptionHook": "http://server.com/hook",
"recognizer": {
"vendor": "google",
"language": "de-DE",
}
},
"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"
}
]
}
},
{
"verb": "config",
"recognizer": {
"vendor": "google",
"language": "de-DE",
"label": "label1",
"assemblyAiOptions": {
"apiKey": "apikey"
}
}
},
{
"verb": "config",
"referHook": "https://referhook.com"
},
{
"verb": "config",
"referHook": {
"url": "https://referhook.com"
}
},
{
"verb": "config",
"recognizer": {
"vendor": "google",
"language": "de-DE",
"label": "label1",
"azureOptions": {
"languageIdMode": "Continuous"
}
}
},
{
"verb": "config",
"record": {
"action": "startCallRecording",
"siprecServerURL": ["sip:srs@recording.example.com","sip:srs@recording.example.com"],
"headers" : {
"X-Header1": "Value1",
"X-Header2": "Value2"
}
}
},
{
"verb": "config",
"sipRequestWithinDialogHook": "https://jambonz.or/sipIndialogActionHook"
},
{
"verb": "config",
"record": {
"action": "startCallRecording",
"siprecServerURL": "sip:srs@recording.example.com"
}
},
{
"verb": "dequeue",
"name": "support",
"beep": true,
"timeout": 60
"timeout": 60,
"callSid": "call_sid1234"
},
{
"verb": "dial",
"actionHook": "/outdial",
"onHoldHook": "/onHoldHook",
"callerId": "+16173331212",
"callerName": "Tom",
"answerOnBridge": true,
@@ -95,7 +185,8 @@ test("validate correct verbs", async (t) => {
"verb": "enqueue",
"name": "support",
"actionHook": "/queue-action",
"waitHook": "/queue-wait"
"waitHook": "/queue-wait",
"priority": 50
},
{
"verb": "gather",
@@ -111,6 +202,7 @@ test("validate correct verbs", async (t) => {
"language": "en-US",
"hints": ["sales", "support"],
"hintsBoost": 10,
"fastRecognitionTimeout": 2000,
"deepgramOptions": {
"endpointing": 500
}
@@ -119,10 +211,58 @@ test("validate correct verbs", async (t) => {
"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"
"language": "en-US",
"label": "label1",
"fallbackVendor": "google",
"fallbackLanguage": "en-US",
"fallbackLabel": "label1",
"fallbackVoice": "voice"
}
},
"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",
"voice": {
"reportedUsage":"REALTIME",
"model":"path/to/model",
},
"fallbackVendor": "google",
"fallbackLanguage": "en-US",
"fallbackLabel": "label1",
"fallbackVoice": {
"reportedUsage":"REALTIME",
"model":"path/to/model",
}
}
}
},
{
"verb": "gather",
"actionHook": "http://example.com/collect",
"input": ["digits", "speech"],
"bargein": true,
"dtmfBargein": true,
"finishOnKey": "#",
"numDigits": 5,
"timeout": 8,
"recognizer": {
"vendor": "verbio",
"language": "en-US",
"verbioOptions": {
"enable_formatting": true,
"enable_diarization": true,
"topic": 0,
"inline_grammar": "this is inline grammar",
"grammar_uri": "https://grammar_uri.com",
"label": "label",
"recognition_timeout": 500,
"speech_complete_timeout": 500,
"speech_incomplete_timeout": 500,
}
},
},
{
"verb": "gather",
"actionHook": "http://example.com/collect",
@@ -135,12 +275,37 @@ test("validate correct verbs", async (t) => {
"recognizer": {
"vendor": "google",
"language": "en-US",
"fallbackVendor": "google",
"fallbackLanguage": "en-US",
"fallbackLabel": "label1",
"hints": ["sales", "support"],
"hintsBoost": 10,
"deepgramOptions": {
"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",
@@ -184,6 +349,39 @@ test("validate correct verbs", async (t) => {
"url": "wss://myrecorder.example.com/calls",
"mixType" : "stereo"
},
{
"verb": "listen",
"url": "wss://myrecorder.example.com/calls",
"mixType" : "stereo",
"bidirectionalAudio": {
enabled: true,
streaming: true,
sampleRate: 8000
}
},
{
"verb": "config",
"listen": {
"enable": true,
"url": "wss://myrecorder.example.com/calls",
"mixType" : "stereo",
"bidirectionalAudio": {
enabled: true,
streaming: true,
sampleRate: 8000
}
}
},
{
"verb": "config",
"vad": {
"enable": true,
"voiceMs": 250,
"silenceMs": 150,
"strategy": "one-shot",
"mode": 2
}
},
{
"verb": "message",
"to": "15083084809",
@@ -258,6 +456,63 @@ test("validate correct verbs", async (t) => {
"language" : "en-US",
"interim": true
}
},
{
"verb": "transcribe",
"transcriptionHook": "http://example.com/transcribe",
"recognizer": {
"vendor": "nvidia",
"language" : "en-US",
"customOptions": {
"sampleRate": 16000
}
}
},
{
"verb": "transcribe",
"transcriptionHook": "http://example.com/transcribe",
"recognizer": {
"vendor": "nvidia",
"language" : "en-US",
"interim": true,
"googleOptions": {
"serviceVersion": "v2",
"speechStartTimeoutMs": 500,
"speechEndTimeoutMs": 1000,
"enableVoiceActivityEvents": true,
"transcriptNormalization" : [
{
"search": "dog",
"replace": "cat",
"case_sensitive": 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",
},
"tag": {
"customer": "acme",
"referenceId": "deadbeef",
},
"amd": {
"actionHook": "/answeringMachineDetection",
},
"dual_streams": true
}
];
try {