mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-19 04:17:44 +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
|
||||
// override the canFallback and _initFallback methods to make sure that
|
||||
// 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) {
|
||||
const isHandledByPrimaryProvider = ep === this.ep ?
|
||||
this.isHandledByPrimaryProviderForEp1 : ep === this.ep2 ?
|
||||
|
||||
Reference in New Issue
Block a user