From d7c225ab3fcad600e93e9464886702fd269fedd5 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 20 Oct 2022 18:41:01 -0700 Subject: Quiet down transcribe.py Also adjust continuous transcription algorithm to use leftmost minimum instead of rightmost. This prevents some cases where we generate longer and longer text. --- osc_ctrl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'osc_ctrl.py') diff --git a/osc_ctrl.py b/osc_ctrl.py index 761ff78..5b4b3f6 100644 --- a/osc_ctrl.py +++ b/osc_ctrl.py @@ -262,13 +262,13 @@ def sendMessageLazy(client, msg, tx_state): if cell_msg == [state.encoding[' ']] * NUM_LAYERS: if empty_cells_sent >= tx_state.empty_cells_to_send_per_call: - print("empty cell budget exceeded") + #print("empty cell budget exceeded") tx_state.last_msg_encoded = msg_encoded[0:cell_end] return False empty_cells_sent += 1 else: if nonempty_cells_sent >= tx_state.nonempty_cells_to_send_per_call: - print("nonempty cell budget exceeded") + #print("nonempty cell budget exceeded") tx_state.last_msg_encoded = msg_encoded[0:cell_end] return False nonempty_cells_sent += 1 -- cgit v1.2.3