diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-01 02:42:27 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-01 02:42:27 +0200 |
| commit | 4c62c3c39d9c050c98b18c5d88c736fbb2554992 (patch) | |
| tree | f09c922a78a284d25c8545eee2c745512e0508f3 /client | |
| parent | a26e395eba1fe45e0c0462bc8133b5144bf95b9c (diff) | |
| parent | 3c698aa457b41a258663d3cf6337fc2c1f645740 (diff) | |
| download | jasper-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')
| -rw-r--r-- | client/local_mic.py | 3 | ||||
| -rw-r--r-- | client/test_mic.py | 3 |
2 files changed, 6 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 diff --git a/client/test_mic.py b/client/test_mic.py index 4813e5c..472bf62 100644 --- a/client/test_mic.py +++ b/client/test_mic.py @@ -16,6 +16,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.inputs[self.idx - 1] |
