From a2ef416a45d994eade076edb235217485416776b Mon Sep 17 00:00:00 2001 From: Chidi Williams Date: Thu, 4 Jan 2024 00:54:47 +0000 Subject: [PATCH] fix: execstack --- tests/mock_sounddevice.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/mock_sounddevice.py b/tests/mock_sounddevice.py index fb34aaa13b..b95c9a2077 100644 --- a/tests/mock_sounddevice.py +++ b/tests/mock_sounddevice.py @@ -6,7 +6,8 @@ import numpy as np import sounddevice -import whisper + +from buzz import whisper_audio mock_query_devices = [ { @@ -114,11 +115,11 @@ def start(self): self.thread.start() def target(self): - sample_rate = whisper.audio.SAMPLE_RATE + sample_rate = whisper_audio.SAMPLE_RATE file_path = os.path.join( os.path.dirname(__file__), "../testdata/whisper-french.mp3" ) - audio = whisper.load_audio(file_path, sr=sample_rate) + audio = whisper_audio.load_audio(file_path, sr=sample_rate) chunk_duration_secs = 1