Fixed sample rate to 16000, the one accepted by whisper.cpp
Browse files
README.md
CHANGED
@@ -26,4 +26,4 @@ It can transcribe ONLY wav files!
|
|
26 |
ffmpeg -i yourfilename.mp4 -vn -acodec pcm_s16le -ar 16000 -ac 2 yourfilename.wav
|
27 |
|
28 |
# Command to convert all mp4 (works for any video, just change the extension) inside folder to wav:
|
29 |
-
find . -type f -iname "*.mp4" -exec bash -c 'ffmpeg -i "$0" -vn -acodec pcm_s16le -ar
|
|
|
26 |
ffmpeg -i yourfilename.mp4 -vn -acodec pcm_s16le -ar 16000 -ac 2 yourfilename.wav
|
27 |
|
28 |
# Command to convert all mp4 (works for any video, just change the extension) inside folder to wav:
|
29 |
+
find . -type f -iname "*.mp4" -exec bash -c 'ffmpeg -i "$0" -vn -acodec pcm_s16le -ar 16000 -ac 2 "${0%.*}.wav"' {} \;
|