]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
params : don't compute timestamps when not printing them (#1755)
authorGeorge Hindle <redacted>
Fri, 12 Jan 2024 11:24:38 +0000 (11:24 +0000)
committerGitHub <redacted>
Fri, 12 Jan 2024 11:24:38 +0000 (13:24 +0200)
examples/main/main.cpp
examples/server/server.cpp

index 234e2375936091ea121b77450a0619bf544c98ff..c92e9e05ef04b2d730dc20df55fc830704a02475 100644 (file)
@@ -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
index 71c54acacd7a792d8c33f7cb2177b50c9d178435..6f3ca6be8f4107a3f7cc0839962b4b68ced8364b 100644 (file)
@@ -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