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:
@@ -902,6 +902,8 @@ class TaskTranscribe extends SttTask {
|
|||||||
// We need to keep track the fallback is happened for each endpoint
|
// We need to keep track the fallback is happened for each endpoint
|
||||||
// override the canFallback and _initFallback methods to make sure that
|
// override the canFallback and _initFallback methods to make sure that
|
||||||
// we only fallback once per endpoint
|
// we only fallback once per endpoint
|
||||||
|
// we want to keep track this on task level instead of endpoint level
|
||||||
|
// because the endpoint instance is used across multiple tasks.
|
||||||
canFallback(ep) {
|
canFallback(ep) {
|
||||||
const isHandledByPrimaryProvider = ep === this.ep ?
|
const isHandledByPrimaryProvider = ep === this.ep ?
|
||||||
this.isHandledByPrimaryProviderForEp1 : ep === this.ep2 ?
|
this.isHandledByPrimaryProviderForEp1 : ep === this.ep2 ?
|
||||||
|
|||||||
Reference in New Issue
Block a user