From 91d236dcded232a6e1a5d56a9a40e6a1d27abfe4 Mon Sep 17 00:00:00 2001 From: yum Date: Sat, 15 Oct 2022 18:55:27 -0700 Subject: Transcribe.py now pages Messages longer than a board will automatically write over the top. TODO * Real cell-based message diffing * Cumulative transcription * this would completely mitigate the effects of trim events --- transcribe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'transcribe.py') diff --git a/transcribe.py b/transcribe.py index 73b2c92..ea83520 100644 --- a/transcribe.py +++ b/transcribe.py @@ -175,7 +175,7 @@ def transcribeAudio(audio_state, model): # trim event and immediately accept the transcription. if text == audio_state.text_candidate or text.startswith(audio_state.text_candidate): audio_state.text = text - elif len(text) > 30 and text[0:10] != audio_state.text_candidate[0:10]: + elif len(text) > 30 and len(audio_state.text_candidate) >= 10 and text[0:10] != audio_state.text_candidate[0:10]: audio_state.text = text audio_state.text_candidate = text -- cgit v1.2.3