lively-coat-10905
08/25/2025, 8:33 AMtall-airline-16756
08/25/2025, 8:34 AMtall-airline-16756
08/25/2025, 8:35 AMstt_node method in your Agent class to clean up the transcribed text. For instance, you might want to remove filler words or add some domain-specific tweaks.
2. Use the Transcription Node: This lets you polish the transcription by fixing punctuation, cleaning up formatting, or swapping out certain words before moving forward.
3. Use the Before LLM Callback: Here, you can adjust the ChatContext (which includes the transcribed text) right before it’s sent to the LLM—great for shaping the conversation’s context.
Honestly, overriding the stt_node is probably the most straightforward way since it lets you process the text right away. If you want, I’m happy to share some detailed examples or help you get it set up!
Sources: pipeline-llm/replacing_llm_output.py | VoicePipelineAgent | LiveKit Docs | Pipeline nodes and hooks | LiveKit Docs | Voice pipeline nodes | LiveKit Docs