Fix ffmpeg not being found in path

This commit is contained in:
Chidi Williams 2022-09-26 00:40:37 +01:00
commit 0622ffb7d8
2 changed files with 4 additions and 1 deletions

1
gui.py
View file

@ -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):

View file

@ -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