diff --git a/README.md b/README.md index e94087a..2e80c25 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ Autohotkey based GUI for utilizing [Whisper.cpp](https://github.com/ggerganov/wh - Download and install [ffmpeg](https://ffmpeg.org/download.html)(or choco install -y ffmpeg) - Download and install the [Microsoft Visual C++ Redistributable](https://www.microsoft.com/en-us/Download/confirmation.aspx?id=48145) - Git clone the repo to your computer with `git clone URL` -- Download and extract the contents of `whisper-bin-x64.zip` to `\Whisper\` from https://github.com/ggerganov/whisper.cpp/releases -- Download and move the whisper model you want to use to `\Whisper\` from https://github.com/ggerganov/whisper.cpp/blob/master/models +- Download and extract the contents of `whisper-bin-x64.zip` to `\Models\` from https://github.com/ggerganov/whisper.cpp/releases +- Download and move the whisper model you want to use to `\Models\` from https://github.com/ggerganov/whisper.cpp/blob/master/models - Run `Whisper-AHK` to start the GUI. - To download updates to the scripts, close all running Transcribers and run the `Pull-Updates-From-Git.exe` (must have git installed) diff --git a/Whisper-AHK.ahk b/Whisper-AHK.ahk index af4e34f..1b85b19 100644 --- a/Whisper-AHK.ahk +++ b/Whisper-AHK.ahk @@ -30,11 +30,11 @@ ScriptVersion = V1.0 WhitelistedMediaFilesExtensions = mp3,wav,mp4 ; Models -largeM_FP = %A_scriptdir%\Whisper\ggml-large-v1.bin -mediumM_FP = %A_scriptdir%\Whisper\ggml-medium.bin -baseM_FP = %A_scriptdir%\Whisper\ggml-base.en.bin -smallM_FP = %A_scriptdir%\Whisper\ggml-small.en.bin -tinyM_FP = %A_scriptdir%\Whisper\ggml-tiny.en.bin +largeM_FP = %A_scriptdir%\Models\ggml-large-v1.bin +mediumM_FP = %A_scriptdir%\Models\ggml-medium.bin +baseM_FP = %A_scriptdir%\Models\ggml-base.en.bin +smallM_FP = %A_scriptdir%\Models\ggml-small.en.bin +tinyM_FP = %A_scriptdir%\Models\ggml-tiny.en.bin ; Number of processors EnvGet, ProcessorCount, NUMBER_OF_PROCESSORS @@ -568,7 +568,7 @@ loop % SelectedAudioFilesArray.Length() { UStartTime := A_TickCount ; start time - runwait, %ComSpec% /%KeepCMD% title Podcast-Transcription-In-Progress & %A_scriptdir%\Whisper\main.exe -m %ModelPath% -f "%WavFilepath%" -t %CPUThreads% -otxt -ovtt -osrt -owts -ocsv -of "%OutputPath%" + runwait, %ComSpec% /%KeepCMD% title Podcast-Transcription-In-Progress & %A_scriptdir%\Models\main.exe -m %ModelPath% -f "%WavFilepath%" -t %CPUThreads% -otxt -ovtt -osrt -owts -ocsv -of "%OutputPath%" URunTime := round(((A_TickCount - UStartTime) / 1000), 2) ; end time Message = Time to Transcribe: %URunTime% seconds