Clamped phrase length to about 10 seconds.

This commit is contained in:
Kiri 2025-08-22 08:24:36 -07:00
parent 457732e2ff
commit 92efbd5ae8

View File

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