Skip to content

Instantly share code, notes, and snippets.

@Wikinaut
Last active February 17, 2023 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wikinaut/acfd95c580985fae968d9eea6998bfc5 to your computer and use it in GitHub Desktop.
Save Wikinaut/acfd95c580985fae968d9eea6998bfc5 to your computer and use it in GitHub Desktop.
Transcription with whisper.cpp
# 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