Open thexperiments opened 10 years ago
Nice.
Working on macbook right now but not ob pi, will figure it out tomorrow
Am 19.07.2014 um 17:14 schrieb sweetpi notifications@github.com:
Nice.
— Reply to this email directly or view it on GitHub.
Some ideas:
play alarm sound
speak "welcome home"
.also thought about exactly the same stuff but tts is a standalone plugin but I definitely want to have that too.
The plugin should now work on the pi, can anybody verify?
I will test later.
I think a separate plugin for tts would be fine. However the question is how to handle overlapping sound output. It would be nice to have some mechanism to resolve this. For example if you have a song playing and some tts is triggered it should fade out or decrease the volume level of the song and after the tts completed it should restore the volume level of the song. Short sounds like the alarm could be scheduled in row so that these don't overlap.
So in the end we need some framework functions to coordinate the sound output.
I would say it is great to have at least some way to output sound :smile: now my doorbell will work again :smiley:
But in general I agree, but for now I'll not touch the framework stuff... got confused by promises and coffeescript again when creating the new plugins....
By the way, just created TTS plugin: https://github.com/thexperiments/pimatic-espeak
Works great, fixed some small issues in https://github.com/thexperiments/pimatic-play/pull/1.
thanks... these promises and the coffeescript really are not something one can easily get when only working on this topics every now and then
2014-07-20 22:20 GMT+02:00 sweetpi notifications@github.com:
Works great, fixed some small issues in thexperiments/pimatic-play#1 https://github.com/thexperiments/pimatic-play/pull/1.
— Reply to this email directly or view it on GitHub https://github.com/pimatic/pimatic/issues/204#issuecomment-49558298.
Yes using promises is a little bit tricky at the beginning, but if you get it, they simplify async control flow and error handling massively.
I'm really not sure if the decision for CoffeeScript was the right one. In my opinion its easier to read and faster to write then plain JavaScript (because of the less syntactic noise) but it makes it very difficult for people with no JS knowledge or people that are used C/Java-style syntax to get started with.
@thexperiments Do you release it to the npm registry?
either this or we put it to pimatic repository for maintanance
2014-08-28 18:46 GMT+02:00 sweet pi - sweet home notifications@github.com:
@thexperiments https://github.com/thexperiments Do you release it to the npm registry?
— Reply to this email directly or view it on GitHub https://github.com/pimatic/pimatic/issues/204#issuecomment-53753559.
Sure if you like I can move it to pimatc/pimatic-play an can manage the npm repository versions.
https://github.com/thexperiments/pimatic-play