summaryrefslogtreecommitdiff
path: root/client/modules/Unclear.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-03-30 16:03:44 -0400
committerschneefux <schneefux+commit@schneefux.xyz>2014-03-30 16:03:44 -0400
commitd31fabf8cff5dae02e3fc759a4203bd374dddc99 (patch)
tree888ec4e6d98154f862a3b9cd17a3394b657bc02e /client/modules/Unclear.py
parent4182b5e096e081158dddd4ad5d031af94fcc63de (diff)
downloadjasper-client-d31fabf8cff5dae02e3fc759a4203bd374dddc99.tar.gz
jasper-client-d31fabf8cff5dae02e3fc759a4203bd374dddc99.zip
Initial commit
Diffstat (limited to 'client/modules/Unclear.py')
-rw-r--r--client/modules/Unclear.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/client/modules/Unclear.py b/client/modules/Unclear.py
new file mode 100644
index 0000000..39f56d0
--- /dev/null
+++ b/client/modules/Unclear.py
@@ -0,0 +1,26 @@
+import random
+
+WORDS = []
+
+
+def handle(text, mic, profile):
+ """
+ Reports that the user has unclear or unusable input.
+
+ Arguments:
+ text -- user-input, typically transcribed speech
+ mic -- used to interact with the user (for both input and output)
+ profile -- contains information related to the user (e.g., phone number)
+ """
+
+ messages = ["I'm sorry, could you repeat that?",
+ "My apologies, could you try saying that again?",
+ "Say that again?", "I beg your pardon?"]
+
+ message = random.choice(messages)
+
+ mic.say(message)
+
+
+def isValid(text):
+ return True