def main(): path = "/a" result = "/b" count = 0 for file in os.listdir(path): if not file.endswith('.wav'): continue dst_file = os,path.join(path,file) count += 1 cmd = "python inference2.py --audio {} --outfile {} ".format(str(dst_file),os.path.join(result,file.replace('.wav','.mp4')) os.system(cmd)```
cm命令行执行
时间:2023-05-20
相关推荐