Deprecated base_url TTS?

I do receive in my log:

Logger: homeassistant.components.tts
Source: components/tts/__init__.py:146
Integration: Text-to-Speech (TTS) (documentation, issues)
First occurred: 20:43:38 (1 occurrences)
Last logged: 20:43:38

TTS base_url option is deprecated. Configure internal/external URL instead

In HA-TTS description is still talking about base_url.

My setup:

tts:
  - platform: google_translate
    language: 'nl'
    cache: true
    cache_dir: /tmp/tts
    time_memory: 300
    base_url: http://my internal ip

How do I need to change that?

EDIT: I did found the answer. In the UI configuration->system-.Network

Hi I ran into the same issue, and was confused because the documentation for TTS still shows base_url

What was the solution? I went to the network UI section and don’t see anything to resolve/clarify how to address… thanks in advance!

Just remove the line base_url
Then go to settings, system, network
There you can add your home assistant url

2 Likes

Thx - I don’t see ability to add external url to that UI screen - I think it may be because I added some other config options manually to yaml which block UI control. I’ll keep digging. Thanks

You can let HA automatic find your local network or define it by hand

2 Likes

Thanks! That did the trick :slight_smile:

Unfortunately, this did not work for me. TTS still does not function on my Homepod Minis after updating to HA 2022.5.X
I had removed “base_url” from my “configuration.yaml” and verified that my external URL was my duckdns URL in the UI under the Network settings. I have it automatically finding my internal URL.

Anyone else know what may be going on? My TTS setup looks like this…

tts:
  - platform: google_translate
    cache: true
    cache_dir: /tmp/tts
    time_memory: 60
    service_name: google_say

Thank you!

Did you try to changing the automatic to your Home Assistant IP and Port ?

You defined service_name: google_say.
Are you calling this in TTS?

Thanks! That saved me a lot of frustration trying to get my Sonos speakers to talk.

I have the correct configuration (as requested), https for external and http for internal, but still my Bose SoundTouch cant play TTS neither Local Media (on the device display it spin as if it is loading but then it doesnt load)
Logs do not shows any error (error was present when i had both external and internal in https), so i guess HA correctly sends the files to the device, but then the device is unable to play them

any suggestion?

I solved this by configuring external and internal url from the UI instead that from the configuration.yaml

In case someone else is having this experience, when using Google Cast devices, I had to set both of the “Internet” and “Local Network” settings under Settings/Network to my externally-visible URL. Without that, the (local) devices would attempt to resolve using the local network URL and would fail. Only when I set the “Local Network” setting to my externally-visible URL did the devices play correctly.

2 Likes