I begin with mopidy.
I have a philips hue and I would like to synchronise with the music that mopidy stream.
How I do that ?
Do I must use python music visualizer ?
And I need to create frontend extention right ?
I would like to do same like https://www.youtube.com/watch?v=zi9J6Qg-MPw but with mopidy
Mopidy frontends are for listening to core events and interacting with core. They don’t have access to the audio stream. You want to either use the
audio/output setting to tee a copy of the audio or just see if you can read from the soundcard.
Either way you likely want this outside of mopidy if you need access to the audio stream to control the lights accordingly.
Thanks for you answer.
So, If I want audio/output, i need to create a backend extension.
I will see for read form the soundcard but I never do that so, I don’t know how do I do.
Maybe, if I have access to the uri/link with music and the time that the music are playing maybe I can create sync with my hue, with the api of http://the.echonest.com/.
What do you think ?
No, @adamcik did not suggest a backend extension was what you are looking for. Mopidy provides no API to access the underlying audio data which is what you seemingly want to do. So you must access the audio data outside of Mopidy. The audio config section has an
output setting which will allow you to configure something to intercept the data as it leaves Mopidy. The gstreamer tee element is a good place to start with this. You will probably find example configs where people have used a tee to output audio data to a Fifo which is then consumed by another program.
Echonest might be a good alternative if you don’t want users to have to fiddle with their output settings. Did you see the article at http://musicmachinery.com/2012/04/09/syncing-echo-nest-analysis-to-spotify-playback/
Thanks no I don’t see this link. Thank you very much.
I saw this link with python code : https://fabuloushomeautomation.wordpress.com/2015/04/05/homemade-disco-using-sonos-and-hue/
My hue change (only once) but Is not sync, I don’t find to create the while I will see your link maybe I will find my answer
It’s right, with echonest, I create a frontend extension to have a time music and the title …