From: Georgi Gerganov Date: Thu, 29 Sep 2022 20:37:59 +0000 (+0300) Subject: Update README.md X-Git-Tag: upstream/1.7.4~2013 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=fd3f3d748f5776e39c662868f3cd88e988156d6b;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp Update README.md --- diff --git a/README.md b/README.md index 143ebd6a..9185a3c8 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ bash ./download-ggml-model.sh base.en For a quick demo, simply run `make base.en`: -```bash +```java $ make base.en gcc -pthread -O3 -mavx -mavx2 -mfma -mf16c -c ggml.c @@ -123,13 +123,13 @@ For detailed usage instructions, run: `./main -h` Note that `whisper.cpp` runs only with 16-bit WAV files, so make sure to convert your input before running the tool. For example, you can use `ffmpeg` like this: -```bash +```java ffmpeg -i input.mp3 -ar 16000 -ac 1 -c:a pcm_s16le output.wav ``` Here is another example of transcribing a [3:24 min speech](https://upload.wikimedia.org/wikipedia/commons/1/1f/George_W_Bush_Columbia_FINAL.ogg) in less than a minute, using `medium.en` model: -```bash +```java $ ./main -m models/ggml-medium.en.bin -f samples/gb1.wav -t 8 whisper_model_load: loading model from 'models/ggml-medium.en.bin' whisper_model_load: n_vocab = 51864