jumping2000 / notifier

Appdaemon Notifier Centre for Home Assistant - hassiohelp.eu crew
https://hassiohelp.eu
GNU General Public License v3.0
32 stars 5 forks source link

Bug - Unable to use Google tts service #68

Open jokerigno opened 8 months ago

jokerigno commented 8 months ago

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

Screenshots

No response

Additional context

No response

riddik14 commented 8 months ago

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

Se risolvi chiudi il problema

jokerigno commented 8 months ago

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 commented 7 months ago

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 commented 5 months ago

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 commented 5 months ago

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(

jokerigno commented 4 months ago

, non so se il progetto continua ad essere aggiornato :0(

oddio che brutta notizia che mi dai...ma posso chiedere perchè? Mancanza di tempo oppure avete in pentola qualcosa di nuovo?