import os import glob file_list = [] for i in sorted(glob.glob('/workspace/asr_mandarin/aishell_converted_test/wavs/*.wav')): file_list.append(i) command = "speech_to_text file_paths=" + "".join(str(file_list).split())
#command = "".join(command.split()) #to delete space print(command) os.system(command)