mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update repo
This commit is contained in:
parent
89ddc6430d
commit
27a3d1855d
@ -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)
|
start = int(start_time_list[i] * sample_rate)
|
||||||
end = int(end_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)
|
torchaudio.save(seg_wav_path, target_audio, sample_rate)
|
||||||
|
|
||||||
fout.write("{} {}\n".format(utt_id, seg_wav_path))
|
fout.write("{} {}\n".format(utt_id, seg_wav_path))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user