mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
add scripts for simu data
This commit is contained in:
parent
68b87c9140
commit
56a32ce5e3
@ -75,7 +75,7 @@ def calc_labels(spk_turns, spk_list, length, n_spk, remove_sil=False, max_overla
|
||||
sr=None, frame_shift=0.01):
|
||||
frame_shift = int(frame_shift * sr)
|
||||
num_frame = int((float(length) + (float(frame_shift) / 2)) / frame_shift)
|
||||
multi_label = np.zeros([n_spk, num_frame], dtype=int)
|
||||
multi_label = np.zeros([n_spk, num_frame], dtype=np.int32)
|
||||
for _, st, dur, spk in spk_turns:
|
||||
idx = spk_list.index(spk)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user