Skip to content

Commit

Permalink
Merge pull request #218 from dodysw/phrase_time_limit
Browse files Browse the repository at this point in the history
phrase_time_limit was ignored on listen_in_background call
  • Loading branch information
Uberi authored Apr 5, 2017
2 parents cf813d5 + 14ffb06 commit 7214cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speech_recognition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def threaded_listen():
with source as s:
while running[0]:
try: # listen for 1 second, then check again if the stop function has been called
audio = self.listen(s, 1)
audio = self.listen(s, 1, phrase_time_limit)
except WaitTimeoutError: # listening timed out, just try again
pass
else:
Expand Down

0 comments on commit 7214cfa

Please sign in to comment.