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.

install on raspberry-pi 400

With a screen attached

We need to force the X-server to start when the HDMI cable is not plugged in (for the pynput key-logger). The easiest way I found is to run sudo raspi-config, then select Advanced, Screen and pick any screen resolution except for the default one.

Pair, trust and connect your bluetooth speaker. There are many guides for this, here is one.

To install the app, add a systemd-service so that it starts on start-up and make some other changes so that it can headlessly connect to a bluetooth speaker, download and install the install script on your raspberry-pi 400. In a terminal:

Note: this script will only work on a raspberry-pi (or any debian-derived OS with a bluetooth transciever and a normal user pi that is in the audio and bluetooth groups).

curl -L https://raw.githubusercontent.com/cboddy/song-and-spell/master/scripts/install_rpi.sh | sudo bash

Note: this will restart your raspberry-pi. Turn on your speaker and it should automatically connect and go to the web-ui running on port 5000. It should look like the image below.

web-ui

todo

  • volume-normalisation?

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.

development

python3 -m venv
. bin/venv/activate
python3 setup.py develop

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

If you're not sure about the file name format, learn more about wheel file names.

song_and_spell-0.20.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file song_and_spell-0.20.0-py3-none-any.whl.

File metadata

  • Download URL: song_and_spell-0.20.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/2.7.17

File hashes

Hashes for song_and_spell-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c4f92f8d9d171cb50eeed3efea25e3d990d1efc51f3ee9f53a3006e20653d17
MD5 01f01ee32d3c92e1502606a2948786ea
BLAKE2b-256 53b6661ef8f85adb68a6b39bb845bab26af02787131a5ebd6dec2be01a613449

See more details on using hashes here.

Supported by

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