Skip to content

Commit

Permalink
Add global declaration before variable use
Browse files Browse the repository at this point in the history
  • Loading branch information
jakory committed Jul 20, 2017
1 parent 4cf93c9 commit 4536422
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/entrain_speech_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ def on_entrain_audio_msg(data):
# Save audio collected so far to wav file.
entrainer.save_to_wav(audio_data, target)
# Reset audio data.
global audio_data
audio_data = deque([], maxlen=720)

# Give the source wav file (that was given to us) and the target wav
Expand Down

0 comments on commit 4536422

Please sign in to comment.