Giter VIP home page Giter VIP logo

Comments (9)

alphasixtyfive avatar alphasixtyfive commented on June 18, 2024 1

Interesting! One thing to remember is that not all content can be added to the queue and you should check AllowAddToQueue = (1 << 12) flag.

from casatunes.

jonkristian avatar jonkristian commented on June 18, 2024 1

Now that Home Assistant 2023.8 has come out with wildcard support for sentence triggers I was inspired to start working on this issue and eventually get this working with assist too.

Working code in master, but needs testing.

from casatunes.

alphasixtyfive avatar alphasixtyfive commented on June 18, 2024 1

I think it would be nice to also expose doorbell, chime and TTS as services.

from casatunes.

jonkristian avatar jonkristian commented on June 18, 2024 1

Ok. New code in master. Improvements to the search and services for tts and doorbell. I could not get SSML to work, but other than that it seems to work pretty well. I think the SSML might be either an upstream bug or I am doing it waay wrong 🗡️

from casatunes.

alphasixtyfive avatar alphasixtyfive commented on June 18, 2024 1

I fully agree with the logic. I was also thinking of perhaps having preWait and postWait as default options configurable for the component?

from casatunes.

jonkristian avatar jonkristian commented on June 18, 2024

@alphasixtyfive I'm currently looking into TTS service.

Have you ever tried the SSML part of TTS? For me, it seems to error out. If you got it working it would be helpful to see how your request is built.

{
  "ResponseStatus": {
    "ErrorCode": "system/tts/input/Here are <say-as interpret-as=\"characters\">SSML</say-as> samples./zones/0 was not found",
    "Message": "system/tts/input/Here are <say-as interpret-as=\"characters\">SSML</say-as> samples./zones/0 was not found",
    "StackTrace": "[Fallback: 8/9/2023 7:17:26 PM]:\n[REQUEST: {Path:\"system/tts/input/Here are <say-as interpret-as=\"\"characters\"\">SSML</say-as> samples./zones/0\"}]\nServiceStack.Common.Web.HttpError: system/tts/input/Here are <say-as interpret-as=\"characters\">SSML</say-as> samples./zones/0 was not found\r\n   at CasaTunes.REST.ServiceInterface.CasaService.Any(Fallback request)\r\n   at lambda_method(Closure , Object , Object )\r\n   at ServiceStack.ServiceHost.ServiceRunner`1.Execute(IRequestContext requestContext, Object instance, TRequest request)",
    "Errors": []
  }
}

Just tested with a couple of examples from google ssml docs.

from casatunes.

alphasixtyfive avatar alphasixtyfive commented on June 18, 2024

I have not tried this I'm afraid.

from casatunes.

alphasixtyfive avatar alphasixtyfive commented on June 18, 2024

I think you might want to rename doorbell to chime as what the code does not is call chime endpoint. Doorbell simply plays defined chime in seleted zones but this is a slightly different thing.

from casatunes.

jonkristian avatar jonkristian commented on June 18, 2024

As I understand it, both endpoints starts with /system/doorbell, but one is for the whole house and one is for specific zone(s). I was actually thinking about the following: When zone(s) are chosen we can use /system/doorbell/zones/zone_id/chimes/chime but if no specific zone; we call /system/doorbell. But what do you think, would a separate service for doorbell be better? For me, it doesnt really matter, but it would keep the number of services low, just that the logic is inside a service, if possible of course.

from casatunes.

Related Issues (7)

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.