Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTS on Chromecast devices not working since version 2.2.2 #2966

Closed
1 task done
Dillton opened this issue Sep 25, 2024 · 13 comments
Closed
1 task done

TTS on Chromecast devices not working since version 2.2.2 #2966

Dillton opened this issue Sep 25, 2024 · 13 comments

Comments

@Dillton
Copy link

Dillton commented Sep 25, 2024

What version of Music Assistant has the issue?

2.2.3 and newer

What version of the Home Assistant Integration have you got installed?

2024.9.1

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

The problem

After updating from version 2.2.2 the TTS isn't working on my Nest mini speakers.
Doesn't matter if it's a single speaker or group.
This is what I see in log.
image

How to reproduce

Just run version 2.2.3 or above and send simple tts.cloud_say to any speaker.

Music Providers

Spotify, YTB and TuneIn

Player Providers

Chromecast and Slimproto

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2024.9.3

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

@Dillton Dillton added the triage label Sep 25, 2024
@Dillton
Copy link
Author

Dillton commented Sep 26, 2024

Same bahaviour on 2.2.6

@OzGav
Copy link
Contributor

OzGav commented Sep 27, 2024

I don't think the title is accurate. I can use tts.google_say and that works fine however with tts.cloud_say then I get

Failed to perform the action tts.cloud_say. InvalidDataError: Unable to retrieve info for http://192.168.1.165:8123/api/tts_proxy/a54d88e06612d820bc3be72877c74f257b561b19_en-au_6e8b81ac47_cloud.mp3: Server returned 404 Not Found

However, I don't know if this is a MA problem because if I do a tts.cloud_say and target the HA entity then I get the Google chime but then nothing.

So for those that are reporting this can you use a different TTS action and report back.

@Dillton
Copy link
Author

Dillton commented Sep 27, 2024

Hmmm interesting. I will try during the weekend tts.goole_say and report back.
However if this would be HA problem then I would expect it will not work also on older version but thats only my laic view at the problem.

@Dillton Dillton changed the title TTS on Chromecast devices not working TTS on Chromecast devices not working (maybe only with tts.cloud_say) Sep 27, 2024
@Dillton
Copy link
Author

Dillton commented Oct 1, 2024

Ok so with tts.google_translate_say it works and it also works with tts.speak like this which is basically the same as using tts.cloud_say but I guess here is differenet backend logic thats why MA is not able to work with that:

action: tts.speak
target:
  entity_id: tts.home_assistant_cloud
data:
  cache: true
  media_player_entity_id: media_player.home_speakers_mass
  message: Some message.
  options:
    voice: CoraNeural
  language: en-US

To summarize this I still think this is MA problem with tts.cloud_say but I am not sure if we should keep this issue opened.
Currently my problem is solved.

@Dillton
Copy link
Author

Dillton commented Oct 2, 2024

UPDATE: Not working again even with tts.speak or tts.google_say. Found out it's working only when speaker is not turned off. So when tts is sent to turned off Chromecast device the error above occurs. As already mentioned this worked last in MA 2.2.2

@OzGav Can you try to replicate the issue on your end?

@Dillton
Copy link
Author

Dillton commented Oct 3, 2024

Still present in MA version 2.2.7.

@OzGav
Copy link
Contributor

OzGav commented Oct 4, 2024

UPDATE: Not working again even with tts.speak or tts.google_say. Found out it's working only when speaker is not turned off. So when tts is sent to turned off Chromecast device the error above occurs. As already mentioned this worked last in MA 2.2.2

@OzGav Can you try to replicate the issue on your end?

I have my Google Home. It was showing as OFF in MA and I successfully sent this:

action: tts.google_say
data:
  entity_id: media_player.ma_kitchen_speaker
  message: testing

This was using beta 29

@Dillton
Copy link
Author

Dillton commented Oct 4, 2024

I have now tried to leave some songs in queue on one speaker then I turned it off and tried the tts. As a miracle it was working.
Then I tried to clear the queue, turn off speaker and send tts. Problem appeared immediatelly.

So the problem is probably not caused only when speaker is off but more likely when queue is empty or combination of both empty queue and turned off speaker.

Could you try this scenario please?

@Dillton Dillton changed the title TTS on Chromecast devices not working (maybe only with tts.cloud_say) TTS on Chromecast devices not working since version 2.2.2 Oct 4, 2024
@OzGav
Copy link
Contributor

OzGav commented Oct 5, 2024

Just tried with a Google Chromecast Ultra. Nothing in the queue and turned off and it worked fine…..

edit: I’ll try with a google mini tomrorow

@Dillton
Copy link
Author

Dillton commented Oct 5, 2024

Could this be device specific? I am using only Nest minis at the moment.

@OzGav
Copy link
Contributor

OzGav commented Oct 5, 2024

Sorry just tried with a Google mini and it worked fine. Are you able to try with the beta to remove that variable?

@Dillton
Copy link
Author

Dillton commented Oct 6, 2024

Just tried with latest beta and it's working there. So I guess lets wait untill MA 3.x.x is released?

@OzGav
Copy link
Contributor

OzGav commented Oct 12, 2024

As this is working in beta I will close. Let us know if there are still problems when the next stable ships.

@OzGav OzGav closed this as completed Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants