mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
wip
This commit is contained in:
@@ -912,7 +912,7 @@ class TaskTranscribe extends SttTask {
|
|||||||
isHandledByPrimaryProvider = this.isHandledByPrimaryProviderForEp2;
|
isHandledByPrimaryProvider = this.isHandledByPrimaryProviderForEp2;
|
||||||
}
|
}
|
||||||
|
|
||||||
const isOneOfEndpointAlreadyFallenBack =
|
const isOneOfEndpointAlreadyFallenBack = !!this.ep && !!this.ep2 &&
|
||||||
this.isHandledByPrimaryProviderForEp1 !== this.isHandledByPrimaryProviderForEp2;
|
this.isHandledByPrimaryProviderForEp1 !== this.isHandledByPrimaryProviderForEp2;
|
||||||
|
|
||||||
// fallback is configured
|
// fallback is configured
|
||||||
@@ -921,7 +921,7 @@ class TaskTranscribe extends SttTask {
|
|||||||
isHandledByPrimaryProvider &&
|
isHandledByPrimaryProvider &&
|
||||||
// in global level, is there any fallback is already happened
|
// in global level, is there any fallback is already happened
|
||||||
// one fallen endpoint will mark cs.hasFallbackAsr to true,
|
// one fallen endpoint will mark cs.hasFallbackAsr to true,
|
||||||
// so the other endpoint will be able to fallback again
|
// so if one endpoint the other endpoint will be able to fallback again
|
||||||
(isOneOfEndpointAlreadyFallenBack || !this.cs.hasFallbackAsr);
|
(isOneOfEndpointAlreadyFallenBack || !this.cs.hasFallbackAsr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user