Software Setup
OS Image & Blinka
Use theĀ Raspberry Pi Imager to load a fresh image of Raspberry Pi OS (64-bit) onto a micro SD card. Once the SD card is ready, insert it into the Pi 5 and boot up.
Run these commands to update all of the pre-loaded software.
sudo apt update sudo apt upgrade
Next install Adafruit Blinka on the Raspberry Pi by following theĀ instructions in the Blinka Learn Guide.
Moonshine
Be sure that you activate the same Python virtual environment that Blinka was installed in when you install Moonshine. The code for this project needs to utilize both Blinka and Moonshine together, so both must be installed in the same environment.
If it's not already active, then activate the environment with a command like this one adapted for the path and name of your virtual environment if they are different.
source env/bin/activate
Install moonshine-voice using pip with this command.
pip install moonshine-voice
The first time that you use the moonshine-voice library, it will download the required model files. To download them now, and ensure that the install is working properly, use this command to launch the basic transcription example.
python -m moonshine_voice.mic_transcriber --language en
It will take a moment to initialize and then begin listening to the microphone and transcribing the words that it hears.
Press Ctrl+C when you want to exit the transcription example.
Page last edited February 25, 2026
Text editor powered by tinymce.