tod
tod copied to clipboard
Add success/failure sounds
I'd like to be able to play a sound on successful task completion, successful task creation, and failure/error to create task.
This might seem like a silly feature, but it's extremely important to me :) Maybe configurable within config?
Haha, I do use sounds for some of my workflows so I understand. I have my computer ding when the test suite finishes running for example. I'll check into this and agree that it probably should be disabled by default.
A simple error use case could be to print the bell character on failures, though that's not customizable I think that would be adequate for erro usage (throw the terminal bell).
A larger use case would would be something like: -> Ability to configure sound for success/creation on/off -> Ability to configure sound for failure on/of -> Ability to specify/configure sound (One possible way would be by specifying path to sound file in config, with default sound(s) included)
There are a few audio playback libraries out there; some more featured than others. The most common one is rodio, but soloud and playback_rs are more compact/basic.
For sound you can easily grab something from a site such as freesound, some success examples: https://freesound.org/people/Kenneth_Cooney/sounds/609335/ https://freesound.org/people/thisusernameis/sounds/426889/ https://freesound.org/people/GabrielAraujo/sounds/242501/