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, you'll have to check what and how much is built to keep the Raspberry Pi from crashing.

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