From: George Hindle Date: Fri, 12 Jan 2024 11:24:38 +0000 (+0000) Subject: params : don't compute timestamps when not printing them (#1755) X-Git-Tag: upstream/1.7.4~1138 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f7908f9bb87cf628d5fd99fa630373f4cb8d4440;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp params : don't compute timestamps when not printing them (#1755) --- diff --git a/examples/main/main.cpp b/examples/main/main.cpp index 234e2375..c92e9e05 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 71c54aca..6f3ca6be 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