mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update repo
This commit is contained in:
parent
8d5f061538
commit
89ddc6430d
@ -66,7 +66,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.export(seg_wav_path, format="wav")
|
||||
torchaudio.save(seg_wav_path, target_audio, sample_rate)
|
||||
|
||||
fout.write("{} {}\n".format(utt_id, seg_wav_path))
|
||||
if i % step == 0:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user