From 674ac6c5117e31e4d12722354c853a56c65087ca Mon Sep 17 00:00:00 2001 From: Raivis Dejus Date: Fri, 17 Oct 2025 08:42:17 +0300 Subject: [PATCH] Fix for whisper executable path in frozen envs --- buzz/transcriber/recording_transcriber.py | 4 ++++ buzz/transcriber/whisper_cpp.py | 4 ++++ 2 files changed, 8 insertions(+) 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