Views
No views yet
git clone https://github.com/ggerganov/whisper.cpp.git
cd whisper.cppkotoba-tech/kotoba-whisper-v2.0:wget https://huggingface.co/kotoba-tech/kotoba-whisper-v2.0-ggml/resolve/main/ggml-kotoba-whisper-v2.0.bin -P ./models1wget https://huggingface.co/kotoba-tech/kotoba-whisper-v1.0-ggml/resolve/main/sample_ja_speech.wav
2make -j && ./main -m models/ggml-kotoba-whisper-v2.0.bin -l ja -f sample_ja_speech.wav --output-file transcription --output-jsonffmpeg -i input.mp3 -ar 16000 -ac 1 -c:a pcm_s16le output.wav| audio file | audio duration (min) | whisper.cpp (sec) | faster-whisper (sec) | hf pipeline (sec) |
|---|---|---|---|---|
| audio 1 | 50.3 | 581 | 2601 | 807 |
| audio 2 | 5.6 | 41 | 73 | 61 |
| audio 3 | 4.9 | 30 | 141 | 54 |
| audio 4 | 5.6 | 35 | 126 | 69 |
wget https://huggingface.co/kotoba-tech/kotoba-whisper-v2.0-ggml/resolve/main/ggml-kotoba-whisper-v2.0-q5_0.bin -P ./modelsmake -j && ./main -m models/ggml-kotoba-whisper-v2.0-q5_0.bin -l ja -f sample_ja_speech.wav --output-file transcription.quantized --output-json# clone OpenAI whisper and whisper.cpp
git clone https://github.com/openai/whisper
git clone https://github.com/ggerganov/whisper.cpp
# get the models
cd whisper.cpp/models
git clone https://huggingface.co/kotoba-tech/kotoba-whisper-v2.0
# convert to ggml
python3 ./convert-h5-to-ggml.py ./kotoba-whisper-v2.0/ ../../whisper .
mv ggml-model.bin ggml-kotoba-whisper-v2.0
# quantize ggml model
cd ../
make quantize
./quantize models/ggml-kotoba-whisper-v2.0.bin models/ggml-kotoba-whisper-v2.0-q5_0.bin q5_0