From 664dfaf1bcaffc177ac50b11c2a1db6bf920f7f0 Mon Sep 17 00:00:00 2001
From: Yabin Li <wucong.lyb@alibaba-inc.com>
Date: 星期三, 05 七月 2023 18:53:06 +0800
Subject: [PATCH] Update funasr_wss_client.py
---
funasr/runtime/python/websocket/funasr_wss_client.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/funasr/runtime/python/websocket/funasr_wss_client.py b/funasr/runtime/python/websocket/funasr_wss_client.py
index d91d9d1..fad12ce 100644
--- a/funasr/runtime/python/websocket/funasr_wss_client.py
+++ b/funasr/runtime/python/websocket/funasr_wss_client.py
@@ -296,9 +296,9 @@
wav_name = wav_splits[0] if len(wav_splits) > 1 else "demo"
wav_path = wav_splits[1] if len(wav_splits) > 1 else wav_splits[0]
audio_type = os.path.splitext(wav_path)[-1].lower()
- if audio_type not in SUPPORT_AUDIO_TYPE_SETS:
- raise NotImplementedError(
- f'Not supported audio type: {audio_type}')
+ # if audio_type not in SUPPORT_AUDIO_TYPE_SETS:
+ # raise NotImplementedError(
+ # f'Not supported audio type: {audio_type}')
total_len = len(wavs)
if total_len >= args.thread_num:
--
Gitblit v1.9.1