| 1 |
generate/whispercpp/README.TXT |
| 2 |
Anastasia Shchupak, 16 March, 30 May 2026 |
| 3 |
|
| 4 |
This folder documents how Whisper models in GGML format are obtained for use with Praat's speech recognition. |
| 5 |
Unlike the Silero VAD model, Whisper models are not embedded in Praat. They are downloaded separately by the user and |
| 6 |
stored in the Praat preferences folder. |
| 7 |
|
| 8 |
|
| 9 |
Files in this folder |
| 10 |
-------------------- |
| 11 |
README.txt |
| 12 |
This file. |
| 13 |
|
| 14 |
convert-pt-to-ggml.py |
| 15 |
Python script from whisper.cpp that converts original OpenAI Whisper PyTorch models (.pt files) to the ggml format. |
| 16 |
Requires Python 3 with the openai-whisper package, and a clone of the OpenAI Whisper repository (for tokenizer and mel filters). |
| 17 |
|
| 18 |
convert-pt-to-ggml.sh |
| 19 |
Shell script that converts an OpenAI Whisper PyTorch model (.pt file) to the ggml format, |
| 20 |
using the Python script convert-pt-to-ggml.py. If the .pt file is not already present in the current folder, |
| 21 |
the script downloads the original model from OpenAI. If a .pt file with the matching name is already present |
| 22 |
(e.g. a fine-tuned version), it is used as-is. The script also clones the OpenAI Whisper repository |
| 23 |
if not already present, as it is needed by the conversion script for tokenizer and mel filters. |
| 24 |
Included here to document how ggml models can be produced from the original OpenAI models. |
| 25 |
|
| 26 |
How to obtain Whisper models in the ggml format |
| 27 |
----------------------------------------------- |
| 28 |
You can download it from here: `https://huggingface.co/ggerganov/whisper.cpp`. |
| 29 |
If you need to create a Whisper model in the ggml format from scratch, then use the following command: |
| 30 |
``` |
| 31 |
./convert-pt-to-ggml.sh <whisper-model-name> |
| 32 |
``` |
| 33 |
Available models include: tiny, tiny.en, base, base.en, small, small.en, medium, medium.en, |
| 34 |
large-v1, large-v2, large-v3, large-v3-turbo. Run the script without arguments to see the full list. |