From b9bcf1f093c3053fdc4e2cf4a1d38e27bbf429fb Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 19 十月 2023 14:03:48 +0800
Subject: [PATCH] docs

---
 funasr/runtime/websocket/bin/funasr-wss-server.cpp |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/funasr/runtime/websocket/bin/funasr-wss-server.cpp b/funasr/runtime/websocket/bin/funasr-wss-server.cpp
index e64667b..55ce07b 100644
--- a/funasr/runtime/websocket/bin/funasr-wss-server.cpp
+++ b/funasr/runtime/websocket/bin/funasr-wss-server.cpp
@@ -195,11 +195,17 @@
                 size_t found = s_asr_path.find("speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404");
                 if (found != std::string::npos) {
                     model_path["model-revision"]="v1.2.4";
-                }else{
-                    found = s_asr_path.find("speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404");
-                    if (found != std::string::npos) {
-                        model_path["model-revision"]="v1.0.5";
-                    }
+                }
+
+                found = s_asr_path.find("speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404");
+                if (found != std::string::npos) {
+                    model_path["model-revision"]="v1.0.5";
+                }
+
+                found = s_asr_path.find("speech_paraformer-large_asr_nat-en-16k-common-vocab10020");
+                if (found != std::string::npos) {
+                    model_path["model-revision"]="v1.0.0";
+                    s_itn_path="";
                 }
 
                 // modelscope

--
Gitblit v1.9.1