home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.41k stars 30.3k forks source link

AWS Polly TTS stopped working after updating to 2023.7.3 #97281

Closed tienducle closed 11 months ago

tienducle commented 1 year ago

The problem

After updating to Home Assistant 2023.7.3, the tts.base_url property (which was already deprecated) was removed. Instructions in the warning said Configure internal/external URL instead. However, I was still using the deprecated setting because it doesn't work with the configured internal/external URLs. Now with 2023.7.3, I can't get the TTS to work in any way.

Configuration

(real domain changed to 'mydomain.de')

Home Assistant URLs
# Settings -> System -> Network
Internal: https://home.mydomain.de
Local Network: http://home.mydomain.de

# also tried to set Local Network to Automatic
Home Assistant http configuration
use_x_forwarded_for: true
trusted_proxies:
  - !secret local_subnet
  - 172.30.32.0/24
  - 172.30.33.0/24
ssl_certificate: !secret tls_certificate_path
ssl_key: !secret tls_private_key_path
NginxProxyManager

Runs on a different host Forwards https://home.mydomain.de to https://123.123.123.123:8123 Forwards http://home.mydomain.de to https://123.123.123.123:8123

TTS
- service_name: amazon_polly_ssml
  platform: amazon_polly
  ...
  base_url: http://home.mydomain.de

What version of Home Assistant Core has the issue?

2023.7.3

What was the last working version of Home Assistant Core?

2023.6.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

tts

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tts

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023.6.3 WITHOUT tts.base_url
2023-07-26 20:28:31.728 DEBUG (MainThread) [homeassistant.components.dlna_dmr] Playing media: music, media-source://tts/amazon_polly?message=%3Cspeak%3ETest%3C/speak%3E&language=de-DE&voice=Daniel, {'announce': True, 'extra': {}}
2023-07-26 20:28:31.729 DEBUG (MainThread) [homeassistant.components.dlna_dmr] sourced_media is PlayMedia(url='/api/tts_proxy/91444b10e79f1a5113b342d679f9b5fe5a61e44a_de-de_0407624575_amazon_polly.mp3', mime_type='audio/mpeg')
2023-07-26 20:28:32.445 ERROR (MainThread) [homeassistant.components.dlna_dmr] Error during call async_play_media: UpnpActionResponseError('Error during async_call(), status: 500, upnp error: 716 (resource is not found)')
2023.6.3 WITH tts.base_url (http://home.mydomain.de)
2023-07-26 20:44:18.152 DEBUG (MainThread) [homeassistant.components.dlna_dmr] Playing media: music, media-source://tts/amazon_polly?message=%3Cspeak%3ETest%3C/speak%3E&language=de-DE&voice=Daniel, {'announce': True, 'extra': {}}
2023-07-26 20:44:18.154 DEBUG (MainThread) [homeassistant.components.dlna_dmr] sourced_media is PlayMedia(url='http://home.mydomain.de/api/tts_proxy/91444b10e79f1a5113b342d679f9b5fe5a61e44a_de-de_0407624575_amazon_polly.mp3', mime_type='audio/mpeg')
2023.7.3
2023-07-26 21:09:23.500 DEBUG (MainThread) [homeassistant.components.dlna_dmr] Playing media: music, media-source://tts/amazon_polly?message=%3Cspeak%3ETest%3C/speak%3E&language=de-DE&voice=Daniel, {'announce': True, 'extra': {}}
2023-07-26 21:09:23.502 DEBUG (MainThread) [homeassistant.components.dlna_dmr] sourced_media is PlayMedia(url='/api/tts_proxy/91444b10e79f1a5113b342d679f9b5fe5a61e44a_de-de_0407624575_amazon_polly.mp3', mime_type='audio/mpeg')
2023-07-26 21:09:24.074 ERROR (MainThread) [homeassistant.components.dlna_dmr] Error during call async_play_media: UpnpActionResponseError('Error during async_call(), status: 500, upnp error: 716 (resource is not found)')

Additional information

Certificates issued by Let's Encrypt. Both URLs (https and http) are accessible on any device in my local network.

home-assistant[bot] commented 1 year ago

Hey there @home-assistant/core, @pvizeli, mind taking a look at this issue as it has been labeled with an integration (tts) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tts` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tts` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


tts documentation tts source (message by IssueLinks)

issue-triage-workflows[bot] commented 11 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.