From 0ccf05b850299a9f76af1fb416e7454374ba15f3 Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: 星期六, 06 五月 2023 16:48:41 +0800
Subject: [PATCH] fix bug for python websocket
---
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