From 4e95ad3c4985dce64009ceeee70e30f9742418cd Mon Sep 17 00:00:00 2001
From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com>
Date: 星期四, 15 六月 2023 16:41:36 +0800
Subject: [PATCH] For python ws client long wav not recv asr result bug (#633)
---
funasr/utils/wav_utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/funasr/utils/wav_utils.py b/funasr/utils/wav_utils.py
index 4a764a9..ebb80d2 100644
--- a/funasr/utils/wav_utils.py
+++ b/funasr/utils/wav_utils.py
@@ -299,7 +299,7 @@
wav_dict = {}
for line in wav_lines:
parts = line.strip().split()
- if len(parts) < 2:
+ if len(parts) != 2:
continue
sample_name, wav_path = parts
wav_dict[sample_name] = wav_path
--
Gitblit v1.9.1