From 8e740e9897834c77e2475790741b330c18e518dc Mon Sep 17 00:00:00 2001
From: season <season4675@gmail.com>
Date: 星期日, 02 七月 2023 19:38:48 +0800
Subject: [PATCH] [funasr-runtime-deploy 0.0.4] streamline the process, and add command line parameters. (#697)
---
egs/wenetspeech/conformer/local/process_opus.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/egs/wenetspeech/conformer/local/process_opus.py b/egs/wenetspeech/conformer/local/process_opus.py
index 8628f6c..581953f 100755
--- a/egs/wenetspeech/conformer/local/process_opus.py
+++ b/egs/wenetspeech/conformer/local/process_opus.py
@@ -65,7 +65,7 @@
start = int(start_time_list[i] * sample_rate)
end = int(end_time_list[i] * sample_rate)
- target_audio = waveform[:, start:end].transpose(0, 1).contiguous()
+ target_audio = waveform[:, start:end]
torchaudio.save(seg_wav_path, target_audio, sample_rate)
fout.write("{} {}\n".format(utt_id, seg_wav_path))
--
Gitblit v1.9.1