silly-dusk-24995
10/20/2025, 8:14 AMtall-airline-16756
10/20/2025, 8:15 AMtall-airline-16756
10/20/2025, 8:16 AMsilly-dusk-24995
10/20/2025, 8:18 AMtall-airline-16756
10/20/2025, 8:20 AMstream() for streaming synthesis or synthesize() for batch synthesis. This adapter will take care of turning your text input into audio frames.
3. Integrate with LiveKit: Next, use LiveKit's rtc.AudioSource to capture those audio frames from your TTS engine and publish them as a track in your LiveKit room. This is where your TTS really comes to life!
4. Handle Text Input: Implement helpful methods like push_text() to queue up text for synthesis, and end_input() to signal when you’re done sending text.
5. Test and Optimize: Finally, give everything a good test to make sure the audio plays smoothly. You might want to fine-tune for latency or audio quality to get the best experience.
If you’d like, feel free to share more about your local TTS engine—whether it’s Coqui TTS, Festival, eSpeak, or something else—and the audio format it uses. That way, I can offer you more tailored advice or even some code snippets to help along the way. I’m here to support you every step of the journey!
Sources: Text-to-speech (TTS) models | LiveKit Docs | Pipeline nodes and hooks | LiveKit Docs | livekit-plugins/livekit-plugins-speechify/livekit/plugins/speechify/tts.py