many-fall-81099
07/07/2025, 11:24 AMtall-airline-16756
07/07/2025, 11:25 AMtall-airline-16756
07/07/2025, 11:25 AMprewarm
method in LiveKit's TTS system is used to pre-establish connections to the TTS service to reduce latency during actual usage. The implementation of this method depends on the specific TTS provider being used. For example:
• In OpenAI TTS, the prewarm
method creates an asynchronous task that makes a simple GET request to the API client’s root endpoint.
• In Deepgram and Cartesia TTS implementations, the prewarm
method calls the connection pool’s prewarm method.
If you are using ElevenLabs TTS, you would need to check if it has a similar prewarm
method or functionality. Let me know if you need further assistance or specific guidance for ElevenLabs.
Sources: GitHub::livekit::agents | livekit-plugins/livekit-plugins-cartesia/livekit/...