From ed25726d2992f8a395a8d4ed9bd5e85d231c471e Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: 星期五, 28 四月 2023 17:00:56 +0800
Subject: [PATCH] add offline websocket support

---
 funasr/tasks/vad.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/funasr/tasks/vad.py b/funasr/tasks/vad.py
index 1c1d4e0..d07acf1 100644
--- a/funasr/tasks/vad.py
+++ b/funasr/tasks/vad.py
@@ -344,8 +344,8 @@
 
         with config_file.open("r", encoding="utf-8") as f:
             args = yaml.safe_load(f)
-        if cmvn_file is not None:
-            args["cmvn_file"] = cmvn_file
+        #if cmvn_file is not None:
+        args["cmvn_file"] = cmvn_file
         args = argparse.Namespace(**args)
         model = cls.build_model(args)
         model.to(device)

--
Gitblit v1.9.1