nmf_to_wav
nmf_to_wav copied to clipboard
The system cannot find the specified file
I am using python 3.x and never find the file. I am sure that my file is in the correct directory. what am I doing wrong?
Hi, This issue is quite old but as I faced the same problem recently, I'll post my answer:
The file Windows doesn't find is probably the ffmpeg executable, not your audio file. In the 101st line of the script, in the convert_to_wav()
function, a subprocess
calls ffmpeg to convert the data to a .wav
file. Here the argument is litteraly ffmpeg
, meaning that the ffmpeg executable must be in your PATH
.
From here you have two solutions:
- add
ffmpeg
to yourPATH
(here is a tutorial on how to do that on Windows), - or modify the first argument of the
subprocess
function fromffmpeg
to/your/path/to/ffmpeg/executable/
.
I hope it will help you or anyone having the same issue !