Sending a TTS message to a Sonos speaker - Error calling service - Solved!

Hi folks. I thought I had the TTS service set up correctly but alas, I am getting an error:

"Failed to call service google_say/undefined. required key not provided@datatservicel. Got None "

My Config YAML is configured as follows:

# Text to speech
tts:
  - platform: google_translate
    cache: true
    cache_dir: /tmp/tts
    time_memory: 300
    base_url: http://192.168.1.10:8123
    service_name: google_say

I’m trying to use an Entity Button to trigger a test message:

entity: media_player.kitchen
hold_action:
  action: none
name: Test
show_icon: true
show_name: true
tap_action:
  action: call-service
  service: google_say
entity_id: media_player.kitchen
data:
  message: May the Force be with you.
type: entity-button

When I click the button, I get the following error message:

“Failed to call service google_say/undefined. required key not provided@datatservicel. Got None”

Any pointers to my error would be gratefully received!

Thanks!

@davidro
He you go David

entity: media_player.kitchen
hold_action:
  action: none
name: Test
show_icon: true
show_name: true
tap_action:
  action: call-service
  service: tts.google_translate_say
  service_data:
    message: Luke! I am your Mother.
    entity_id: media_player.kitchen
type: entity-button

1 Like

Much obliged @Harry13 I’ve made some progress in that the error is now different but no less perplexing:

"Failed to call service tts/google_translate_say. Service not found. "

I wonder is this because I name the service in config YAML

“service_name: google_say”

Thanks again for the reply!

Thank you very much @harry13 I just needed to remove the “service_name: google_say” from my config file and all is well now!