From ba9a9f9b60be609539b1a1d8b86a6feac3190095 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Tue, 15 Aug 2023 07:07:47 +0700 Subject: [PATCH 1/2] feat add label to synthesizer --- specs.json | 1 + test/jambonz-verb-test.js | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/specs.json b/specs.json index 58f0df0..19031e2 100644 --- a/specs.json +++ b/specs.json @@ -475,6 +475,7 @@ "synthesizer": { "properties": { "vendor": "string", + "label": "string", "language": "string", "voice": "string", "engine": { diff --git a/test/jambonz-verb-test.js b/test/jambonz-verb-test.js index 9f17092..9288ee6 100644 --- a/test/jambonz-verb-test.js +++ b/test/jambonz-verb-test.js @@ -24,7 +24,8 @@ test("validate correct verbs", async (t) => { "verb": "config", "synthesizer": { "voice": "Jenny", - "vendor": "google" + "vendor": "google", + "label": "label1" }, "recognizer": { "vendor": "google", @@ -140,7 +141,8 @@ 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" } } }, From 1a1436b612e772c88261d472c943b1f1f162d874 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Tue, 15 Aug 2023 09:14:33 +0700 Subject: [PATCH 2/2] add label to recognizer --- specs.json | 1 + test/jambonz-verb-test.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/specs.json b/specs.json index 19031e2..256acc0 100644 --- a/specs.json +++ b/specs.json @@ -495,6 +495,7 @@ "recognizer": { "properties": { "vendor": "string", + "label": "string", "language": "string", "vad": "#vad", "hints": "array", diff --git a/test/jambonz-verb-test.js b/test/jambonz-verb-test.js index 9288ee6..ba8d86d 100644 --- a/test/jambonz-verb-test.js +++ b/test/jambonz-verb-test.js @@ -29,7 +29,8 @@ test("validate correct verbs", async (t) => { }, "recognizer": { "vendor": "google", - "language": "de-DE" + "language": "de-DE", + "label": "label1" }, "bargeIn": { "enable": true,