Skip to content

Commit 896e986

Browse files
ghindlejiahansu
authored andcommitted
params : don't compute timestamps when not printing them (ggml-org#1755)
1 parent 39409b0 commit 896e986

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/main/main.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,8 @@ int main(int argc, char ** argv) {
982982
wparams.entropy_thold = params.entropy_thold;
983983
wparams.logprob_thold = params.logprob_thold;
984984

985+
wparams.no_timestamps = params.no_timestamps;
986+
985987
whisper_print_user_data user_data = { &params, &pcmf32s, 0 };
986988

987989
// this callback is called on each new segment

examples/server/server.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ int main(int argc, char ** argv) {
614614
wparams.entropy_thold = params.entropy_thold;
615615
wparams.logprob_thold = params.logprob_thold;
616616

617+
wparams.no_timestamps = params.no_timestamps;
618+
617619
whisper_print_user_data user_data = { &params, &pcmf32s, 0 };
618620

619621
// this callback is called on each new segment

0 commit comments

Comments
 (0)