I was testing last night on LMS 7.9 running on both Debian and OSX pushing to a Squeezebox Radio. The display within the SBR shows it unable to connect to the HASS URL. I’m running LE SSL as well. I suspected the HTTPS/SSL might be the issue. Seems based on your experience and mine that might be it.
Ironically, HA shows the SBR and after the MP3 is attempted to be streamed and fails, it shows in the Media Player within HA’s UI. If I click play, it works as intended.
I tested removing the “base_url” definition in configuration.yaml, and it’s working now I can still reach my HA instance via the HTTPS FQDN I have mapped to my home, so not sure I even needed the “base_url” definition. In any event, test this, I think it will work for you.
Unfortunately this didn´t help for me.
Now the url is internal (192.168…), which might be better, but there is still no sound.
If I copy the url to browser it plays the mp3 just fine.
Tried it with a SB Receiver and Radio, could it be a codec issue?
BTW, are you using Google TTS?
Do you mind sharing your working conf for TTS?
I’m working on a solution with xmpp bot who can add bookmarks then play tts file and resume playing in kodi. When setup is finished I’ll post it of course if anyone is interested in
Hi guys, listen I just want to say good work on that scrip. i just tried it in my environment myself, but for some reason it doesn’t really fully worked for me. My first issue is, on my squeezebox I can only see a display text or an mp3 file and my second issue is that my previous playlist did not get restored. I’m using HA 0.41 and my squeezebox is 7.9.0
I had to do this in node-red. My only issue is that the call to play TTS resumes music even when it wasn’t playing. I am using Volumio and it’s REST API is limited. However, the issue seems to be that when it plays a TTS, it removes what was previously playing so resume can only start from the beginning of a number from a queue rather than the point in the song. This is ok for web radio, but not ideal for media songs. I can live with this, I can’t however live with music starting to play after TTS if it wasn’t before.
I was able to fix most of my issues with a lot of node-red and some bash scripting on the Volumio server including dealing with my amp being in standby.
I guess this is all outside of HA now, however HA now has a generic mqtt tts endpoint on node-red to send anything that requires speech to be played.
What I did was buy a cheap speaker and hooked up a chromecast audio too it, then hid the speaker so you can’t see it. When ever I need TTS I have it sent to that speaker instead of my main Google Home.
i’m here as well (resuming previous playlist on Google Home/Chromecast). Complaint from the S.O. on my new “Yes, the dog has been fed” automation. She’s frequently running music through the house, but when I fire the TTS through an automation she loses the playlist.
I’ve been working on a custom TTS script and linked entities card for a few days, and this evening noticed the same issue, whereby if music is playing during TTS submission, I can state that and pause playback, but was unable to resume.
I just thought I’d share my resolution as this page pointed me in the right direction, the answer was to pause playback first as part of the TTS script, then once done, submit a custom command to the device as if speaking to it, simply saying “resume”, which carries on playback from wherever it was.
I’ve incorporated this into my existing script which opens with variable setting for current device (so the card can have multiple device drop-down select), current device volume and desired volume to set (again from card input)
So the ultimate ending of the script with all variables incorporated looks like the below - thanks for the pointers!
Edit to add: I always set the target device volume to 0 immediately before setting the desired volume on echo devices, as that ‘mutes’ the annoying ‘BONK’ sound when setting a new volume level.
Additional edit to add: Wow, only just noticed this post is 6 years old!! Ah well, hopefully this info helps someone else stumbling upon this post!