From 55732c93977518f51b0c0fd0daf46e15d88cb48e Mon Sep 17 00:00:00 2001
From: GlocKieHuan <77883010+GlocKieHuan@users.noreply.github.com>
Date: 星期四, 17 八月 2023 13:47:58 +0800
Subject: [PATCH] Add cshape websocket client (#846)
---
funasr/bin/ss_inference_launch.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/funasr/bin/ss_inference_launch.py b/funasr/bin/ss_inference_launch.py
index bab68ad..64503a0 100644
--- a/funasr/bin/ss_inference_launch.py
+++ b/funasr/bin/ss_inference_launch.py
@@ -104,7 +104,7 @@
ss_results = speech_separator(**batch)
for spk in range(num_spks):
- sf.write(os.path.join(output_path, keys[0].replace('.wav', '_s'+str(spk+1)+'.wav')), ss_results[spk], sample_rate)
+ sf.write(os.path.join(output_path, keys[0] + '_s' + str(spk+1)+'.wav'), ss_results[spk], sample_rate)
torch.cuda.empty_cache()
return ss_results
--
Gitblit v1.9.1