mac.py
``` python
def __init__(self, profile, speaker, passive_stt_engine,
active_stt_engine, wordless=False):
self.wordless = wordless
def passiveListen(self, PERSONA):
"""
Listens for PERSONA in everyday sound. Times out after LISTEN_TIME, so
needs to be restarted.
"""
if self.wordless:
raw_input("回车唤醒")
return [PERSONA]
def activeListenToAllOptions(self, THRESHOLD=None, LISTEN=True,
MUSIC=False):
"""
Records until a second of silence or times out after 12 seconds
Returns a list of the matching options or None
"""
if self.wordless:
user_input = raw_input("请输入命令:")
return [user_input.decode("utf8")]
```