Giter Club home page Giter Club logo

Comments (5)

nimroddolev avatar nimroddolev commented on September 1, 2024

Hi @KrisHoobergs,

Sorry you've been having issues. As I understand the built it join/unjoin feature in Home Assistant (the same one being used by Chime TTS) does not always play nicely with Sonos. Other Sonos users have reported that a workaround is to use the Sonos integration's snapshot/restore feature, in conjunction with Chime TTS:

 - service: sonos.snapshot
    data:
      with_group: true
      entity_id: all

  - service: chime_tts.say
    data:
      chime_path: custom_components/chime_tts/mp3s/bells.mp3
      message: This is a test
      tts_platform: google_cloud
      join_players: true
    enabled: true
    target:
      entity_id:
        - media_player.lounge_sonos
        - media_player.porch_sonos
        - media_player.diningroom_sonos
        - media_player.halfbath_sonos
        - media_player.kitchen_sonos
        - media_player.office_sonos
        - media_player.garage_sonos

  - service: sonos.restore
    data:
      with_group: true
      entity_id: all

from chime_tts.

KrisHoobergs avatar KrisHoobergs commented on September 1, 2024

Hi @nimroddolev ,
Sorry to hear that, this was just one of the main reasons I was using this. Do you know if the syntax above is correct because I can't get it to work?

from chime_tts.

nimroddolev avatar nimroddolev commented on September 1, 2024

Hey @KrisHoobergs, I can't verify that the above YAML works as I don't have any Sonos speakers. It was posted by another user in the Home Assistant forum. Perhaps you could follow up in the forum and hopefully another user might be able to help you further.

from chime_tts.

KrisHoobergs avatar KrisHoobergs commented on September 1, 2024

Hi @nimroddolev ,
I just got the code for the Sonos speaker working, thanks. I'll close this one.

from chime_tts.

nimroddolev avatar nimroddolev commented on September 1, 2024

That’s great πŸ‘
Would you mind posting it here for future reference? Perhaps I can incorporate it or add documentation to help others the issue.

from chime_tts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.