mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
fix cobalt model (#469)
This commit is contained in:
@@ -178,6 +178,10 @@ class TaskGather extends SttTask {
|
|||||||
if (!this.data.recognizer.vendor) {
|
if (!this.data.recognizer.vendor) {
|
||||||
this.data.recognizer.vendor = this.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) {
|
if (this.needsStt && !this.sttCredentials) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -91,6 +91,10 @@ class TaskTranscribe extends SttTask {
|
|||||||
if (!this.data.recognizer.vendor) {
|
if (!this.data.recognizer.vendor) {
|
||||||
this.data.recognizer.vendor = this.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.sttCredentials) {
|
if (!this.sttCredentials) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user