From 495b81b367be82cfad6a342831757f20343a8533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=97=D0=B5=D0=BC=D0=BB?= =?UTF-8?q?=D1=8F=D0=BA?= Date: Wed, 5 Oct 2022 09:47:48 +0700 Subject: [PATCH] Fix: main get n_threads from cli --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index eb5bb43..1885eb6 100644 --- a/main.cpp +++ b/main.cpp @@ -187,6 +187,7 @@ int main(int argc, char ** argv) { wparams.print_special_tokens = params.print_special_tokens; wparams.translate = params.translate; wparams.language = params.language.c_str(); + wparams.n_threads = params.n_threads; if (whisper_full(ctx, wparams, pcmf32.data(), pcmf32.size()) != 0) { fprintf(stderr, "%s: failed to process audio\n", argv[0]);