diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-01 00:22:02 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-01 00:22:02 +0200 |
| commit | 3c698aa457b41a258663d3cf6337fc2c1f645740 (patch) | |
| tree | b53a522e7d84eb5af77132adcf4a5b97faa4ada0 /client/test_mic.py | |
| parent | 5902f695fc0d7d706867d182c7a70fa9f0beac41 (diff) | |
| download | jasper-client-3c698aa457b41a258663d3cf6337fc2c1f645740.tar.gz jasper-client-3c698aa457b41a258663d3cf6337fc2c1f645740.zip | |
Add method to fix AttributeError in local/test_mic
Diffstat (limited to 'client/test_mic.py')
| -rw-r--r-- | client/test_mic.py | 3 |
1 files changed, 3 insertions, 0 deletions
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] |
