colossal-xylophone-68609
05/18/2026, 7:42 PMtall-airline-16756
05/18/2026, 7:42 PMtall-airline-16756
05/18/2026, 7:42 PMstt_node and whether calling Agent.default.stt multiple times there is correct.
You should call the default STT implementation once per audio stream. The supported pattern is to override stt_node, optionally preprocess the audio stream, call Agent.default.stt_node(...) a single time to produce speech events, then optionally postprocess those events. Calling Agent.default.stt_node multiple times risks reprocessing the same stream or violating stream-consumption assumptions and is not recommended.
If you’d like, share the relevant code snippet (the stt_node override) and I’ll review it and suggest how to refactor to a single Agent.default.stt_node call.
Sources: Pipeline nodes and hooks | LiveKit Documentation, with interactive elements