From e24dbdc496debec225414d4d2c760f5775e64f2a Mon Sep 17 00:00:00 2001
From: 天地 <tiandiweizun@gmail.com>
Date: 星期三, 26 三月 2025 13:44:41 +0800
Subject: [PATCH] 感觉应该从文件读取更合适,因为上面判断了文件存在,且可以读取,如果本身是文本的话,下面也会有逻辑进行处理 (#2452)

---
 runtime/websocket/bin/funasr-wss-server-2pass.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/runtime/websocket/bin/funasr-wss-server-2pass.cpp b/runtime/websocket/bin/funasr-wss-server-2pass.cpp
index 9c59254..edf614a 100644
--- a/runtime/websocket/bin/funasr-wss-server-2pass.cpp
+++ b/runtime/websocket/bin/funasr-wss-server-2pass.cpp
@@ -276,6 +276,12 @@
             s_itn_path="";
             s_lm_path="";
         }
+        found = s_offline_asr_path.find(MODEL_SVS);
+        if (found != std::string::npos) {
+            model_path["model-revision"]="v2.0.5";
+            s_lm_path="";
+            model_path[LM_DIR]="";
+        }        
 
         if (access(s_offline_asr_path.c_str(), F_OK) == 0) {
           // local

--
Gitblit v1.9.1