From 8e5ad1f109735bf7f13f28b315788b9c57bef2ec Mon Sep 17 00:00:00 2001 From: Quan HL Date: Wed, 7 Aug 2024 16:52:37 +0700 Subject: [PATCH 1/2] support jambonz transcribe sampling rate --- specs.json | 1 + test/jambonz-verb-test.js | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/specs.json b/specs.json index 25ff4d4..fead2f0 100644 --- a/specs.json +++ b/specs.json @@ -662,6 +662,7 @@ "properties": { "authToken": "string", "uri": "string", + "sampleRateHz": "number", "options": "object" }, "required": [ diff --git a/test/jambonz-verb-test.js b/test/jambonz-verb-test.js index 321da19..0f35535 100644 --- a/test/jambonz-verb-test.js +++ b/test/jambonz-verb-test.js @@ -447,6 +447,17 @@ test("validate correct verbs", async (t) => { "interim": true } }, + { + "verb": "transcribe", + "transcriptionHook": "http://example.com/transcribe", + "recognizer": { + "vendor": "nvidia", + "language" : "en-US", + "customOptions": { + "sampleRateHz": 16000 + } + } + }, { "verb": "transcribe", "transcriptionHook": "http://example.com/transcribe", From 6b60a008164b0e07bfe0e9b4b26e662f9c9d22ff Mon Sep 17 00:00:00 2001 From: Quan HL Date: Wed, 7 Aug 2024 20:55:26 +0700 Subject: [PATCH 2/2] fix review comment --- specs.json | 2 +- test/jambonz-verb-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specs.json b/specs.json index fead2f0..939a2e7 100644 --- a/specs.json +++ b/specs.json @@ -662,7 +662,7 @@ "properties": { "authToken": "string", "uri": "string", - "sampleRateHz": "number", + "sampleRate": "number", "options": "object" }, "required": [ diff --git a/test/jambonz-verb-test.js b/test/jambonz-verb-test.js index 0f35535..1e728be 100644 --- a/test/jambonz-verb-test.js +++ b/test/jambonz-verb-test.js @@ -454,7 +454,7 @@ test("validate correct verbs", async (t) => { "vendor": "nvidia", "language" : "en-US", "customOptions": { - "sampleRateHz": 16000 + "sampleRate": 16000 } } },