diff --git a/examples/addon.node/addon.cpp b/examples/addon.node/addon.cpp index 30acbc6a..ba3c3eda 100644 --- a/examples/addon.node/addon.cpp +++ b/examples/addon.node/addon.cpp @@ -154,7 +154,7 @@ int run(whisper_params ¶ms, std::vector> &result) { // whisper init - struct whisper_context_params cparams; + struct whisper_context_params cparams = whisper_context_default_params(); cparams.use_gpu = params.use_gpu; struct whisper_context * ctx = whisper_init_from_file_with_params(params.model.c_str(), cparams); diff --git a/examples/bench/bench.cpp b/examples/bench/bench.cpp index 949e5737..60d10a2c 100644 --- a/examples/bench/bench.cpp +++ b/examples/bench/bench.cpp @@ -58,7 +58,7 @@ void whisper_print_usage(int /*argc*/, char ** argv, const whisper_params & para int whisper_bench_full(const whisper_params & params) { // whisper init - struct whisper_context_params cparams; + struct whisper_context_params cparams = whisper_context_default_params(); cparams.use_gpu = params.use_gpu; struct whisper_context * ctx = whisper_init_from_file_with_params(params.model.c_str(), cparams); diff --git a/examples/command/command.cpp b/examples/command/command.cpp index 51d800a2..0ab7b67b 100644 --- a/examples/command/command.cpp +++ b/examples/command/command.cpp @@ -693,7 +693,7 @@ int main(int argc, char ** argv) { // whisper init - struct whisper_context_params cparams; + struct whisper_context_params cparams = whisper_context_default_params(); cparams.use_gpu = params.use_gpu; struct whisper_context * ctx = whisper_init_from_file_with_params(params.model.c_str(), cparams); diff --git a/examples/lsp/lsp.cpp b/examples/lsp/lsp.cpp index 8d8b6ffa..e5f8360f 100644 --- a/examples/lsp/lsp.cpp +++ b/examples/lsp/lsp.cpp @@ -435,7 +435,7 @@ int main(int argc, char ** argv) { } // whisper init - struct whisper_context_params cparams; + struct whisper_context_params cparams = whisper_context_default_params(); cparams.use_gpu = params.use_gpu; struct whisper_context * ctx = whisper_init_from_file_with_params(params.model.c_str(), cparams); // init audio diff --git a/examples/main/main.cpp b/examples/main/main.cpp index c92e9e05..6ece0a7a 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -890,7 +890,7 @@ int main(int argc, char ** argv) { // whisper init - struct whisper_context_params cparams; + struct whisper_context_params cparams = whisper_context_default_params(); cparams.use_gpu = params.use_gpu; struct whisper_context * ctx = whisper_init_from_file_with_params(params.model.c_str(), cparams); diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 4cfc2946..b11f44f2 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -122,8 +122,7 @@ bool is_file_exist(const char *fileName) return infile.good(); } -void whisper_print_usage(int /*argc*/, char ** argv, const whisper_params & params, - const server_params& sparams) { +void whisper_print_usage(int /*argc*/, char ** argv, const whisper_params & params, const server_params& sparams) { fprintf(stderr, "\n"); fprintf(stderr, "usage: %s [options] \n", argv[0]); fprintf(stderr, "\n"); @@ -525,7 +524,7 @@ int main(int argc, char ** argv) { check_ffmpeg_availibility(); } // whisper init - struct whisper_context_params cparams; + struct whisper_context_params cparams = whisper_context_default_params(); cparams.use_gpu = params.use_gpu; struct whisper_context * ctx = whisper_init_from_file_with_params(params.model.c_str(), cparams); diff --git a/examples/stream/stream.cpp b/examples/stream/stream.cpp index 47f1780b..afdc04ae 100644 --- a/examples/stream/stream.cpp +++ b/examples/stream/stream.cpp @@ -166,7 +166,7 @@ int main(int argc, char ** argv) { exit(0); } - struct whisper_context_params cparams; + struct whisper_context_params cparams = whisper_context_default_params(); cparams.use_gpu = params.use_gpu; struct whisper_context * ctx = whisper_init_from_file_with_params(params.model.c_str(), cparams); diff --git a/examples/talk-llama/talk-llama.cpp b/examples/talk-llama/talk-llama.cpp index 8942a3fc..9f18a39a 100644 --- a/examples/talk-llama/talk-llama.cpp +++ b/examples/talk-llama/talk-llama.cpp @@ -281,7 +281,7 @@ int main(int argc, char ** argv) { // whisper init - struct whisper_context_params cparams; + struct whisper_context_params cparams = whisper_context_default_params(); cparams.use_gpu = params.use_gpu; struct whisper_context * ctx_wsp = whisper_init_from_file_with_params(params.model_wsp.c_str(), cparams); diff --git a/examples/talk/talk.cpp b/examples/talk/talk.cpp index cdb1a230..f9de3048 100644 --- a/examples/talk/talk.cpp +++ b/examples/talk/talk.cpp @@ -184,7 +184,7 @@ int main(int argc, char ** argv) { } // whisper init - struct whisper_context_params cparams; + struct whisper_context_params cparams = whisper_context_default_params(); cparams.use_gpu = params.use_gpu; struct whisper_context * ctx_wsp = whisper_init_from_file_with_params(params.model_wsp.c_str(), cparams); diff --git a/examples/wchess/wchess.cmd/wchess.cmd.cpp b/examples/wchess/wchess.cmd/wchess.cmd.cpp index 88771b4a..f66b1765 100644 --- a/examples/wchess/wchess.cmd/wchess.cmd.cpp +++ b/examples/wchess/wchess.cmd/wchess.cmd.cpp @@ -182,7 +182,7 @@ int main(int argc, char ** argv) { // whisper init - struct whisper_context_params cparams; + struct whisper_context_params cparams = whisper_context_default_params(); cparams.use_gpu = params.use_gpu; struct whisper_context * ctx = whisper_init_from_file_with_params(params.model.c_str(), cparams);