LOGIN  |  REGISTER
Smart Living Made Brilliant!
CASTLEOS FORUM

HomeScripting

A forum for information about scripting with CastleOS. Get samples, suggestions, and other help here

Can new voice commands be added to the system? Messages in this topic - RSS

Patrick Shaffer
Patrick Shaffer
Posts: 2


9/6/2016
Patrick Shaffer
Patrick Shaffer
Posts: 2
Hello,
I am new to CastleOS, actually I just learned of its existence about an hour ago. First of all I want to say that this system seem's amazing and the fact that the inspiration behind the creation of this system was to make life easier for the inventors parents is truly honorable. I am a C# software engineer and very excited to see that this system can be extended with C# scripting!

I was very impressed with the videos about CastleOS where it shows users speaking to the system as if they we're Jean-Luc Picard on the Enterprise!

I would like to know if new voice commands can be added and attached to script commands? For example... I've seen in script examples that you can instruct the system to say phrases and in one of the videos I watched that showed the inventor at his parents house he was standing at the back door and said 'Computer; unlock the back door'.... would it be possible to create a new voice command like 'Computer; greet the guest at the front door' which would instruct the system to say something like 'Hello; welcome to our house, we will be with you in a moment'.

Finally, is it possible to add events that could be triggered from non-verbal actions? For example... Using part of the example I provided in my first question. When someone comes to the front door would it be possible to extend CastleOS to respond to a motion sensor, or ultrasonic sensor which instead of ringing a bell would instruct the system to broadcast a message saying 'You have a guest at the front door', preferably this broadcast would only occur in rooms that the system detects people in.

Thanks,

Patrick Shaffer
0 link
Patrick Shaffer
Patrick Shaffer
Posts: 2


9/6/2016
Patrick Shaffer
Patrick Shaffer
Posts: 2
After spending some time in the forum plus playing with the Api I've answered my own questions.
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390


9/6/2016
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390
Hey Patrick! Welcome to the community!

First, I want to make sure you know about the beta folder, where we're posting near-daily updates (update coming later today): https://drive.google.com/folderview?id=0B4ZX9h5IVCtnREk0TnZ2eldUWTQ&usp=sharing

Regarding the custom voice commands, I'm guessing you found that feature. But for your other questions, check out the new beta. The event engine has been rebuilt and now supports any device property as a trigger or condition, so your example of someone walking to the front door is totally doable with just the GUI configurator.

Second, since you're a C# dev, the 2.0 beta series has added C# plugins in addition to the C# scripting (and WCF API) it already supported. The C# scripts are not compiled, and access an internal API that is limited by comparison to the plugins. The plugins are loaded as compiled DLLs and offer access to the full breadth of internal functions. Virtually everything we can do, a dev with a plugin can do. (It's using the Managed Extensibility Framework, in case you're curious.) We're working on a video series to show how to build a plugin, but if you wanted to get rolling with that I'd be happy to help.

Thanks!!

-Chris
edited by ccicchitelli on 9/6/2016
0 link