From b8909ab5b94e293605a9e04f42874e0320773a49 Mon Sep 17 00:00:00 2001
From: andyweiqiu <andywei_89@163.COM>
Date: 星期四, 21 九月 2023 09:45:24 +0800
Subject: [PATCH] itn on iOS is not supported for the time being (#969)
---
funasr/runtime/onnxruntime/src/offline-stream.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/funasr/runtime/onnxruntime/src/offline-stream.cpp b/funasr/runtime/onnxruntime/src/offline-stream.cpp
index ae09a50..50d0188 100644
--- a/funasr/runtime/onnxruntime/src/offline-stream.cpp
+++ b/funasr/runtime/onnxruntime/src/offline-stream.cpp
@@ -84,7 +84,7 @@
use_punc = true;
}
}
-
+#if !defined(__APPLE__)
// Optional: ITN, here we just support language_type=MandarinEnglish
if(model_path.find(ITN_DIR) != model_path.end() && model_path.at(ITN_DIR) != ""){
string itn_tagger_path = PathAppend(model_path.at(ITN_DIR), ITN_TAGGER_NAME);
@@ -100,6 +100,7 @@
use_itn = true;
}
}
+#endif
}
OfflineStream *CreateOfflineStream(std::map<std::string, std::string>& model_path, int thread_num)
--
Gitblit v1.9.1