Skip to main content

A configurable, mutable toddler radio that encourages spelling

Project description

song-and-spell

tl;dr

A key-logger that triggers playing an audio track when a sequence of keys are pressed and a web-app to configure the words and songs.

Requires VLC to be installed on the host and an X server to be running.

todo

  • key-logger
  • youtube-dl the link and store as mp3 locally.
  • flask-web-app
    • list of words and files/links
    • mute
    • upload file
      • remove word/file
    • ~~form add word/link ~~
  • systemd service to:
    • run on start-up
    • restart on error
  • bash script to deploy (ideally to an [rpi-400]https://www.raspberrypi.org/products/raspberry-pi-400/)

notes

  • the pynput library requires an X server to be running. Set default resolution in raspi-config (anything other than default) to force the X server to start.

setup bluetooth

# install required packages
sudo apt install bluealsa pulseaudio* bluez-tools vlc

# set display to force X-server to start
TODO
raspi-config nonint ???

# pair bluetooth
TODO

# update bluetoothd service to start  with a2dp plugin
sudo sed -i 's#ExecStart=/usr/lib/bluetooth/bluetoothd#& --plugin=a2dp#' /lib/systemd/system/bluetooth.service
# reload/restart bluetooth service
systemctl daemon-reload
systemctl restart bluetooth

# switch to the bluetooth speaker as the default speaker when it connects
echo "load-module module-switch-on-connect" >> /etc/pulse/default.pa

setup

python3 -m venv
. bin/venv/activate
pip3 install -r requirements.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

song_and_spell-0.9.0-py3.6.egg (10.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page