Skip to content

Commit

Permalink
params : don't compute timestamps when not printing them (#1755)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghindle authored Jan 12, 2024
1 parent 00b7a4b commit f7908f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,8 @@ int main(int argc, char ** argv) {
wparams.entropy_thold = params.entropy_thold;
wparams.logprob_thold = params.logprob_thold;

wparams.no_timestamps = params.no_timestamps;

whisper_print_user_data user_data = { &params, &pcmf32s, 0 };

// this callback is called on each new segment
Expand Down
2 changes: 2 additions & 0 deletions examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,8 @@ int main(int argc, char ** argv) {
wparams.entropy_thold = params.entropy_thold;
wparams.logprob_thold = params.logprob_thold;

wparams.no_timestamps = params.no_timestamps;

whisper_print_user_data user_data = { &params, &pcmf32s, 0 };

// this callback is called on each new segment
Expand Down

0 comments on commit f7908f9

Please sign in to comment.