Updated README for the changes to the interface.

Changed default value from None to 10 for the MicrophoneRecognizer.recognize
This commit is contained in:
Wessie 2013-12-19 01:34:04 +01:00
parent 292ddf029d
commit 94c4cc0d95
2 changed files with 1 additions and 1 deletions

BIN
README.md

Binary file not shown.

View file

@ -99,7 +99,7 @@ class MicrophoneRecognizer(BaseRecognizer):
def get_recorded_time(self):
return len(self.data[0]) / self.rate
def recognize(self, seconds=None):
def recognize(self, seconds=10):
self.start_recording()
for i in range(0, int(self.samplerate / self.chunksize
* seconds)):