from os import path
from pydub import AudioSegment
input_file = "audio.mp3"
output_file = "result.wav"
sound = AudioSegment.from_mp3(input_file)
sound.export(output_file, format="wav")
When i run the above code. It show below error.
FileNotFoundError: No such file or directory: 'ffprobe'
I tried this also using subprocess module.
input_file = "audio.mp3"
output_file = "result.wav"
import subprocess
subprocess.call(['ffmpeg', '-i', input_file, output_file])
It gives below error
FileNotFoundError: No such file or directory: 'ffmpeg'
I'm not sure what's wrong on this code. I'm currently using Windows 10. Please solve this.