正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -525,7 +525,7 @@ int CStreamingSpeechRecognitionDlg::RunThread() { | @@ -525,7 +525,7 @@ int CStreamingSpeechRecognitionDlg::RunThread() { | ||
| 525 | 525 | ||
| 526 | auto r = SherpaOnnxGetOnlineStreamResult(recognizer_, stream_); | 526 | auto r = SherpaOnnxGetOnlineStreamResult(recognizer_, stream_); |
| 527 | std::string text = r->text; | 527 | std::string text = r->text; |
| 528 | - SherpaOnnxDestroyOnlineRecognizer(r); | 528 | + SherpaOnnxDestroyOnlineRecognizerResult(r); |
| 529 | if (!text.empty() && last_text != text) { | 529 | if (!text.empty() && last_text != text) { |
| 530 | // CString str; | 530 | // CString str; |
| 531 | // str.Format(_T("%s"), Cat(results, text).c_str()); | 531 | // str.Format(_T("%s"), Cat(results, text).c_str()); |
-
请 注册 或 登录 后发表评论