B5r1oJ0A9G / teufel_raumfeld

Integration for Teufel smart speaker (aka Raumfeld Multiroom) into https://www.home-assistant.io/.
GNU General Public License v3.0
30 stars 6 forks source link

Fix TTS #34

Closed Alex9779 closed 1 year ago

Alex9779 commented 2 years ago

I was playing with this integration and TTS and found there were errors using it because the URI for the cached TTS file was not resolved properly. This is a quick hack to fix it mostly taken from here. No idea if this fits any coding guidelines, that's why I just created it as a draft.

After fixing I played with an automation creating a snapshot then play the TTS, wait a moment and then restore. It seems the speaker has a problem returning the sound of the previous item, the player shows it is playing but it is quiet for a while until sound returns, no idea what the cause of that is or if it is fixable.

B5r1oJ0A9G commented 1 year ago

Thank you very much for your contribution! It was a great help for me.

In regards to the snapshot'n'restore problem, consider to open a separate issue for it. I have to admit, that this feature was not deeply tested nor used on my side and is known to not work in any scenario.

Since there were meanwhile conflicts for merging I copy'n'pasted the necessary lines from your pull request. Therefore I close the pull request