diff options
| -rw-r--r-- | Scripts/osc_ctrl.py | 3 | ||||
| -rw-r--r-- | Scripts/transcribe.py | 6 | ||||
| -rw-r--r-- | Sounds/Noise_Off_Quiet.wav | bin | 0 -> 67278 bytes | |||
| -rw-r--r-- | Sounds/Noise_On_Quiet.wav | bin | 0 -> 67278 bytes |
4 files changed, 6 insertions, 3 deletions
diff --git a/Scripts/osc_ctrl.py b/Scripts/osc_ctrl.py index e57a843..93b236b 100644 --- a/Scripts/osc_ctrl.py +++ b/Scripts/osc_ctrl.py @@ -142,6 +142,9 @@ def pageMessage(osc_state: OscState, msg: str) -> bool: # truncates data at about 150 chars, so just send the suffix of the message for # now. def pageMessageBuiltin(osc_state: OscState, msg: str) -> bool: + if len(msg) == 0 or msg.isspace(): + return False # Not paging + msg_begin = max(len(msg) - 140, 0) msg_suffix = msg[msg_begin:len(msg)] diff --git a/Scripts/transcribe.py b/Scripts/transcribe.py index f452b2c..ee76a0a 100644 --- a/Scripts/transcribe.py +++ b/Scripts/transcribe.py @@ -355,7 +355,7 @@ def readControllerInput(audio_state, enable_local_beep: bool, if not use_builtin: osc_ctrl.indicateSpeech(audio_state.osc_state.client, False) osc_ctrl.toggleBoard(audio_state.osc_state.client, False) - #playsound(os.path.abspath("../Sounds/Noise_Off.wav")) + #playsound(os.path.abspath("../Sounds/Noise_Off_Quiet.wav")) resetAudioLocked(audio_state) resetDisplayLocked(audio_state) @@ -373,7 +373,7 @@ def readControllerInput(audio_state, enable_local_beep: bool, audio_state.audio_paused = True if enable_local_beep == 1: - playsound(os.path.abspath("../Sounds/Noise_Off.wav")) + playsound(os.path.abspath("../Sounds/Noise_Off_Quiet.wav")) elif state == PAUSE_STATE: state = RECORD_STATE if not use_builtin: @@ -387,7 +387,7 @@ def readControllerInput(audio_state, enable_local_beep: bool, audio_state.audio_paused = False if enable_local_beep == 1: - playsound(os.path.abspath("../Sounds/Noise_On.wav")) + playsound(os.path.abspath("../Sounds/Noise_On_Quiet.wav")) # model should correspond to one of the Whisper models defined in # whisper/__init__.py. Examples: tiny, base, small, medium. diff --git a/Sounds/Noise_Off_Quiet.wav b/Sounds/Noise_Off_Quiet.wav Binary files differnew file mode 100644 index 0000000..d5c6171 --- /dev/null +++ b/Sounds/Noise_Off_Quiet.wav diff --git a/Sounds/Noise_On_Quiet.wav b/Sounds/Noise_On_Quiet.wav Binary files differnew file mode 100644 index 0000000..79170f5 --- /dev/null +++ b/Sounds/Noise_On_Quiet.wav |
