Comments (9)
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.
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.
I think it would be nice to also expose doorbell, chime and TTS as services.
from casatunes.
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.
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.
@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.
I have not tried this I'm afraid.
from casatunes.
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.
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)
- Casatune Questions HOT 7
- Artwork via HTTPS
- Internet radio HOT 3
- HA warnings
- Play via URL HOT 2
- Clear playlist HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from casatunes.