From b71771495142cdc5545533f8d3be9dd22caa6a8b Mon Sep 17 00:00:00 2001
From: 北念 <lzr265946@alibaba-inc.com>
Date: 星期五, 20 十月 2023 09:53:47 +0800
Subject: [PATCH] add __init__.py

---
 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