summaryrefslogtreecommitdiff
path: root/client/local_mic.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-10-01 02:42:27 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-01 02:42:27 +0200
commit4c62c3c39d9c050c98b18c5d88c736fbb2554992 (patch)
treef09c922a78a284d25c8545eee2c745512e0508f3 /client/local_mic.py
parenta26e395eba1fe45e0c0462bc8133b5144bf95b9c (diff)
parent3c698aa457b41a258663d3cf6337fc2c1f645740 (diff)
downloadjasper-client-4c62c3c39d9c050c98b18c5d88c736fbb2554992.tar.gz
jasper-client-4c62c3c39d9c050c98b18c5d88c736fbb2554992.zip
Merge pull request #207 from Holzhaus/fix-test-mics
Add method to fix AttributeError in local/test_mic
Diffstat (limited to 'client/local_mic.py')
-rw-r--r--client/local_mic.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/local_mic.py b/client/local_mic.py
index 3da6ed1..3707439 100644
--- a/client/local_mic.py
+++ b/client/local_mic.py
@@ -15,6 +15,9 @@ class Mic:
def passiveListen(self, PERSONA):
return True, "JASPER"
+ def activeListenToAllOptions(self, THRESHOLD=None, LISTEN=True, MUSIC=False):
+ return [self.activeListen(THRESHOLD=THRESHOLD, LISTEN=LISTEN, MUSIC=MUSIC)]
+
def activeListen(self, THRESHOLD=None, LISTEN=True, MUSIC=False):
if not LISTEN:
return self.prev