diff --git a/utils.py b/utils.py index bf9f76e..a9edce6 100644 --- a/utils.py +++ b/utils.py @@ -247,7 +247,9 @@ def single_audio_stream(model, states.append(state[0]) yield states -def collect_speeches(tss, wav): + +def collect_speeches(tss: List(dict), + wav: torch.Tensor): speech_chunks = [] for i in tss: speech_chunks.append(wav[i['start']: i['end']])