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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user