From 9e005f53c37f706c5bcc5e052e090acdddb62189 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sun, 28 Jul 2024 14:07:25 +0800 Subject: [PATCH] fix building MFC examples (#1178) --- .../StreamingSpeechRecognitionDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mfc-examples/StreamingSpeechRecognition/StreamingSpeechRecognitionDlg.cpp b/mfc-examples/StreamingSpeechRecognition/StreamingSpeechRecognitionDlg.cpp index 207673c3..7e7af2b0 100644 --- a/mfc-examples/StreamingSpeechRecognition/StreamingSpeechRecognitionDlg.cpp +++ b/mfc-examples/StreamingSpeechRecognition/StreamingSpeechRecognitionDlg.cpp @@ -525,7 +525,7 @@ int CStreamingSpeechRecognitionDlg::RunThread() { auto r = SherpaOnnxGetOnlineStreamResult(recognizer_, stream_); std::string text = r->text; - SherpaOnnxDestroyOnlineRecognizer(r); + SherpaOnnxDestroyOnlineRecognizerResult(r); if (!text.empty() && last_text != text) { // CString str; // str.Format(_T("%s"), Cat(results, text).c_str());