timething icon indicating copy to clipboard operation
timething copied to clipboard

cannot load audiofile

Open osama84-hup opened this issue 2 years ago • 1 comments

when i run the code " timething align --language arabic --metadata text.csv --alignments-dir aligned --batch-size 4 --n-workers 4 --use-gpu False" in the terminal i got the following:

setting up aligner... starting aligment... 0%| | 0/1 [00:00<?, ?it/s]formats: can't open input file `audio/chapter01.wav

and it ends without any results!!!

so if there is any error in using the function or any thing else please help thanks

osama84-hup avatar Jul 30 '23 07:07 osama84-hup

I had the same problem, eventually I tracked it down to ffmpeg not being installed for python - unintuitively it turns out ffmpeg and ffmpeg-python are not the same thing!

This worked for me:

conda install -c conda-forge ffmpeg-python

then open a python command line and run:

import torchaudio
torchaudio._extension._init_ffmpeg()
print(torchaudio._extension._FFMPEG_INITIALIZED)

Should return True if successful.

gameoverhack avatar Aug 06 '23 23:08 gameoverhack