Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2780 from dalgwen/bugfix/issue-2779
Browse files Browse the repository at this point in the history
Fix UnboundLocalError in AudioProducer
  • Loading branch information
krisgesling authored Dec 15, 2020
2 parents 6f8bae6 + 4747dd0 commit 4c254aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mycroft/client/speech/mic.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ def _wait_until_wake_word(self, source, sec_per_buffer):
ww_frames = deque(maxlen=7)

said_wake_word = False
audio_data = None
while (not said_wake_word and not self._stop_signaled and
not self._skip_wake_word()):
chunk = self.record_sound_chunk(source)
Expand Down

0 comments on commit 4c254aa

Please sign in to comment.