This is a very simple project that listens on MQTT and plays a pre-configured file. It is used to implement a zigbee powered door bell.
The project does not come with any sound files for licensing reasons, but you can find some here https://pixabay.com/sound-effects/search/door-bell/
MIT
Usage: mqtt-bell --config <CONFIG>
Options:
-c, --config <CONFIG> Path to config.toml
-h, --help Print help
-V, --version Print version
[mqtt]
topic = "bell/ring"
host = "mqtt"
# Optional arguments
# port = 1833
# username = ""
# password = ""
[audio]
# Sound file must be specified, see https://crates.io/crates/rodio for supported formats
sound_file = ""
play_count = 3
[general]
log_level = "error"
- ALSA, on systems using pipewire this means pipewire-alsa On debian based systems these can be installed via
sudo apt-get install -y alsa-utils alsa-base libasound2 libasound2-dev