Skip to content

Commit

Permalink
Use "raspberry" instead of "pi" as power keyword
Browse files Browse the repository at this point in the history
The speech recognition wasn't very good at recognizing "pi" but
"raspberry" seems to work better.

Fixes google#69.
  • Loading branch information
drigz committed May 31, 2017
1 parent b66ae43 commit 906d64d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/action.py
Expand Up @@ -284,8 +284,8 @@ def make_actor(say):
# Makers! Add your own voice commands here.
# =========================================

actor.add_keyword(_('pi power off'), PowerCommand(say, 'shutdown'))
actor.add_keyword(_('pi reboot'), PowerCommand(say, 'reboot'))
actor.add_keyword(_('raspberry power off'), PowerCommand(say, 'shutdown'))
actor.add_keyword(_('raspberry reboot'), PowerCommand(say, 'reboot'))

return actor

Expand Down

0 comments on commit 906d64d

Please sign in to comment.