Snapcast Server, Snapcast Client and librespot repository

The file is in the addon repository. It’s the one I linked earlier.

The owner needs to update it. Or you could fork the repo and update it. Then either do a pull request or set it up as your own addon.

Is anyone able to play spotify on HA, and send audio as a Snapcast server

  • to other Snapcast Clients?
  • or other WiFi speakers, connected as integrations?

I have made some improvements.

Let me know if it’s working for you!

I will check it out.

I currently have a VM with shapcast running. one of the thing that prevent me from using your solution is that i have several MPD daemons running on the VM.

Yeah, I was thinking of getting to know MPD as well, but since I rely on spotify right now for all my music needs, this is what I came up with.

If you’d help me understand your use case with MPD a bit better, I probably could implement it within this addon as well.

Well I use mpd and the music assistant can be used as client. music assistant don’t uses your main spotify stream. that you use on your phone or with connect. So you can play different spotify playlists in one household using multiple mpd’s and snapcast.

I also have a mpd for messages from Home assistant. I have a script called tts_start that saves the muted state and stream of each snapcast client. then switch the needed snapclients to the mpd for messages and when the stream is idle and a tts stop is triggered reversing the process.

Its only a darn pain in uncomfortable places to make mutiple mpd’s run at the same system. so a addon would be very nice.

I see that having the ability to play TTS via snapcast, just by changing the snapcast group would be amazing. I will dwell on this.

how is your dwelling?

I can’t Install Mopidy this way. Any alternative?

Seems to be going well, I’m using this: GitHub - s-knibbs/snapcast-ha-player: Home Assistant custom integration to enable TTS playback through a snapcast server

And have managed to get it working. Now thinking through the best way to create an automation that plays an announce sound and reads the TTS input string without cutting it off.

Here’s an overview: