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...")