streampunk wrote: > I was trying to do it the way that is described in > http://thomer.com/howtos/detect_sound.html, which basically creates > short samples of what is played through the sound card, analyses their > voulme with sox and make the Raspi do sth. (e.g. shutdown) when the > volume level drops below certain value. But I wasn't able to solve the > > Code: -------------------- > > ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave > arecord: main:788: audio open error: Device or resource busy -------------------- > > > problem. Everything else worked perfectly, i.e. creating the wave > samples, sox analysis etc., shutdown when no sound is detected in the > sample - but only when Liquidsoap wasn't running at the same time. > > So I parked the project and opted for a hardware solution > (button/switch). Hoping of course that sb. with better Linux skills > and similar interests would do the job ;)
I think it should be possible to do the blank detection inside Liquidsoap and use a handler to shut down the Pi but to date I haven't been able to get the syntax correct or work out how to set the delay Viz http://liquidsoap.fm/doc-dev/blank.html *Pi3 with piCoreplayer music on QNAP TS419p via NFS* iThingys/iPeng/Tablets/Jogglers *Living Room* - Joggler & SB3 -> Onkyo TS606 - > Celestion Ditton F20s *Office* - Pi -> Sony TA FE320 -> Celestion F10s / Pi & SB3 -> Onkyo CRN 755 -> Wharfedale Modus Cubes *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio) *Bedroom (Bedside)* - SB Touch -> Topping TP21 -> AKG Headphones ------------------------------------------------------------------------ d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=49584 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
