zhifu gao
2024-04-26 e971e000ad582c767ae44c9650470899f5bb46d0
examples/industrial_data_pretraining/fsmn_vad_streaming/demo.py
@@ -9,6 +9,9 @@
model = AutoModel(model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch")
mm = model.model
for p in mm.parameters():
    print(f"{p.numel()}")
res = model.generate(input=wav_file)
print(res)
# [[beg1, end1], [beg2, end2], .., [begN, endN]]