nmf_to_wav icon indicating copy to clipboard operation
nmf_to_wav copied to clipboard

The system cannot find the specified file

Open YeisonVelez11 opened this issue 5 years ago • 1 comments

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?

imagen

imagen

YeisonVelez11 avatar Sep 18 '19 22:09 YeisonVelez11

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 your PATH (here is a tutorial on how to do that on Windows),
  • or modify the first argument of the subprocess function from ffmpeg to /your/path/to/ffmpeg/executable/.

I hope it will help you or anyone having the same issue !

artperrin avatar Jul 02 '21 11:07 artperrin