From 45364223f00a05731f96dd654c7367eedff39707 Mon Sep 17 00:00:00 2001 From: jakory Date: Thu, 20 Jul 2017 10:46:57 -0400 Subject: [PATCH] Add global declaration before variable use --- src/entrain_speech_node.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entrain_speech_node.py b/src/entrain_speech_node.py index 4b016e6..a32c4ca 100755 --- a/src/entrain_speech_node.py +++ b/src/entrain_speech_node.py @@ -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