mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 22:55:46 +01:00
Fix ffmpeg not being found in path
This commit is contained in:
parent
dff4215212
commit
0622ffb7d8
2 changed files with 4 additions and 1 deletions
1
gui.py
1
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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue