Google TTS - I can't figure it out

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: xxxxxxx
  longitude: -xxxxxxx
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 0
  # metric for Metric, imperial for Imperial
  unit_system: imperial
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: America/New_York
  customize: !include customize.yaml

# Enables configuration UI
config:

xiaomi_aqara:
  discovery_retry: 5
  gateways:
    - key: 00000000000

# Cloud
cloud:
# Enables the frontend
frontend:
#  javascript_version: latest
#  extra_html_url:
#    - /local/lovelace.html
#wink:
http:
  base_url: xx.xxx.xx.xx



  # Secrets are defined in the file secrets.yaml
  # api_password: !secret http_password
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Discover some devices automatically
discovery:
  ignore:
    - deconz
    - philips_hue





nest:
  client_id: !secret nest_client_id
  client_secret: !secret nest_client_secret



ios:
notify:
  - platform: command_line
    name: 'LivingRoom'
    command: "/config/alexa_wrapper.sh -d 'LivingRoom'"
  - platform: command_line
    name: 'Bedroom'
    command: "/config/alexa_wrapper.sh -d 'Bedroom'"

proximity:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

remote:
  - platform: harmony
    name: Living Room
    host: 192.168.1.120 #Add the IP address of your harmony remote
    # go to the secrets.yaml file and add your passwords there
    username: !secret harmony_username
    password: !secret harmony_password

# Track the sun
sun:

# Text to speech
tts:
  - platform: google
    


# Checks for available updates
updater:
  # Optional, allows Home Assistant developers to focus on popular components.

# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/


############################################################
#             THESE SECTIONS ARE IN OTHER FILES            #
#    e.g. If you add a sensor, just put the platform in    #
#    the sensors.yaml file and not in this configuration   #
############################################################
media_player: !include media_players.yaml
sensor: !include sensors.yaml
input_boolean: !include input_booleans.yaml
input_select: !include input_selects.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
input_number: !include input_number.yaml
camera: !include cameras.yaml
binary_sensor: !include binary_sensor.yaml
zone: !include zones.yaml
shell_command: !include shell_command.yaml
############################################################

I do use mopidy, it works fine when using mp3 files stored locally in my WWW folder.

i assume ill have to figure out how to get the TTS sent to my speaker.

any advice?

- service: tts.google_say
  entity_id: media_player.living_room_home
  data_template:
    message: > 
      The Washing is finished.

I got errors placing that code the way its formatted. So i did space it a bit differently and got a good config check.
however still no sound.

i did try to use a media player that i do have set up. theres no media_player.living_room_home in my configuration. so I did try media_player.fire_speaker. but still nothing.

heres my media_player.yaml

  - platform: mpd
    name: 'Fire Speaker'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600
  - platform: mpd
    name: 'woof'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600
  - platform: mpd
    name: 'morning'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600
  - platform: mpd
    name: 'mood'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600
  - platform: mpd
    name: 'control'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600
  - platform: mpd
    name: 'welcomehome'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

  - platform: mpd
    name: 'regulate'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

  - platform: mpd
    name: 'hello'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

  - platform: mpd
    name: 'welcomewendy'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

  - platform: mpd
    name: 'Jasmine'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

  - platform: mpd
    name: 'welcomedarlene'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

  - platform: mpd
    name: 'welcomecorey'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

  - platform: mpd
    name: 'lemon'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

  - platform: mpd
    name: 'doessheknow'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

  - platform: mpd
    name: 'welcomemorgan'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

  - platform: mpd
    name: 'welcomecourtney'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

  - platform: mpd
    name: 'welcomecameron'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600

is there anything else I could provide that would help?

I have no idea what youre trying to do, as the mpd is not a google tts device.
Do you have a google device to send the tts to?

no,
I have a speaker hooked to my rpi via a AUX cable.

I use Mopidy (MPD) to play local audio.

if i open my media player theres a box if i type words, Google TSS is called and the words play through my speaker.

So if you type the word in mpd media player. It does speak out right?

Also from your mpd media player. You can have only one mpd media player as everything actually come from 1 device only.

and ofcourse, trying that now. and the media_player is no longer playing tts inputed works. Google TSS is called but now nothing plays.

this script does work.

welcomecorey:
  sequence:
  - service: media_player.play_media
    data:
     entity_id: media_player.welcomecorey
     media_content_id: http://192.168.86.85:8123/local/welcomecorey.mp3
     media_content_type: "music"

Im giving up for the night… :frowning:

it used too, but for some reason it isnt now

but my normal mp3’s still work as expected. And if i load move of the files from my TSS folder into my WWW folder it plays that too.

I’m not familiar with hassio and mpd. My suggestion is put only 1 mpd media player

  - platform: mpd
    name: 'Fire Speaker'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.86.85
    port: 6600  <== do we need to specific port? can left out this or not?

then tts google read from base_url under http section.

http:
  base_url: xx.xxx.xx.xx:port  <== need to specific port

also add under homeassistant:

homeassistant:
  whitelist_external_dirs: 
    - directory/of/the/folder
    - /homeassistant/share <== example where your homeassistant is and the folder name
    - /homeassistant/local <== example where your homeassistant is and the folder name

After that check your config before restart homeassistant.
After restart homeassistant check if your google tts work by type the word in your media player.