MahmoudAshraf97 / whisper-diarization

Automatic Speech Recognition with Speaker Diarization based on OpenAI Whisper
BSD 2-Clause "Simplified" License
3.43k stars 288 forks source link

"Permission denied" #197

Open UberStorm opened 3 months ago

UberStorm commented 3 months ago

I ran diarize_parallel on a wav file, and I get the following error:

Model was trained with pyannote.audio 0.0.1, yours is 3.1.1. Bad things might happen unless you revert pyannote.audio to 0.x.
Model was trained with torch 1.10.0+cu102, yours is 2.3.1+cu118. Bad things might happen unless you revert torch to 1.x.
Traceback (most recent call last):
  File "C:\AI\whisper-diarization\diarize_parallel.py", line 143, in <module>
    tokens_starred, text_starred = preprocess_text(
                                   ^^^^^^^^^^^^^^^^
  File "c:\AI\whisper-diarization\.conda\Lib\site-packages\ctc_forced_aligner\text_utils.py", line 205, in preprocess_text
    tokens = get_uroman_tokens(norm_text, language)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\AI\whisper-diarization\.conda\Lib\site-packages\ctc_forced_aligner\text_utils.py", line 149, in get_uroman_tokens
    with open(tf.name, "w") as f:
         ^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\UberStorm\\AppData\\Local\\Temp\\tmpb4iv7zz4'

Please help

MahmoudAshraf97 commented 3 months ago

Should be fixed now, please reinstall ctc-forced-aligner

UberStorm commented 3 months ago

Now I get this:

Traceback (most recent call last):
  File "C:\AI\whisper-diarization\diarize_parallel.py", line 143, in <module>
    tokens_starred, text_starred = preprocess_text(
  File "c:\AI\whisper-diarization\.conda\lib\site-packages\ctc_forced_aligner\text_utils.py", line 212, in preprocess_text       
    tokens = get_uroman_tokens(norm_text, language)
  File "c:\AI\whisper-diarization\.conda\lib\site-packages\ctc_forced_aligner\text_utils.py", line 163, in get_uroman_tokens     
    subprocess.run(cmd, check=True, stdin=tf1, stdout=tf2)
  File "c:\AI\whisper-diarization\.conda\lib\subprocess.py", line 503, in run
    with Popen(*popenargs, **kwargs) as process:
  File "c:\AI\whisper-diarization\.conda\lib\subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "c:\AI\whisper-diarization\.conda\lib\subprocess.py", line 1456, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
MahmoudAshraf97 commented 3 months ago

That means that your windows environment doesn't have perl installed or the path of the installation isn't included in the PATH environment variable follow this guide

UberStorm commented 3 months ago

I installed perl and now I get:

perl: warning: Falling back to the system default locale ("Hebrew_Israel.1255").
Traceback (most recent call last):
  File "C:\AI\whisper-diarization\diarize_parallel.py", line 167, in <module>
    with open(os.path.join(temp_path, "pred_rttms", "mono_file.rttm"), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\AI\\whisper-diarization\\temp_outputs\\pred_rttms\\mono_file.rttm'
MahmoudAshraf97 commented 3 months ago

did you check manually if the file exists?

UberStorm commented 3 months ago

did you check manually if the file exists?

Yes. It does not