### ======================= forced alignment ======================= #if forced_alignment: # try: # scripts.run_command([ # 'HVite','-T', '1', '-a', '-C', configHVite, # '-H', AcousticModel, '-m', '-I', # mlf_file, '-i', fa_file, '-S', # script_file, htk_dict_file, filePhoneList # ]) # except: # print("\033[91mHVite command failed with these input files:\033[0m") # print(_debug_show_file('HVite config', configHVite)) # print(_debug_show_file('Accoustic model', AcousticModel)) # print(_debug_show_file('Master Label file', mlf_file)) # print(_debug_show_file('Output', fa_file)) # print(_debug_show_file('Script file', script_file)) # print(_debug_show_file('HTK dictionary', htk_dict_file)) # print(_debug_show_file('Phoneme list', filePhoneList)) # raise ##os.remove(hcopy_scp.name)