Windows: .venv\Scripts\activate
MacOS: source .venv/bin/activate
pip install openai-whisper torch torchvision torchaudio PySide6
pip freeze > requirements.txt
Clone the repo
pip install -r requirements.txt
python tools/update_requirements.py
python .\whisper_app.py
pip install pyinstaller
pyi-makespec --name WhisperTranscriber --windowed whisper_app.py
# -*- mode: python ; coding: utf-8 -*-
import os
# Define the output paths
user_downloads = os.path.join(os.path.expanduser('~'), 'Downloads')
whisper_transcriber_path = os.path.join(user_downloads, 'WhisperTranscriber')
# Ensure the download directory exists
os.makedirs(whisper_transcriber_path, exist_ok=True)
# Define build path within the WhisperTranscriber folder
build_path = os.path.join(whisper_transcriber_path, 'build')
os.makedirs(build_path, exist_ok=True)
a = Analysis(
...
datas=[
('.venv/Lib/site-packages/whisper', 'whisper'),
],
...
)
pyz = PYZ(a.pure)
exe = EXE(
...
name='WhisperAudioTranscriber',
...
distpath=dist_path, # Specify custom dist path
)
coll = COLLECT(
...
name='WhisperAudioTranscriber',
distpath=dist_path, # Specify custom dist path
)
pyinstaller WhisperTranscriber.spec