-
import whisper model = whisper.load_model("base") result = model.transcribe(r"F:\whisper\test2.wav") print(result["text"]) I don't understand why I keep getting this error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 9: invalid start byte |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
It appears that the code failed to load the audio file for some reason and even failed to display that error because |
Beta Was this translation helpful? Give feedback.
-
Did you solve it? |
Beta Was this translation helpful? Give feedback.
-
I had the same problem when I use Windows system,and now I solve it. |
Beta Was this translation helpful? Give feedback.
It appears that the code failed to load the audio file for some reason and even failed to display that error because
e.stderr
did not contain a valid UTF-8 string. Can you load the audio file usingwave
orscipy.io.wavfile.read
?