diff --git a/buzz/transcriber/recording_transcriber.py b/buzz/transcriber/recording_transcriber.py index 950114d0..5c71b8ba 100644 --- a/buzz/transcriber/recording_transcriber.py +++ b/buzz/transcriber/recording_transcriber.py @@ -336,6 +336,10 @@ class RecordingTranscriber(QObject): server_executable = "whisper-server.exe" if sys.platform == "win32" else "whisper-server" server_path = os.path.join(APP_BASE_DIR, "whisper_cpp", server_executable) + # If running Mac and Windows installed version + if not os.path.exists(server_path): + server_path = os.path.join(APP_BASE_DIR, "buzz", "whisper_cpp", server_executable) + cmd = [ server_path, "--port", "3003", diff --git a/buzz/transcriber/whisper_cpp.py b/buzz/transcriber/whisper_cpp.py index e78601d7..201ac450 100644 --- a/buzz/transcriber/whisper_cpp.py +++ b/buzz/transcriber/whisper_cpp.py @@ -40,6 +40,10 @@ class WhisperCpp: cli_executable = "whisper-cli.exe" if sys.platform == "win32" else "whisper-cli" whisper_cli_path = os.path.join(APP_BASE_DIR, "whisper_cpp", cli_executable) + # If running Mac and Windows installed version + if not os.path.exists(whisper_cli_path): + whisper_cli_path = os.path.join(APP_BASE_DIR, "buzz", "whisper_cpp", cli_executable) + language = ( task.transcription_options.language if task.transcription_options.language is not None