Clamped phrase length to about 10 seconds.
This commit is contained in:
parent
457732e2ff
commit
92efbd5ae8
@ -134,7 +134,8 @@ class Transcriber:
|
|||||||
# bits. Clamp the audio stream frequency to a PCM wavelength
|
# bits. Clamp the audio stream frequency to a PCM wavelength
|
||||||
# compatible default of 32768hz max.
|
# compatible default of 32768hz max.
|
||||||
audio_np = np.frombuffer(
|
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...")
|
#print("run_transcription_update About to run transcription...")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user