Skip to content

Commit

Permalink
fix: execstack
Browse files Browse the repository at this point in the history
  • Loading branch information
chidiwilliams committed Jan 4, 2024
1 parent c70b594 commit a2ef416
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/mock_sounddevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import numpy as np
import sounddevice
import whisper

from buzz import whisper_audio

mock_query_devices = [
{
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a2ef416

Please sign in to comment.