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)```
06-19