File size: 1,026 Bytes
927a3e3 a908109 927a3e3 a908109 927a3e3 a908109 927a3e3 a908109 927a3e3 a908109 927a3e3 a908109 927a3e3 410b7e2 927a3e3 180186c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# How to run this ggml file?
WARNING: this can be slow and CPU intensive
Clone whisper.cpp repository:
git clone https://github.com/ggerganov/whisper.cpp
cd whisper.cpp
make
place this model called large_q5_0.bin inside whisper.cpp/models folder and run:
./main -m models/large_q5_0.bin yourfilename.wav
# Command to transcribe to SRT subtitle files:
./main -m models/large_q5_0.bin yourfilename.wav --output-srt --print-progress
# Command to transcribe to TRANSLATED (to English) SRT subtitle files:
./main -m models/large_q5_0.bin yourfilename.wav --output-srt --print-progress --translate
It can transcribe ONLY wav files!
# Command line to convert mp4 (works for any video, just change the extension) to wav:
ffmpeg -i yourfilename.mp4 -vn -acodec pcm_s16le -ar 16000 -ac 2 yourfilename.wav
# Command to convert all mp4 (works for any video, just change the extension) inside folder to wav:
find . -type f -iname "*.mp4" -exec bash -c 'ffmpeg -i "$0" -vn -acodec pcm_s16le -ar 16000 -ac 2 "${0%.*}.wav"' {} \;
|