15 lines
479 B
Batchfile
15 lines
479 B
Batchfile
@echo off
|
|
cd /d "%~dp0"
|
|
|
|
set "VENV=%~dp0.venv-windows"
|
|
|
|
rem Machine-local config dir (device, compute_type, audio_device - not in git)
|
|
if not exist "%LOCALAPPDATA%\WhisperDictation" mkdir "%LOCALAPPDATA%\WhisperDictation"
|
|
set "WHISPER_LOCAL_DIR=%LOCALAPPDATA%\WhisperDictation"
|
|
|
|
rem CUDA 12 DLLs required by ctranslate2
|
|
set "PATH=%VENV%\Lib\site-packages\nvidia\cublas\bin;%VENV%\Lib\site-packages\nvidia\cudnn\bin;%PATH%"
|
|
|
|
"%VENV%\Scripts\python.exe" -u "%~dp0dictate.py"
|
|
pause
|