File tree 2 files changed +2
-1
lines changed 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const whisperParamsMock = {
11
11
language : "en" ,
12
12
model : path . join ( __dirname , "../../../models/ggml-base.en.bin" ) ,
13
13
fname_inp : path . join ( __dirname , "../../../samples/jfk.wav" ) ,
14
+ use_gpu : true ,
14
15
} ;
15
16
16
17
describe ( "Run whisper.node" , ( ) => {
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ Napi::Value whisper(const Napi::CallbackInfo& info) {
318
318
std::string language = whisper_params.Get (" language" ).As <Napi::String>();
319
319
std::string model = whisper_params.Get (" model" ).As <Napi::String>();
320
320
std::string input = whisper_params.Get (" fname_inp" ).As <Napi::String>();
321
- std::string input = whisper_params.Get (" use_gpu" ).As <Napi::Boolean >();
321
+ bool use_gpu = whisper_params.Get (" use_gpu" ).As <Napi::Boolean >();
322
322
323
323
params.language = language;
324
324
params.model = model;
You can’t perform that action at this time.
0 commit comments