support assembly ai v3 (#97)

* support assembly ai v3

* wip
This commit is contained in:
Hoan Luu Huu
2025-06-29 19:02:46 +07:00
committed by GitHub
parent 985476e8b1
commit 95f3a06625
2 changed files with 18 additions and 2 deletions

View File

@@ -1137,7 +1137,18 @@
}, },
"assemblyAiOptions": { "assemblyAiOptions": {
"properties": { "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": { "resource": {

View File

@@ -77,7 +77,12 @@ test("validate correct verbs", async (t) => {
"language": "de-DE", "language": "de-DE",
"label": "label1", "label": "label1",
"assemblyAiOptions": { "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
} }
} }
}, },