list initialization

This commit is contained in:
vjbytes102
2020-12-09 18:17:09 -05:00
committed by GitHub
parent 9413b17351
commit dad92abfbc

View File

@@ -31,7 +31,11 @@ def formant_list(formant,snd):
Returns:
List of first through fourth formant for each frame
"""
f1_list, f2_list, f3_list, f4_list = ([], ) * 4
f1_list = []
f2_list = []
f3_list = []
f4_list = []
dur = snd.duration-0.02
dur_round = round(dur, 2)
@@ -126,4 +130,4 @@ def run_formant(video_uri, out_dir, r_config):
calc_formant(video_uri, audio_file, out_loc, fl_name, r_config)
except Exception as e:
logger.error('Failed to process audio file')
logger.error('Failed to process audio file')