blob: 5701c5209ad079c1b07f613297d325aea85c17c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# -*- coding: utf-8-*-
from sys import maxint
import random
WORDS = []
PRIORITY = -(maxint + 1)
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
|