pass list type to os.system sorted list

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) 

  

posted on 2021-10-21 18:39  cdekelon  阅读(11)  评论(0编辑  收藏  举报

导航