Sonos does not play TTS

I searched the forums to find how to use Sonos locally but the Sonos does not play anything and also gives no errors.
TTS

Speak does give an error

What can I do to use the sonos local?

This may have to stat in “voice topic” if someone can move it that will be nice :slight_smile:

I get good results from my Sonos speakers using media_player.play_media:

  - action: media_player.play_media
    data:
      media_content_id: media-source://tts/amazon_polly?message="Hello"
    target:
      entity_id: media_player.kitchen

You would need to replace amazon_polly with the name of your TTS engine.

1 Like
alias: Sonos speak
sequence:
  - variables:
      message: Привіт!
  - data:
      media_content_type: music
      media_content_id: >-
        media-source://tts/provider,media-source://tts/google_translate?message={{message}}&language=uk
      announce: true
      extra:
        volume: 10
    target:
      device_id: fb6a3700feea608a7e4c5041556c5283
    action: media_player.play_media
mode: single
1 Like

I tried this:

action: media_player.play_media
data:
  media_content_id: media-source://tts/provider,media-source://tts/google_translate?message=TEST&language=uk
  media_content_type: music
target:
  entity_id: media_player.sonos_roam_rick

No error in HA, but shows an error in the Sonos app:
xxxxxx.mp3 can not played. The connection with … can not read the rest of the error.

Why do you have an extra media-source://tts/provider, at the start of your media_content_id? Obviously that shouldn’t be there.

1 Like

Update

action: media_player.play_media
data:
  media_content_id: media-source://tts/google_translate?message=TEST&language=nl
  media_content_type: music
  announce: true
target:
  entity_id: media_player.sonos_roam_rick
  device_id: 9528144656f2a185fdd1bec46fabfe73

But still gives an error in the app, something about the connection, could it be that u use https local?

The problem is indeed the use of a local/self signed https certificate :frowning: