TTS Status 500 error

I’m trying to run a TTS service I have Libratone Zipp 2 conneted via:

media_player:
  - platform: dlna_dmr
    url: http://localhost:49152
    name: LibratoneZippII

My config.json looks like:

tts:
  - platform: google_translate
    cache: true
    time_memory: 300
    base_url: https://externaladdress:8123
    service_name: google_translate_say

http:
  ssl_certificate: config/cert.pem
  ssl_key: config/privkey.pem

When I try to run Text to speech I receive error below. Do you know a reason?

139885586274864] Error during async_call(), status: 500, body: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <s:Fault> <faultcode>s:Client</faultcode> <faultstring>UPnPError</faultstring> <detail> <UPnPError xmlns="urn:schemas-upnp-org:control-1-0"> <errorCode>716</errorCode> <errorDescription>resource is not found</errorDescription> </UPnPError> </detail> </s:Fault> </s:Body> </s:Envelope>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 181, in async_say_handle
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 593, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 630, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/dlna_dmr/media_player.py", line 105, in wrapper
    return await func(self, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/dlna_dmr/media_player.py", line 353, in async_play_media
    await self._device.async_set_transport_uri(
  File "/usr/local/lib/python3.8/site-packages/async_upnp_client/profiles/dlna.py", line 636, in async_set_transport_uri
    await action.async_call(InstanceID=0,
  File "/usr/local/lib/python3.8/site-packages/async_upnp_client/client.py", line 519, in async_call
    raise UpnpError('Error during async_call(), status: %s, body: %s' %
async_upnp_client.client.UpnpError: Error during async_call(), status: 500, body: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode>716</errorCode>
<errorDescription>resource is not found</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

Just to test something:
Make sure you have a media player card and click on the three dots in the upper right corner:
tts
Which will give you this:
tts2
Type in the “Text to speak” box and hit send and you should get a voice; if that does not work you need to resolve that issue first then the automation.

I make it that way and I receive above error.

ok, then either the TTS is not setup right and/or the media player.
Let’s try the basic TTS (nothing else added, ‘#’ comment out everything else):

tts:
  - platform: google_translate

then test.
Also, can you do anything on the media player to test it?

The same error on TTS.

I am able to play/pause music and change volume on media player.

What do you have in your config yaml for TTS?

Before:

tts:
  - platform: google_translate
    cache: true
    time_memory: 300
    base_url: https://localhost:8123 ( I aslo tried with external address)
    service_name: google_translate_say

After you recommend to test:

tts:
  - platform: google_translate

Change the base_url: to your local IP.

ie:

tts:
  - platform: google_translate
    cache: true
    time_memory: 300
    base_url: http://192.168.1.5:8123
    service_name: google_translate_say

I wrote on the beginning that I use localhost ip. I tried with 192.xxx.xxx.xxx and external ip.

Localhost is not the same as it still needs to be resolved to the actual IP address. Did you use the IP address with the port etc like my example?

I just noticed my mistake in the example. It should be http, not https. I’ve edited it now

Yes, when I wrote localhost I mean local address.
I put my Home Assistant local address.

Any ideas?

So have you tried exactly as per my example but with the local IP address of your HA server?