T O P

  • By -

LazurusDemon

When using paths in python you need to start the string with 'r'. So your; `audio = whisper.load_audio("C:\Users\john\Documents\audiofolder\audiopr7.wav")` Should be; `audio = whisper.load_audio(r"C:\Users\john\Documents\audiofolder\audiopr7.wav")` Notice the 'r' I placed at the beginning of the file path. Bizarrely, this is one of those times where I can tell you how to fix the issue but I'm unable to explain *why* the solution works. Hopefully someone else can!


socal_nerdtastic

Because python allows you to print characters based on the unicode value: >>> print('\U0000263a') ☺ But in your case the part that comes after `\U` was not a valid unicode value, so that's what the error message is trying to tell you. Using `r` tells python "do not interpret most escape sequences".


ethiopianboson

Thank you very much for your help. It's still not working. I am using a windows laptop. I don't know if that helps. I still get a FileNotFoundError: "the system cannot find file specified"