Handles partial transcription results from the transcriber.
(text: str)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected