Google Nest Mini and Text to speech (TTS) not working

Hello, I have two Google Home Mini (one is the newer one, Nest) and I was trying to get them to say a message with TTS, unfortunately without success.
I have Home Assistant 0.103.6 running on Hassbian, SSL with DuckDNS and port 443 forwarded to 8123 in the router configuration. Moreover I don’t know if it is relevant but I have a PI Hole acting as DNS (and configured in the router as well)
I will write here the relevant piece of configuration.yaml and the log (in debug mode) that I get when I send a message “test” on my google nest mini:

http:
  ssl_certificate: /home/homeassistant/dehydrated/certs/myname.duckdns.org/fullchain.pem
  ssl_key: /home/homeassistant/dehydrated/certs/myname.duckdns.org/privkey.pem
  base_url: myname.duckdns.org:9999

# Text to speech
tts:
  - platform: google_translate
    language: it
    cache: true
    cache_dir: /tmp/tts
    time_memory: 300
    base_url: https://192.168.178.83
    service_name: google_say

and here is the log:

2020-01-12 22:32:47 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1627850352] Received {'type': 'config/entity_registry/get', 'entity_id': 'media_player.mini', 'id': 25}
2020-01-12 22:32:47 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1627850352] Sending {'id': 25, 'type': 'result', 'success': True, 'result': {'config_entry_id': '62218e923378479d83e1d08c50ee8ddc', 'device_id': 'a6e441cf06164903b1a61a528424678a', 'disabled_by': None, 'entity_id': 'media_player.mini', 'name': None, 'platform': 'cast'}}
2020-01-12 22:32:47 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 91.64.213.16 for /api/history/period/2020-01-12T21:32:05.115Z using bearer token
2020-01-12 22:32:47 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/history/period/2020-01-12T21:32:05.115Z to 91.64.213.16 (auth: True)
2020-01-12 22:32:47 DEBUG (SyncWorker_13) [homeassistant.components.recorder.util] converting 0 rows to native objects took 0.015111s
2020-01-12 22:32:47 DEBUG (SyncWorker_13) [homeassistant.components.history] get_significant_states took 0.023418s
2020-01-12 22:32:47 DEBUG (SyncWorker_13) [homeassistant.components.history] getting 1 first datapoints took 0.000018s
2020-01-12 22:32:47 DEBUG (MainThread) [homeassistant.components.history] Extracted 0 states in 0.028901s
2020-01-12 22:32:55 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1627850352] Received {'type': 'call_service', 'domain': 'tts', 'service': 'google_say', 'service_data': {'entity_id': 'media_player.mini', 'message': 'test'}, 'id': 26}
2020-01-12 22:32:55 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=tts, service=google_say, service_data=entity_id=media_player.mini, message=test>
2020-01-12 22:32:56 DEBUG (SyncWorker_2) [homeassistant.components.fritz.device_tracker] Scanning
2020-01-12 22:32:56 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=media_player, service=play_media, service_data=media_content_id=https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3, media_content_type=music, entity_id=['media_player.mini']>
2020-01-12 22:32:56 INFO (SyncWorker_8) [pychromecast.controllers] Not launching app CC1AD845 - already running
2020-01-12 22:32:56 DEBUG (SyncWorker_8) [pychromecast.socket_client] [Google Nest Mini:8009] Sending: Message urn:x-cast:com.google.cast.media from sender-0 to f9135d3e-7c2e-4162-9ab2-2a9eaa6777d2: {'media': {'contentId': 'https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3', 'streamType': 'BUFFERED', 'contentType': 'music', 'metadata': {}}, 'type': 'LOAD', 'currentTime': 0, 'autoplay': True, 'customData': {}, 'requestId': 39, 'sessionId': 'f9135d3e-7c2e-4162-9ab2-2a9eaa6777d2'}
2020-01-12 22:32:56 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1627850352] Sending {'id': 26, 'type': 'result', 'success': True, 'result': {'context': Context(user_id='b18a1f8784304395b524912bfea153c6', parent_id=None, id='10c8e4c3d732472fb2708fd037c52f5c')}}
2020-01-12 22:32:56 DEBUG (Thread-3) [pychromecast.socket_client] [Google Nest Mini:8009] Received: Message urn:x-cast:com.google.cast.media from f9135d3e-7c2e-4162-9ab2-2a9eaa6777d2 to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 3, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'media': {'contentId': 'https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3', 'streamType': 'BUFFERED', 'contentType': 'music', 'metadata': {}}, 'currentItemId': 1, 'extendedStatus': {'playerState': 'LOADING', 'media': {'contentId': 'https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3', 'streamType': 'BUFFERED', 'contentType': 'music', 'metadata': {}}, 'mediaSessionId': 3}, 'repeatMode': 'REPEAT_OFF'}], 'requestId': 0}
2020-01-12 22:32:56 DEBUG (Thread-3) [pychromecast.controllers] Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 3, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'media': {'contentId': 'https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3', 'streamType': 'BUFFERED', 'contentType': 'music', 'metadata': {}}, 'currentItemId': 1, 'extendedStatus': {'playerState': 'LOADING', 'media': {'contentId': 'https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3', 'streamType': 'BUFFERED', 'contentType': 'music', 'metadata': {}}, 'mediaSessionId': 3}, 'repeatMode': 'REPEAT_OFF'}], 'requestId': 0}
2020-01-12 22:32:56 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=media_player.mini, old_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/1e4e888ac66f8dd41e00c5a7ac36a32a9950d271_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:29:57.963498+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>, new_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:32:56.264355+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>>
2020-01-12 22:32:56 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1629632944] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.mini, old_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/1e4e888ac66f8dd41e00c5a7ac36a32a9950d271_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:29:57.963498+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>, new_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:32:56.264355+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>>}
2020-01-12 22:32:56 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1627850352] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.mini, old_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/1e4e888ac66f8dd41e00c5a7ac36a32a9950d271_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:29:57.963498+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>, new_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:32:56.264355+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>>}
2020-01-12 22:32:56 DEBUG (Thread-3) [pychromecast.socket_client] [Google Nest Mini:8009] Received: Message urn:x-cast:com.google.cast.media from f9135d3e-7c2e-4162-9ab2-2a9eaa6777d2 to sender-0: {'requestId': 39, 'type': 'LOAD_FAILED', 'detailedErrorCode': 104, 'itemId': 1}
2020-01-12 22:32:56 DEBUG (Thread-3) [pychromecast.socket_client] [Google Nest Mini:8009] Message unhandled: Message urn:x-cast:com.google.cast.media from f9135d3e-7c2e-4162-9ab2-2a9eaa6777d2 to sender-0: {'requestId': 39, 'type': 'LOAD_FAILED', 'detailedErrorCode': 104, 'itemId': 1}
2020-01-12 22:32:56 DEBUG (Thread-3) [pychromecast.socket_client] [Google Nest Mini:8009] Received: Message urn:x-cast:com.google.cast.media from f9135d3e-7c2e-4162-9ab2-2a9eaa6777d2 to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 3, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'currentItemId': 1, 'idleReason': 'ERROR'}], 'requestId': 0}
2020-01-12 22:32:56 DEBUG (Thread-3) [pychromecast.controllers] Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 3, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'currentItemId': 1, 'idleReason': 'ERROR'}], 'requestId': 0}
2020-01-12 22:32:56 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=media_player.mini, old_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:32:56.264355+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>, new_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:32:56.366117+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>>
2020-01-12 22:32:56 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1629632944] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.mini, old_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:32:56.264355+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>, new_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:32:56.366117+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>>}
2020-01-12 22:32:56 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1627850352] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.mini, old_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:32:56.264355+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>, new_state=<state media_player.mini=idle; volume_level=0.49000000953674316, is_volume_muted=False, media_content_id=https://192.168.178.83/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_it_-_google_translate.mp3, media_position=0, media_position_updated_at=2020-01-12T21:32:56.366117+00:00, app_id=CC1AD845, app_name=Default Media Receiver, friendly_name=Google Nest Mini, supported_features=21391 @ 2020-01-12T21:29:52.238687+00:00>>}

What am I doing wrong? I tried the configuration without base_url on the tts, with base_url and explicit port 8123… what else could I try?

I really hope that somebody will be able to help me! Thanks in advance!
Dario

Same problem here, TTS not working anymore.

I solved by blacklisting the google DNS on my router. In this way the google home is forced to use the first next available DNS, which turns out to be my pi-hole

I am facing the same issue. Can you explain how to block the DNS?

In my router (Fritz Box) I can blacklist specific IPs and I Blacklisted 8.8.8.8 and 8.8.4.4

It work for me! Thanks!