whisper.cpp/examples
Daniel Bevenius f389d7e3e5
examples : add --print-confidence option to cli (#3150)
* examples : add --print-confidence option to cli

This commit adds a new command-line option `--print-confidence` to the
whisper-cli. When enabled, this option prints the confidence level of each
token in the transcribed text using ANSI formatting codes.

The confidence levels are represented using different styles:
```console
main: confidence: highlighted (low confidence), underlined (medium), dim (high confidence)
```

Refs: https://github.com/ggml-org/whisper.cpp/issues/3135
2025-05-14 19:21:48 +02:00
..
addon.node
bench rename : ggerganov -> ggml-org (#3005) 2025-04-04 16:11:52 +03:00
bench.wasm examples : add HEAPU8 to all of the exported runtime methods (#3134) 2025-05-10 06:44:13 +02:00
cli examples : add --print-confidence option to cli (#3150) 2025-05-14 19:21:48 +02:00
command
command.wasm wasm : add note about worker.js file generation [no ci] (#3133) 2025-05-09 15:42:45 +02:00
deprecation-warning
lsp
python
quantize
server server : add --flash-attn usage output (#3152) 2025-05-14 15:22:05 +02:00
stream common : separate whisper sources (#2846) 2025-02-27 12:50:32 +02:00
stream.wasm wasm : add note about worker.js file generation [no ci] (#3133) 2025-05-09 15:42:45 +02:00
sycl
talk-llama talk-llama : sync llama.cpp 2025-05-13 13:59:21 +03:00
vad-speech-segments examples : add VAD speech segments example (#3147) 2025-05-13 12:31:00 +02:00
wchess examples : add HEAPU8 to all of the exported runtime methods (#3134) 2025-05-10 06:44:13 +02:00
whisper.android
whisper.android.java
whisper.nvim
whisper.objc docs : update README.md for whisper.objc app (#2569) 2025-05-13 06:03:50 +02:00
whisper.swiftui
whisper.wasm wasm : add note about worker.js file generation [no ci] (#3133) 2025-05-09 15:42:45 +02:00
CMakeLists.txt examples : add VAD speech segments example (#3147) 2025-05-13 12:31:00 +02:00
coi-serviceworker.js
common-ggml.cpp
common-ggml.h
common-sdl.cpp
common-sdl.h
common-whisper.cpp whisper: remove MSVC warnings pragmas (#3090) 2025-05-05 13:09:35 +02:00
common-whisper.h
common.cpp whisper: remove MSVC warnings pragmas (#3090) 2025-05-05 13:09:35 +02:00
common.h examples : add --print-confidence option to cli (#3150) 2025-05-14 19:21:48 +02:00
ffmpeg-transcode.cpp
generate-karaoke.sh
grammar-parser.cpp
grammar-parser.h
helpers.js
json.hpp
livestream.sh
miniaudio.h
server.py
stb_vorbis.c
twitch.sh
yt-wsp.sh