@Anwen wrote:
I upgraded from 0.104.3 to 0.105.5 yesterday, and today discovered that my MaryTTS announcements to my Sonos speaker are not working. I know that there were changes to MaryTTS in this release, but reading the docs, my config is fine. I’m running HA Supervised (formerly Hass.io) on an older NUC running Ubuntu 18.04, and have this MaryTTS image running in Docker: https://hub.docker.com/r/sliversniper/marytts (installed via the Portainer add-on). This is my MaryTTS config entry:
tts: platform: marytts host: 172.17.0.2
I use the following script in some automations, and it all worked fine up until yesterday.
sonos_say: alias: "Sonos TTS script with restore" sequence: - service: sonos.snapshot data_template: entity_id: "{{ sonos_entity|default('media_player.kitchen_sonos') }}" - service: media_player.volume_set data_template: entity_id: "{{ sonos_entity|default('media_player.kitchen_sonos') }}" volume_level: "{{ volume|default(0.4) }}" # orig 0.5 - service: tts.marytts_say data_template: entity_id: "{{ sonos_entity|default('media_player.kitchen_sonos') }}" message: "{{ message }}" - wait_template: "{{ is_state(sonos_entity|default('media_player.kitchen_sonos'), 'playing') }}" timeout: '00:00:30' - wait_template: "{{ not is_state(sonos_entity|default('media_player.kitchen_sonos'), 'playing') }}" timeout: '00:01:00' - service: sonos.restore data_template: entity_id: "{{ sonos_entity|default('media_player.kitchen_sonos') }}"
Today, I can click on my media player in the front end, type in a message, and hear the TTS on my Sonos. But if I go to services and try to use tts.marytts_say, or run the script above (which is using the same service), I get the following error:
2020-02-23 13:22:38 ERROR (SyncWorker_7) [homeassistant.components.sonos.media_player] Error on play_media with UPnP Error 714 received: Illegal MIME-Type from 192.168.0.125
That IP is my Sonos speaker. I think the issue may be that the new TTS files end with
.wave_file
, whereas they used to end with.wav
, and the media player isn’t handling this, but I’m not sure.I’d really appreciate any help to get my TTS announcements on my Sonos working again. Thanks in advance!
Posts: 1
Participants: 1