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)
| 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.""" |