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

Method partial_transcript_callback

code/audio_in.py:78–83  ·  view source on GitHub ↗

Handles partial transcription results from the transcriber.

(text: str)

Source from the content-addressed store, hash-verified

76 def _setup_callbacks(self) -> None:
77 """Sets up internal callbacks for the TranscriptionProcessor instance."""
78 def partial_transcript_callback(text: str) -> None:
79 """Handles partial transcription results from the transcriber."""
80 if text != self.last_partial_text:
81 self.last_partial_text = text
82 if self.realtime_callback:
83 self.realtime_callback(text)
84
85 self.transcriber.realtime_transcription_callback = partial_transcript_callback
86

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected