Fangjun Kuang 1 жил өмнө
parent
commit
98ba3218db

+ 1 - 1
CMakeLists.txt

@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
 project(sherpa-ncnn)
 
-set(SHERPA_NCNN_VERSION "2.1.2")
+set(SHERPA_NCNN_VERSION "2.1.3")
 
 # Disable warning about
 #

+ 1 - 0
mfc-examples/RealtimeSpeechRecognition/RealtimeSpeechRecognitionDlg.cpp

@@ -413,6 +413,7 @@ void CRealtimeSpeechRecognitionDlg::InitRecognizer() {
   }
 
   SherpaNcnnRecognizerConfig config;
+  memset(&config, 0, sizeof(config));
   config.model_config.num_threads = 1;
 
   config.decoder_config.decoding_method = "greedy_search";