home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.75k stars 30.86k forks source link

google_cloud tts: 'Journey' voice type is unusable #130843

Open raineth opened 2 hours ago

raineth commented 2 hours ago

The problem

While experimenting with some of the newer voice types available via Google Cloud TTS, I noticed that the 'Journey' family of voices is not usable from HomeAssistant.

Neither the 'Studio' nor 'Journey' voices currently support the pitch parameter, but the 'Journey' voices will throw an error if the speaking_rate or pitch fields exist in the API request at all (even with neutral values of 1.0/0.0, respectively):

2024-11-17 16:19:39.598 ERROR (MainThread) [homeassistant.components.google_cloud.tts] Error occurred during Google Cloud TTS call: 400 This voice does not support speaking rate or pitch parameters at this time.

Perhaps the easiest solution would be to avoid specifying the speaking_rate/pitch fields when generating the AudioConfig unless they differ from the default?

What version of Home Assistant Core has the issue?

core-2024.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

google_cloud

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_cloud/

Diagnostics information

No response

Example YAML snippet

action: tts.google_cloud_say
data:
  entity_id: media_player.basement
  options:
    voice: en-GB-Journey-D
  message: Hello, Home Assistant.

Anything in the logs that might be useful for us?

2024-11-17 16:42:48.674 ERROR (MainThread) [homeassistant.components.google_cloud.tts] Error occurred during Google Cloud TTS call: 400 This voice does not support speaking rate or pitch parameters at this time.
2024-11-17 16:42:50.280 ERROR (MainThread) [homeassistant.components.tts] Error on load tts: 5b81223518d25df815ebe4da43b8deec3c82f863_en-us_2678a8ada5_google_cloud not in cache!

Additional information

No response

home-assistant[bot] commented 2 hours ago

Hey there @lufton, @tronikos, mind taking a look at this issue as it has been labeled with an integration (google_cloud) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `google_cloud` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign google_cloud` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


google_cloud documentation google_cloud source (message by IssueLinks)