File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const whisperParamsMock = {
1111  language : "en" , 
1212  model : path . join ( __dirname ,  "../../../models/ggml-base.en.bin" ) , 
1313  fname_inp : path . join ( __dirname ,  "../../../samples/jfk.wav" ) , 
14+   use_gpu : true , 
1415} ; 
1516
1617describe ( "Run whisper.node" ,  ( )  =>  { 
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ Napi::Value whisper(const Napi::CallbackInfo& info) {
318318  std::string language = whisper_params.Get (" language" As <Napi::String>();
319319  std::string model = whisper_params.Get (" model" As <Napi::String>();
320320  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>();
322322
323323  params.language  = language;
324324  params.model  = model;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments