Skip to main content

Installing and Building the Right whisper.cpp

Cloning the Github repository locally
cd ~
git clone https://github.com/ggerganov/whisper.cpp
Build additional libraries
sudo apt install -y libsdl2-dev
Building whisper-stream

Here,The you'll-j2 haveflag limits parallel build jobs to check2. whatUsing and-j4 howor muchhigher ismay builtcause the Pi to keepcrash thedue Raspberryto Pimemory from crashing.
This worked on my Raspberry Pi 500:exhaustion.

cd ~/whisper.cpp
rm -rf build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DWHISPER_SDL2=ON
cmake --build build --target whisper-stream -- -j2