Readonly attemptReadonly maxReadonly retryReadonly sttReturns this STT's capabilities
The model of the instance serving the open stream (see _served), else of the one that
serves next (see nextInstance). Spans and metrics read this, so a failover shows the
model transcribing, or expected to, rather than the adapter.
The provider of the instance serving, else of the one that serves next (see model).
Returns the current status of all STT instances, including availability and background recovery state.
Receives an audio buffer and returns transcription in the form of a SpeechEvent
Optional abortSignal: AbortSignalReturns a SpeechStream that can be used to push audio frames and receive transcriptions
Optional options: { Optional configuration including connection options
Optional conn
Agent Fallback Adapter for STT. Manages multiple STT instances with automatic fallback when the primary provider fails.
When the primary STT fails, the adapter switches to the next available provider in the list for the active session. Failed providers are monitored by one probe stream per provider. The probe receives its owner's live audio; another waiting stream takes over if the owner closes. A non-empty FINAL_TRANSCRIPT marks the provider available again. If every provider is unavailable, normal streams retry them in priority order.
Non-streaming STTs are automatically wrapped with StreamAdapter provided a
vadis passed in.Example