mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
11 lines
316 B
Python
11 lines
316 B
Python
from funasr_onnx import Fsmn_vad
|
|
from pathlib import Path
|
|
|
|
model_dir = "damo/speech_fsmn_vad_zh-cn-16k-common-pytorch"
|
|
wav_path = '{}/.cache/modelscope/hub/damo/speech_fsmn_vad_zh-cn-16k-common-pytorch/example/vad_example.wav'.format(Path.home())
|
|
|
|
model = Fsmn_vad(model_dir)
|
|
|
|
result = model(wav_path)
|
|
print(result)
|