subprocess
# 用subprocess调用转换音频的命令,报错
subprocess.call("ffmpeg -i 23982.amr 50784.wav")
# 报错信息:OSError: [Errno 2] No such file or directory
# 加上shell参数
subprocess.call("ffmpeg -i 23982.amr 50784.wav", shell=True)
# 用subprocess调用转换音频的命令,报错
subprocess.call("ffmpeg -i 23982.amr 50784.wav")
# 报错信息:OSError: [Errno 2] No such file or directory
# 加上shell参数
subprocess.call("ffmpeg -i 23982.amr 50784.wav", shell=True)