MCPcopy Create free account
hub / github.com/KoljaB/RealtimeVoiceChat / on_potential_final

Method on_potential_final

code/server.py:648–657  ·  view source on GitHub ↗

Callback invoked when a potential *final* transcription is detected (hot state). Logs the potential final transcription. Args: txt: The potential final transcription text.

(self, txt: str)

Source from the content-addressed store, hash-verified

646 self.app.state.SpeechPipelineManager.prepare_generation(txt)
647
648 def on_potential_final(self, txt: str):
649 """
650 Callback invoked when a potential *final* transcription is detected (hot state).
651
652 Logs the potential final transcription.
653
654 Args:
655 txt: The potential final transcription text.
656 """
657 logger.info(f"{Colors.apply('🖥️🧠 HOT: ').magenta}{txt}")
658
659 def on_potential_abort(self):
660 """Callback invoked if the STT detects a potential need to abort based on user speech."""

Callers

nothing calls this directly

Calls 1

applyMethod · 0.80

Tested by

no test coverage detected