Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: Play a sound at Moode startup
#11
(06-15-2025, 06:16 PM)marlab Wrote:
Quote:Meantime go to the 'Audio' tab and under 'MPD Options' there is 'Autoplay after start' This will play the last track played on a restart.


That's not a solution, unfortunately. We are asking to play a short audio clip to let the user know that the startup is completed and the system is ready, and also to reset the external DAC at the same time. 
This is the feature I liked on Volumio as well...

It could be implemented but most audio gear, at least in my experience doesn't use a startup chime so I've always had a hard time understanding the need for it.

What exactly is the usage scenario where a startup chime is needed as opposed to just opening the WebUI?

What do you mean by "reset the external DAC"?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#12
I did end up implementing this but in a more generalized way by use of a customizable "Ready Script" thats run after moOde startup completes.

Here's some specifics:
- It defaults to playing a pleasant chime to indicate the system is ready
- The chime is a flac file thats added to the Queue and then played
- There is a System Config setting to turn the Ready Script on/off
- The script can be customized but you are on your own in this case ;-)

   

ETA: Here are moode startup log entries for Ready Script

Code:
.
.
20250620 072127 worker: --
20250620 072127 worker: -- Startup complete
20250620 072127 worker: --
20250620 072127 worker: Mount monitor:    started
20250620 072127 worker: Radio monitor:    off
20250620 072127 worker: Watchdog monitor: started
20250620 072127 worker: Responsiveness:   Default
20250620 072127 worker: Ready
20250620 072127 worker: Ready script enabled
20250620 072127 worker: Script started
20250620 072127 worker: Script result: Play OSDISK/System Sounds/ReadyChime.flac
20250620 072127 worker: Script finished
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#13
(06-20-2025, 12:10 PM)Tim Curtis Wrote: I did end up implementing this but in a more generalized way by use of a customizable "Ready Script" thats run after moOde startup completes.

Here's some specifics:
- It defaults to playing a pleasant chime to indicate the system is ready
- The chime is a flac file thats added to the Queue and then played
- There is a System Config setting to turn the Ready Script on/off
- The script can be customized but you are on your own in this case ;-)



ETA: Here are moode startup log entries for Ready Script

Code:
.
.
20250620 072127 worker: --
20250620 072127 worker: -- Startup complete
20250620 072127 worker: --
20250620 072127 worker: Mount monitor:    started
20250620 072127 worker: Radio monitor:    off
20250620 072127 worker: Watchdog monitor: started
20250620 072127 worker: Responsiveness:   Default
20250620 072127 worker: Ready
20250620 072127 worker: Ready script enabled
20250620 072127 worker: Script started
20250620 072127 worker: Script result: Play OSDISK/System Sounds/ReadyChime.flac
20250620 072127 worker: Script finished

Nice feature Cool
Reply
#14
One thing (I know I am overthinking, but...)
Keep an eye on your volume(s), as you do not want to blast your speakers and/or your eardrums...
Reply
#15
(06-20-2025, 04:47 PM)Nutul Wrote: One thing (I know I am overthinking, but...)
Keep an eye on your volume(s), as you do not want to blast your speakers and/or your eardrums...

Practicing volume safety is always a good idea but since the startup chime is simply a flac thats added to the MPD Queue and played, the volume will always be the current MPD playback volume as set by the user or if MPD volume is set to Fixed (0dB) then its the level of the downstream volume control (Preamp, etc.). From a volume perspective, it's equivalent to the existing "Autoplay after start" feature. In either case the user controls the volume.

There is an alternative method to play a startup chime that involves using the ALSA aplay command. This doesn't require add/play to MPD Queue but the aplay command does not have any volume control, that has to be implemented separately and would require duplicating all the existing MPD volume management code including the case where CamillaDSP volume is used.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: