ggerganov / whisper.cpp

Port of OpenAI's Whisper model in C/C++
MIT License
34.85k stars 3.55k forks source link

Version for Windows on Arm? #2132

Open geekinchief22 opened 5 months ago

geekinchief22 commented 5 months ago

I want to be able to run this on a laptop with Windows on Arm and Qualcomm Snapdragon CPU. Is there a way to compile it for Windows on Arm and, if so, would it take advantage of the Snapdragon's NPU?

przemoc commented 5 months ago

You could try using MSYS2 and build whisper.cpp using make or cmake in CLANGARM64 environment.

CI build definition shows what packages to install (pacman -S PACKAGE_NAME...):

https://github.com/ggerganov/whisper.cpp/blob/master/.github/workflows/build.yml#L253

I don't have ARM64 device w/ Windows, so cannot test it myself, but I would expect it to work more or less.

Afterall, there is relevant whisper.cpp package in MSYS2 already, mingw-w64-clang-aarch64-whisper.cpp, so instead of building whisper.cpp yourself, you could just download and use this package.