I've got a small piece of software which allows me to sync my hue lights to sound. I'm in the process of porting it to raspberry pi (accessible through a web interface). The raspberry pi will be connected to a surround sound system and needs to be able to play music when I hit the button via the web interface.I'm currently using https://github.com/shime/play-sound to use the system's default audio player to play the sound directly from node on an API call but found this a bit limiting - I can only start or stop the sound, I would also like to loop, pause, fade etc.Does anyone have any experience in doing something like this?My backup idea was to run 2 webservers so I can use the HTML audio API and use a streaming socket to communicate between the two - this seems overcomplicated though.
Submitted July 28, 2020 at 02:32PM by dtsn
No comments:
Post a Comment