Skip to content

Script and setup to turn a RPi into a soundbox that plays sounds when a button is pressed.

Notifications You must be signed in to change notification settings

mriswithe/pi-soundbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPi Soundbox

This is made to assist in an easy setup of a Raspberry Pi into a little random sound player.

Requirements

  • Raspberry Pi 3/4/0
  • AIY Voice kit V1
  • Raspbian or the AIY Voice Kit image
  • Some OGG/WAV/MP3 files that you want to play
  • Python 3.7
    • This may not be REQUIRED, but is what I wrote/tested the code with. Likely 3.6 or above would be fine too.

Usage Overview

  1. Follow the base instructions for installing and configuring the AIY Voice Kit with your RPi
  2. Compile and install Python 3.7 see Compile Python
  3. Clone the repo into /opt/soundbox and enable systemd
    sudo git clone https://github.com/mriswithe/pi-soundbox.git /opt/soundbox
    sudo ln -s /opt/soundbox/soundbox.service /lib/systemd/system/soundbox.service
    sudo systemctl enable soundbox.service
  4. Create a virtual environment and install requirements
    python3.7 -m venv /opt/soundbox/venv
    source /opt/soundbox/venv/bin/activate
    pip install -r /opt/soundbox/requirements.txt
    # Need to clone the aiyprojects repo to install it
    git clone https://github.com/google/aiyprojects-raspbian.git /tmp/aiyprojects
    pip install /tmp/aiyprojects/src/
  5. Put sounds into the /opt/soundbox/sounds directory, use SCP or something
  6. Restart the Raspberry Pi.

Compile Python

.

About

Script and setup to turn a RPi into a soundbox that plays sounds when a button is pressed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages