.py and .mp3 file are in the same folder
Full code:
import whisper
file_path = r"E:\test\oid.mp3"
print(file_path)
model = whisper.load_model("base")
result = model.transcribe(file_path)
print(result["text"])
I got the file directory as output. but the code does not see it
I wrote only the name of the file, I wrote the full file extension, I wrote it as raw.
Also updated file permissions:
C:\Users\erina>icacls E:\test\oid.mp3
E:\test\oid.mp3 DESKTOP-PK8T69J\erina:(F)
BUILTIN\Administrators:(F)
NT AUTHORITY\SYSTEM:(F)
NT AUTHORITY\Authenticated Users:(M)
BUILTIN\Users:(RX)
BUILTIN\Administrators:(I)(F)
NT AUTHORITY\SYSTEM:(I)(F)
NT AUTHORITY\Authenticated Users:(I)(M)
BUILTIN\Users:(I)(RX)
Successfully processed 1 files; Failed processing 0 files
Python version 3.10