mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
Fx
This commit is contained in:
4
utils.py
4
utils.py
@@ -247,7 +247,9 @@ def single_audio_stream(model,
|
|||||||
states.append(state[0])
|
states.append(state[0])
|
||||||
yield states
|
yield states
|
||||||
|
|
||||||
def collect_speeches(tss, wav):
|
|
||||||
|
def collect_speeches(tss: List(dict),
|
||||||
|
wav: torch.Tensor):
|
||||||
speech_chunks = []
|
speech_chunks = []
|
||||||
for i in tss:
|
for i in tss:
|
||||||
speech_chunks.append(wav[i['start']: i['end']])
|
speech_chunks.append(wav[i['start']: i['end']])
|
||||||
|
|||||||
Reference in New Issue
Block a user