Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

update repo

嘉渊27a3d1855d83
diff --git a/egs/wenetspeech/conformer/local/process_opus.py b/egs/wenetspeech/conformer/local/process_opus.py
index 8628f6ca2..581953fc3 100755
--- a/egs/wenetspeech/conformer/local/process_opus.py
+++ b/egs/wenetspeech/conformer/local/process_opus.py
@@ -65,7 +65,7 @@ def output(output_wav_scp, utt_list, seg_path_list, start_time_list, end_time_li
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))