Added missing 'self'

This commit is contained in:
Vin 2013-12-17 22:03:50 +00:00
parent d25c564d4f
commit 788b3acebf

View file

@ -108,7 +108,7 @@ class MicrophoneRecognizer(BaseRecognizer):
def recognize_recording(self): def recognize_recording(self):
if not self.recorded: if not self.recorded:
raise NoRecordingError("Recording was not complete/begun") raise NoRecordingError("Recording was not complete/begun")
return self._recognize(*data) return self._recognize(*self.data)
def get_recorded_time(self): def get_recorded_time(self):
return len(self.data[0]) / self.rate return len(self.data[0]) / self.rate