Add debug logging to KrispVivaTurn analyze_end_of_turn and update example

Move speech detection tracking outside the per-frame loop in append_audio
since is_speech applies to the whole buffer. Add debug log in
analyze_end_of_turn to show state and probability at decision time. Update
the Krisp VIVA example to use Cartesia TTS and turn analyzer strategy.
This commit is contained in:
Mark Backman
2026-02-23 21:27:39 -05:00
parent 9c2ac661a3
commit 65f563ad34
4 changed files with 11 additions and 4 deletions

View File

@@ -331,6 +331,9 @@ class KrispVivaTurn(BaseTurnAnalyzer):
"""
# For real-time processing, the state is determined in append_audio
# Return the last state that was computed
logger.debug(
f"Krisp turn analysis: state={self._last_state}, probability={self._last_probability}"
)
return self._last_state, None
def clear(self):