嘉渊
2023-05-25 27a3d1855d8333596d8c548898186fec41c033a6
update repo
1个文件已修改
2 ■■■ 已修改文件
egs/wenetspeech/conformer/local/process_opus.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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))