From eba1fccfa07665ed9cada19cfab6cd342e03112e Mon Sep 17 00:00:00 2001
From: Shi Xian <40013335+R1ckShi@users.noreply.github.com>
Date: 星期二, 16 一月 2024 11:34:04 +0800
Subject: [PATCH] Merge pull request #1250 from alibaba-damo-academy/funasr1.0

---
 runtime/python/websocket/funasr_wss_client.py |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/runtime/python/websocket/funasr_wss_client.py b/runtime/python/websocket/funasr_wss_client.py
index e469319..92dc548 100644
--- a/runtime/python/websocket/funasr_wss_client.py
+++ b/runtime/python/websocket/funasr_wss_client.py
@@ -186,13 +186,6 @@
         if wav_path.endswith(".pcm"):
             with open(wav_path, "rb") as f:
                 audio_bytes = f.read()
-        elif wav_path.endswith(".wav"):
-            import wave
-            with wave.open(wav_path, "rb") as wav_file:
-                params = wav_file.getparams()
-                sample_rate = wav_file.getframerate()
-                frames = wav_file.readframes(wav_file.getnframes())
-                audio_bytes = bytes(frames)
         else:
             wav_format = "others"
             with open(wav_path, "rb") as f:

--
Gitblit v1.9.1