Supergiovane / node-red-contrib-tts-ultimate

This node transforms a text into a speech audio. You can hear the voice natively through Sonos or external players.
MIT License
22 stars 5 forks source link

Radio Stream does not resume after text played #58

Closed fischkai closed 2 years ago

fischkai commented 2 years ago

Hello,

Describe the bug Radio Stream does not resume after text played

To Reproduce Steps to reproduce the behavior:

  1. Play a radio stream on your sonos system (I have 4 speakers, main speaker called "sideboard")
  2. Different radio streams play on the 4 speakers
  3. Play a text on all speakers at once (when I receive a phone call it tells me the callers name)
  4. Radio streams get not resumed

Radio stream was resumed on the main speaker "sideboard" but that does not happen anymore.

Expected behavior Radio streams should resume on all speakers

Screenshots Sonos

TTS-Ultimate Version

Are you running node-red behind homematic, docker or anything similar? Node Red v 2.1.3 on a Raspberry Pi

Supergiovane commented 2 years ago

Hi Does the radio stream resume on the main speaker at least?

fischkai commented 2 years ago

Yes, I just tried. It resumes on the main speaker.

Supergiovane commented 2 years ago

Hi this is by design. Only the main speaker resumes. In the upcoming versions, i could add the resume for all players, but this implies for sure little delays, because tts-ultimate must wait for all speakers to tell what is currently playing.

fischkai commented 2 years ago

I do not care about a delay. It would be fine if it resumes all speakers on which a text was played. Thank you for thinking about adding it to an upcoming version.

Supergiovane commented 2 years ago

Have you starred my node? :-)

fischkai commented 2 years ago

Of course :)

Supergiovane commented 2 years ago

Ok, i'll wrote here as soon as the new version is out.

Supergiovane commented 2 years ago

node-red-contrib-tts-ultimate@1.0.45 is out. Please test it. It should work.

fischkai commented 2 years ago

Thank you, will test it. Node-Red is not offering it in the web-interface yet.

fischkai commented 2 years ago

Works! Great italian job!

fischkai commented 2 years ago

Ok, I have a little bit more experience with the new feature now. It's resuming the last streams on all sonos speakers which is perfect. Thank you. But if I press play in the Sonos app it's not showing the last stream but a stream I listened a long time ago. If I press play in the Sonos app it is playing the old stream. The stream which was resumed is not showing in the app.

Supergiovane commented 2 years ago

Hi Yes. This is a known limitation. Controlling streams from the sonos API is very difficult. The API are undocumented and it’s hard to have a more accurate control over the so many stream types. I cannot do anything for that, sorry!