summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osc_ctrl.py6
-rw-r--r--transcribe.py2
2 files changed, 1 insertions, 7 deletions
diff --git a/osc_ctrl.py b/osc_ctrl.py
index 0352e6f..d80f055 100644
--- a/osc_ctrl.py
+++ b/osc_ctrl.py
@@ -255,12 +255,6 @@ def sendMessageLazy(client, msg, tx_state):
cell_msg = msg_encoded[cell_begin:cell_end]
last_cell_msg = []
- if cell > 0 and cell % (2 ** generate_utils.INDEX_BITS) == 0:
- # TODO(yum_food) support messages longer than one page
- print("Page limit exceeded, no support yet")
- tx_state.last_msg_encoded = msg_encoded[0:cell_begin]
- return True
-
# Skip cells we've already sent. This makes the board much more
# responsive.
if cell_end < len(tx_state.last_msg_encoded):
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