I’m new in Home Assistant and first time posting a topic here…
I am trying to get the TTS to work with my Google Mini. I call the Google Translate service but I just cannot get the mp3 files in the cache folder.
I am running HA in RPi 4
I have read several blog topics about TTS issues and tried several changes in my configuration, moved the cache folder, I have setup already DuckDNS tried with NGINX and Nginx Proxy Manager, which is the on I am currently using.
I have port fowarding in my router for ports 443 > 443 and 80 > 80.
If I remember correctly your tts url has to be the external url because I assume you use https.(edit I see now that you do.)
So when you use the internal ip the certificate does not match and it fails.
Try routing the tts to your duckdns
I have tried that before, but I give it another try, since I have several days trying and at this point I am not quite sure what configuration I have already tried… so I set the tts configuration as follows:
However it did not work, still not getting the mp3 file from tts service.
As I mentioned, I setup a reverse proxy using the Nginx Proxy Manager as per @SteveDinn suggestion, who explained that it would take care of managing SSL certificate for external traffic and it would keep internal network using normal http. Here is the post
I am wondering how could I check the tts service call is actually sending something to google translate service and whether I have any response back. My concern is that I may not be handling either the request or reponse correctly.
2020-10-05 22:08:37 ERROR (MainThread) [homeassistant.components.google_translate.tts] Timeout for google speech
2020-10-05 22:08:37 ERROR (MainThread) [homeassistant.components.tts] Error on init TTS: No TTS from google_translate for 'how are you'
2020-10-05 22:15:00 ERROR (MainThread) [homeassistant.components.google_translate.tts] Timeout for google speech
2020-10-05 22:15:00 ERROR (MainThread) [homeassistant.components.tts] Error on init TTS: No TTS from google_translate for 'Second try'
I see, there are errors while initializing TTS component.
BTW… I accessed the HA from a device I had not accessed before and the TTS worked, but just one time. Then, I try again right after and it stopped working. This is the state of the google mini after TTS worked:
By seeing the log errors and the state of the Google mini, it seems that as long as the TTS component is initialized correctly, the rest of the configuration seems to be ok.
Is there any way I could get further details on the TTS error?
Should I place the tts configuration section on a specific order in the configuration yaml file?