Good morning,
Perhaps I'm going slightly OT, but as I suppose that you audio
specialist here are familiar with my question, I'll try it here: Now
that the phono streaming to LMS is working, I'm looking for a way to
have a clean shutdown (as opposed to simply switch of the power) of the
Raspi Zero once there is no significant audio signal on the line in of
the sound card, for example 15 minutes after the last vinyl record
reached its end. Significant in the sense of music, because I suppose
that, having an analogue source, there will always be some basic noise
or humming, even when no record is playing.
I've been browsing throug the alsa utils and alsa tools, but didn't find
a tool to detect and/or measure the audio level on the sound card.
What I did find is sox beeing used to detect audio (for example
http://thomer.com/howtos/detect_sound.html). But it seems that sox
analyzes a 5-second-recording, and my Linux skills aren't even
sufficient for analyzing whether sox could also detect an Icecast stream
or LiquidSoap's output, let alone how.
As I don't want to re-invent the wheel and was thinking that there might
have been others resolving this kind auf auto standby/shutdown: Do you
have any hints for me?
Thanks & best regards
Martin



PCP (always latest version) on RasPi 3 with PhatDac (player & server)
PCP on several RasPis 2 +3
2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin
------------------------------------------------------------------------
streampunk's Profile: http://forums.slimdevices.com/member.php?userid=66210
View this thread: http://forums.slimdevices.com/showthread.php?t=49584

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to