list initialization
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user