fix building MFC examples (#1178)
This commit is contained in:
@@ -525,7 +525,7 @@ int CStreamingSpeechRecognitionDlg::RunThread() {
|
|||||||
|
|
||||||
auto r = SherpaOnnxGetOnlineStreamResult(recognizer_, stream_);
|
auto r = SherpaOnnxGetOnlineStreamResult(recognizer_, stream_);
|
||||||
std::string text = r->text;
|
std::string text = r->text;
|
||||||
SherpaOnnxDestroyOnlineRecognizer(r);
|
SherpaOnnxDestroyOnlineRecognizerResult(r);
|
||||||
if (!text.empty() && last_text != text) {
|
if (!text.empty() && last_text != text) {
|
||||||
// CString str;
|
// CString str;
|
||||||
// str.Format(_T("%s"), Cat(results, text).c_str());
|
// str.Format(_T("%s"), Cat(results, text).c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user