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

Bug - Unable to use Google tts service #68

Open
1 task done
jokerigno opened this issue Mar 6, 2024 · 5 comments
Open
1 task done

Bug - Unable to use Google tts service #68

jokerigno opened this issue Mar 6, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@jokerigno
Copy link

Home Assistant Core Version

2023.02.0

Home Assistant Installation Type

Home Assistant Operating System

Description

I'm unable to use google tts service (reverso works as expected).

I found the following message in appdaemon log:

2024-03-06 12:39:58.735921 ERROR GH_Manager: An error occurred in GH Manager - Errore nel Worker: Unknown service (default/tts/google_translate_say) in call_service from GH_Manager
2024-03-06 12:39:58.744600 INFO GH_Manager: (<class 'appdaemon.exceptions.ServiceException'>, ServiceException('Unknown service (default/tts/google_translate_say) in call_service from GH_Manager'), <traceback object at 0x7f71c6eb8100>)

Please notice that I renamed the tts service to google_translate_say (originally was google_it_it).

Automation YAML config

this is my gh_manager.yaml (updated in january 24)
___________

GH_Manager:
  module: gh_manager
  class: GH_Manager
  
  #log_level: DEBUG

  gh_service: tts.google
  ytube_player: media_player.ytube_music_player
  
  # Main hub
  gh_wait_time: input_number.notifier_tts_wait_time
  gh_select_media_player: select.notifier_player_google
  gh_sensor_media_player: sensor.notifier_player_google
  tts_period_of_day_volume: sensor.notifier_day_period_volume
  tts_language: input_select.notifier_language
  
  # Debug Sensor
  debug_sensor: sensor.notifier_debug_error
_________

To Reproduce

set notifier to send tts message using script_mynotify and click on sent: message is received on telegram for example but not streamed via google minis

Expected behavior

able to hear the tts message

Actual Behaviour

when using google (no issue with reverso) the message is not streamed and I see an error info on appdaemon log

Additional Details

  • I'd like to help developing a fix for this issue.

Screenshots

No response

Additional context

No response

@jokerigno jokerigno added the bug Something isn't working label Mar 6, 2024
@riddik14
Copy link

riddik14 commented Mar 6, 2024

gh_service: tts.google
va aggiornato a
gh_service: google_translate.tts

Se risolvi chiudi il problema

@jokerigno
Copy link
Author

Ciao,

credo che mi sfugga qualcosa. Nell'ultima versione dello zio (questa : https://github.com/jumping2000/notifier/releases/tag/2024.1.0) vedo ancora:

gh_service: tts.google

se invece lo guardo da qui: https://github.com/jumping2000/notifier/blob/master/apps/notifier/gh_manager.yaml

manca proprio la voce gh_service.

@jokerigno
Copy link
Author

Guardando la documentazione vedo che il tts di google chiama il servizio tts.speak e poi target google.translate_say (il service: tts.google_translate_say è "legacy")


service: tts.speak
target:
  entity_id: tts.google_translate_say
data:
  cache: true
  media_player_entity_id: media_player.cucina
  message: prova

che forse vada cambiato questo DEFAULT_TTS_GOOGLE = "google_translate_say" nel notifier_dispatch? Chiedo perchè qui quell o reverso è invariato (e infatti funziona)

@jokerigno
Copy link
Author

ciao.

Ieri sera ho avuto un po' di tempo e ho ricominicato daccapo (eliminato notifier+hacs+blueprint) e riscaricato tutto ex novo.

Ho ancora la stessa criticità e noto ancora la stessa differenza tra il contenuto del file visibile da github

https://github.com/jumping2000/notifier/blob/master/apps/notifier/gh_manager.yaml

GH_Manager:
  module: gh_manager
  class: GH_Manager
  
  #log_level: DEBUG
  ytube_player: media_player.ytube_music_player
  # Main hub
  gh_wait_time: input_number.notifier_tts_wait_time
  gh_select_media_player: select.notifier_player_google
  gh_sensor_media_player: sensor.notifier_player_google
  tts_period_of_day_volume: sensor.notifier_day_period_volume
  tts_language: input_select.notifier_language
  
  # Debug Sensor
  debug_sensor: sensor.notifier_debug_error

e quello che scarica lo zip

GH_Manager:
  module: gh_manager
  class: GH_Manager
  
  #log_level: DEBUG

  gh_service: tts.google
  ytube_player: media_player.ytube_music_player
  
  # Main hub
  gh_wait_time: input_number.notifier_tts_wait_time
  gh_select_media_player: select.notifier_player_google
  gh_sensor_media_player: sensor.notifier_player_google
  tts_period_of_day_volume: sensor.notifier_day_period_volume
  tts_language: input_select.notifier_language
  
  # Debug Sensor
  debug_sensor: sensor.notifier_debug_error

@caiosweet
Copy link
Contributor

Ciao, il progetto è rimasto in stato di "In progress!" :0)...
Qualcosa di diverso è nella mia versione qui https://github.com/caiosweet/notifier
Prova a verificare i cambiamenti che ci sono... per il resto, non so se il progetto continua ad essere aggiornato :0(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants