From 95f3a06625699ac8f74dcb0cc314d6ce75f7ace8 Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Sun, 29 Jun 2025 19:02:46 +0700 Subject: [PATCH] support assembly ai v3 (#97) * support assembly ai v3 * wip --- specs.json | 13 ++++++++++++- test/jambonz-verb-test.js | 7 ++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/specs.json b/specs.json index f5f7f5e..90240d5 100644 --- a/specs.json +++ b/specs.json @@ -1137,7 +1137,18 @@ }, "assemblyAiOptions": { "properties": { - "apiKey": "string" + "apiKey": "string", + "serviceVersion": { + "type": "string", + "enum": [ + "v2", + "v3" + ] + }, + "format_turns": "boolean", + "end_of_turn_confidence_threshold": "number", + "min_end_of_turn_silence_when_confident": "number", + "max_turn_silence": "number" } }, "resource": { diff --git a/test/jambonz-verb-test.js b/test/jambonz-verb-test.js index 1c89af3..dceaec7 100644 --- a/test/jambonz-verb-test.js +++ b/test/jambonz-verb-test.js @@ -77,7 +77,12 @@ test("validate correct verbs", async (t) => { "language": "de-DE", "label": "label1", "assemblyAiOptions": { - "apiKey": "apikey" + "apiKey": "apikey", + "serviceVersion": "v3", + "format_turns": true, + "end_of_turn_confidence_threshold": 0.5, + "min_end_of_turn_silence_when_confident": 500, + "max_turn_silence": 2000 } } },