File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,8 @@ int run(whisper_params ¶ms, std::vector<std::vector<std::string>> &result) {
211
211
212
212
wparams.initial_prompt = params.prompt .c_str ();
213
213
214
+ wparams.no_timestamps = params.no_timestamps ;
215
+
214
216
whisper_print_user_data user_data = { ¶ms, &pcmf32s };
215
217
216
218
// this callback is called on each new segment
@@ -298,11 +300,13 @@ Napi::Value whisper(const Napi::CallbackInfo& info) {
298
300
std::string model = whisper_params.Get (" model" ).As <Napi::String>();
299
301
std::string input = whisper_params.Get (" fname_inp" ).As <Napi::String>();
300
302
bool use_gpu = whisper_params.Get (" use_gpu" ).As <Napi::Boolean>();
303
+ bool no_timestamps = whisper_params.Get (" no_timestamps" ).As <Napi::Boolean>();
301
304
302
305
params.language = language;
303
306
params.model = model;
304
307
params.fname_inp .emplace_back (input);
305
308
params.use_gpu = use_gpu;
309
+ params.no_timestamps = no_timestamps;
306
310
307
311
Napi::Function callback = info[1 ].As <Napi::Function>();
308
312
Worker* worker = new Worker (callback, params);
You can’t perform that action at this time.
0 commit comments