square-airport-30159
09/24/2025, 6:02 PMtall-airline-16756
09/24/2025, 6:02 PMtall-airline-16756
09/24/2025, 6:02 PMllm_node method in your custom agent class.
• Using `tts_node`: This is perfect for adjusting the text just before it goes to the TTS engine. Maybe you want to swap out casual expressions like "lol" with a fun sound effect like "<laugh>".
• Using `transcription_node`: Here, you can make those final touches—formatting or word replacements—before the text is sent as transcription or to the TTS.
If you’d like, I’m here to help with specific examples or guide you through the implementation. Just let me know!
Sources: Docs::Agents | Modifying LLM output before TTS | LiveKit Docs | pipeline-llm/transcription_node.py | Pipeline nodes and hooks | LiveKit Docs