Skip to content

cli : print color scheme info for --print-colors #3141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025

Conversation

danbev
Copy link
Member

@danbev danbev commented May 12, 2025

This commit adds a description of the color scheme used in the CLI when the --print-colors option is enabled.

The motivation for this is that it is not immediately clear what the color scheme is when using the CLI with the --print-colors option.

Example output:

$ ./build/bin/whisper-cli -f samples/jfk.wav --print-colors
...

main: color scheme: red (low confidence), yellow (medium), green (high confidence)

[00:00:00.000 --> 00:00:11.000]   And so my fellow Americans, ask not what your country can do for you, ask what you can do for your country.

The description will not be dispayed if the --no-prints options is set.

Refs: #3135

This commit adds a description of the color scheme used in the CLI
when the --print-colors option is enabled.

The motivation for this is that it is not immediately clear what the
color scheme is when using the CLI with the --print-colors option.

Example output:
```console
$ ./build/bin/whisper-cli -f samples/jfk.wav --print-colors
...

main: color scheme: red (low confidence), yellow (medium), green (high confidence)

[00:00:00.000 --> 00:00:11.000]   And so my fellow Americans, ask not what your country can do for you, ask what you can do for your country.
```
The description will not be dispayed if the `--no-prints` options is
set.

Refs: ggml-org#3135
@danbev danbev merged commit 186855e into ggml-org:master May 12, 2025
52 checks passed
@Joseph513shen
Copy link

does whisper-stream show condifence of every word?because medium.bin has hallucinations and i want to konw the confidence,thx

@danbev danbev deleted the cli-color-scheme-print branch May 22, 2025 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants