From 896e986faf04fc64f0f0eed4403235924c79d89f Mon Sep 17 00:00:00 2001 From: George Hindle Date: Fri, 12 Jan 2024 11:24:38 +0000 Subject: [PATCH] params : don't compute timestamps when not printing them (#1755) --- examples/main/main.cpp | 2 ++ examples/server/server.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/main/main.cpp b/examples/main/main.cpp index 234e2375936..c92e9e05ef0 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -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 = { ¶ms, &pcmf32s, 0 }; // this callback is called on each new segment diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 71c54acacd7..6f3ca6be8f4 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -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 = { ¶ms, &pcmf32s, 0 }; // this callback is called on each new segment