jeremyandrews / kakaia

Kakaia personal assistant
MIT License
13 stars 0 forks source link

implement "set timer" command #7

Open jeremyandrews opened 4 years ago

jeremyandrews commented 4 years ago

In order for Kakaia to have a purpose, it needs to recognize spoken commands. Doing some research, the most complete solution in Rust seems to be Snips NLU. Integrate and add support for a set timer command.

jeremyandrews commented 4 years ago

Initial attempt at defining a reasonably flexible command:

# setTimer intent
---
type: intent
name: setTimer
slots: 
 - name: duration
   entity: snips/duration
utterances: 
 - Set the timer [duration](for five minutes)
 - Please set a [duration](three hour) timer
 - Sta`rt a timer of [duration](half an hour)
 - Can you start a timer [duration](for eight minutes)
 - Initiate a timer [duration](for thirteen minutes)
jeremyandrews commented 4 years ago

Initial implementation here: https://github.com/jeremyandrews/kakaia/commit/e3d6c4217c778ccb134542ac2d05f69b2dd30dd2#diff-7130da9d13458929b67353fc1925edd5