mirror of
https://github.com/correl/dejavu.git
synced 2024-11-23 19:19:53 +00:00
Added missing 'self'
This commit is contained in:
parent
d25c564d4f
commit
788b3acebf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue