Last active
February 17, 2023 11:20
-
-
Save Wikinaut/acfd95c580985fae968d9eea6998bfc5 to your computer and use it in GitHub Desktop.
Transcription with whisper.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build (onyl needed once) | |
git clone https://github.com/ggerganov/whisper.cpp.git | |
cd whisper.cpp/ | |
make | |
./models/download-ggml-model.sh large | |
# transcribe | |
x=audio-infile.mp3 / aac / wma / wav | |
# we have to convert to 16 kHz wav | |
ffmpeg -i "$x" -ar 16000 -ac 1 -c:a pcm_s16le "${x%.*}.wav" | |
/home/benutzer/src/whisper.cpp/main -l de -m /home/benutzer/src/whisper.cpp/models/ggml-large.bin -mc 5 -otxt -osrt -ovtt -f "${x%.*}.wav" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment