support azure language identification mode (#44)

This commit is contained in:
Hoan Luu Huu
2024-03-07 00:05:24 +07:00
committed by GitHub
parent 954f9479c9
commit 9277e053a6
2 changed files with 19 additions and 1 deletions

View File

@@ -668,7 +668,14 @@
},
"azureOptions": {
"properties": {
"speechSegmentationSilenceTimeoutMs": "number"
"speechSegmentationSilenceTimeoutMs": "number",
"languageIdMode": {
"type": "string",
"enum": [
"AtStart",
"Continuous"
]
}
},
"required": [
]

View File

@@ -81,6 +81,17 @@ test("validate correct verbs", async (t) => {
}
}
},
{
"verb": "config",
"recognizer": {
"vendor": "google",
"language": "de-DE",
"label": "label1",
"azureOptions": {
"languageIdMode": "Continuous"
}
}
},
{
"verb": "config",
"record": {