fix cobalt model (#469)

This commit is contained in:
Hoan Luu Huu
2023-09-26 18:41:43 +07:00
committed by GitHub
parent 1aa0b07b8f
commit ae9386791f
2 changed files with 8 additions and 0 deletions

View File

@@ -178,6 +178,10 @@ class TaskGather extends SttTask {
if (!this.data.recognizer.vendor) {
this.data.recognizer.vendor = this.vendor;
}
if (this.vendor === 'cobalt' && !this.data.recognizer.model) {
// By default, application saves cobalt model in language
this.data.recognizer.model = cs.speechRecognizerLanguage;
}
if (this.needsStt && !this.sttCredentials) {
try {