Soundboard
The sound board is a program that enables playing short sound effects over the space's music system. It does this by listening on predetermined MQTT topics. When a matching MQTT message is received, the soundboard temporarily pauses the music and plays the sound effect. The sound board runs on the music server (http://music.space.hackalot.nl, accessible over the local network). The source code is on Gitlab: https://git.hackalot.nl/space-services/soundboard.
Current applications
The soundboard is currently configured for the following applications (MQTT topic in brackets):
- Controlling the music player (hackalot/music/control)
- Various sound effects (hackalot/music/effect)
- Doorbell sound (hackalot/deurbel)
- Demo (hackalot/demo)
- Space state open/close (hackalot/state)
- Front door unlock (internal/doorduino/voordeur), see below
These topics are configured in the soundboard's config.yaml
Playing sound effects
To play a sound effect, publish the name of an effect (found in /srv/soundboard/<effect name>) to the MQTT topic hackalot/music/effect.
Adding personalized entrance music
It is possible to play a customize the sound that plays when unlocking the front door. To do this, create the directory /srv/soundboard/participant_frontdoor/<your username> (case sensitive) on the music server and put upload your sound effect there. The soundboard should automatically handle the rest. If no personalized sound is found, the soundboard plays the default in /srv/soundboard/unlocked.