From 92efbd5ae82bc4fdf02c27cc386df4f0f4bd589b Mon Sep 17 00:00:00 2001 From: Kiri Date: Fri, 22 Aug 2025 08:24:36 -0700 Subject: [PATCH] Clamped phrase length to about 10 seconds. --- transcriber.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transcriber.py b/transcriber.py index 92cf61a..87a27e3 100644 --- a/transcriber.py +++ b/transcriber.py @@ -134,7 +134,8 @@ class Transcriber: # bits. Clamp the audio stream frequency to a PCM wavelength # compatible default of 32768hz max. audio_np = np.frombuffer( - self._current_data, dtype=np.int16).astype(np.float32) / 32768.0 + self._current_data[-16000 * 10:], + dtype=np.int16).astype(np.float32) / 32768.0 #print("run_transcription_update About to run transcription...")