Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95370

Google TTS on Google Speaker does not work: Hear chime and see .mp3 in media_content_id but does not play

$
0
0

@Kalenden wrote:

Hi,

I am trying to get a message to play on a Google Home Mini Speaker through a script.
If I manually trigger the script in the lovelace interface, I hear a bell/chime sound on my Google Mini Speaker but it does not play the .mp3 file. If I look at the state of the speaker in Developer Tools, it shows the .mp3 file url. I can play this mp3 file using my browser on my laptop (internal network) and smartphone (through 4G external network).
I use duckdns and am behind a VPN but have configured it so that the port 8123 is forwarded through, hence all other google assistant/home commands work.
Anyway, I have no clue why it works. Could you help?

I have the following configuration in configuration.yml

http:
  #api_password: !secret http_password   # from file secrets.yaml
  base_url: https://<DUCKDNS_NAME>.duckdns.org:8123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

# Text to speech
tts:
  - platform: google_translate
    service_name: google_say
    cache: true
    cache_dir: /tmp/tts
    time_memory: 300
    base_url: https://<DUCKDNS_NAME>.duckdns.org:8123

And the following script:

playlist_announce:
  sequence:
    - service: tts.google_say
      data_template:
        entity_id: media_player.office_speaker
        message: "this is message6"

After executing the script, the state of my media_player.office_speaker is as follows:

volume_level: 0.5
is_volume_muted: false
media_content_id: >-
  https://<DUCKDNS_NAME>.duckdns.org:8123/api/tts_proxy/a19166c06d9c49f401b6b3799c84fcd130fe45bc_en_-_google_translate.mp3
media_position: 0
media_position_updated_at: '2020-04-09T09:43:58.559710+00:00'
app_id: CC1AD845
app_name: Default Media Receiver
entity_picture_local: null
friendly_name: Office Speaker
supported_features: 21391

The above media_content_id can be played on both laptop and smartphone.

So I am flabbergasted what the issue might be. Any help?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95370

Trending Articles