proud-match-31207
10/28/2025, 1:37 PMtts.FallbackAdapter with multiple TTS providers (e.g., ElevenLabs and Cartesia), does the availability state (which TTS instances are marked as unavailable) persist across different call sessions?
Given that the typical entrypoint pattern creates a new AgentSession (and thus a new FallbackAdapter) for each incoming call, is there a way to share the availability state across calls so that if ElevenLabs failed in Call 1, Call 2 immediately uses Cartesia without first attempting ElevenLabs again.
Edit - I meant in the same worker, the next call should be aware of the unavailability of TTS and NOT across all workers.brave-island-45242
10/28/2025, 3:48 PMproud-match-31207
10/28/2025, 4:21 PMlively-winter-88668
10/29/2025, 9:24 AMproud-match-31207
10/29/2025, 9:26 AMlively-winter-88668
10/29/2025, 9:30 AMproud-match-31207
10/29/2025, 9:34 AM_TTSStatus is maintained in memory and is initialized each time for new FallbackAdapter initialization.lively-winter-88668
10/29/2025, 9:44 AMfrom livekit.agents import tts
from livekit.plugins import openai, deepgram
# Module-level declaration - shared across all jobs
SHARED_TTS_ADAPTER = tts.FallbackAdapter(
[
openai.TTS(voice="ash"),
deepgram.TTS(),
]
)
async def entrypoint(ctx: JobContext):
# Use the shared adapter instance
session = AgentSession(
tts=SHARED_TTS_ADAPTER,
# ... other parameters
)
# ... rest of your codeproud-match-31207
10/29/2025, 9:49 AM