Show HN: Port of OpenAI's Whisper model in C/C++
For those who want to try, here are the steps I took over about an hour to set it up:<p>1. Downloaded the Win10 artifact: <a href="https://github.com/ggerganov/whisper.cpp/actions/runs/3635525218" rel="nofollow">https://github.com/ggerganov/whisper.cpp/actions/runs/363552...</a> at the bottom of the page by logging in to Github. Extract and placed this folder in my F:\ drive renaming it to 'Whisper'.<p>2. Downloaded `ggml-large.bin` here: <a href="https://huggingface.co/datasets/ggerganov/whisper.cpp/tree/main" rel="nofollow">https://huggingface.co/datasets/ggerganov/whisper.cpp/tree/m...</a>. Within F:\Whisper, add a folder named 'models'. Move ggml-large.bin to the 'models' folder.<p>3. Downloaded ffmpeg, extracted the archive to F:\FFMpeg, and set the environment variable by going to (right click) This PC -> Properties -> Advanced system settings -> (Advanced tab) -> Environment Variables -> click Path -> Edit -> (paste in ffmpegs path i.e. F:\FFMpeg\)<p>4. Use PowerShell to run ffmpeg against an mp3 file, to convert it to WAV (which is the only format that works) i.e.:<p>ffmpeg -i F:\Rec\input.mp3 -ar 16000 -ac 1 -c:a pcm_s16le F:\Output\output.wav<p>5. Open PowerShell again, `cd` to the Whisper folder, and ran this:<p>./main -m models/ggml-large.bin -f F:\Rec\output.wav