diff --git a/gui.py b/gui.py index 04dfa2c8..d110b5df 100644 --- a/gui.py +++ b/gui.py @@ -34,7 +34,6 @@ class AudioDevicesComboBox(QComboBox): def on_index_changed(self, index: int): self.deviceChanged.emit(self.audio_devices[index][0]) - pass class RecordButton(QPushButton): diff --git a/transcriber.py b/transcriber.py index 4a5a6b52..17cb923d 100644 --- a/transcriber.py +++ b/transcriber.py @@ -9,6 +9,10 @@ from typing import Callable import pyaudio import whisper +# When the app is opened as a .app from Finder, the path doesn't contain /usr/local/bin +# which breaks the call to run `ffmpeg`. This sets the path manually to fix that. +os.environ["PATH"] += os.pathsep + "/usr/local/bin" + class Transcriber: # Number of times the queue is greater than the frames_per_chunk