Skip to main content

Module fallback

Module fallback 

Source
Expand description

STT/TTS fallback chains: local-first with cloud fallback.

SttFallbackChain tries local STT first, falling back to a cloud provider when the local result has low confidence or errors. TtsFallbackChain tries local TTS first, falling back on error.

Structs§

LocalSttResult
Result from a local STT transcription.
SttFallbackChain
Fallback chain for STT: local -> cloud on failure or low confidence.
SttFallbackResult
Combined result from the STT fallback chain.
TtsFallbackChain
Fallback chain for TTS: local -> cloud on error.
TtsFallbackResult
Combined result from the TTS fallback chain.

Enums§

SttSource
Source of an STT transcription result.
TtsSource
Source of a TTS synthesis result.

Traits§

LocalSttEngine
Trait for the local STT engine (e.g., sherpa-rs based).
LocalTtsEngine
Trait for the local TTS engine (e.g., sherpa-rs piper).