A forum topic for suggesting new features for CastleOS
Allow regular expressions for calling scripts
Phil Hawthorne Posts: 400
10/2/2015
|
When using voice to call a custom script, the user should be able to specify a regular expression. This has two benefits - Variations of the way we speak can be build in. For example What's my and What is my may be used by the person speaking.
- Matching groups in the regular expression can be parsed to the script. The script can then take action based on what was said
Examples play ([a-z ]+) on (the )?(Living Room TV)?(Family Room TV)?Me: Computer, play Tomorrow Never Dies on the Living Room TV Me: Computer, play american sniper on Family Room TV
(how long will it take to drive)?(what's the traffic like)?(what's my commute like)? to (work)?(school)?(the supermarket) Me: Computer, what's my commute like to work? Me: Computer, what's the traffic like to work? Me: Computer, how long will it take to drive to work?Me: Computer, what's the traffic like to school? Me: Computer, what's my commute like to the supermarket?
|
|
0
link
|
Chris Cicchitelli Administrator Posts: 3390
10/5/2015
|
We're planning for this, it's a much more complicated endeavor because grammars have to be built and dynamically loaded. But it's doable and a key feature for the future!
|
|
0
link
|