Initial commit: FunASR Speech Recognition Toolkit
Update API Documentation / build-api-docs (push) Has been cancelled
Update API Documentation / build-api-docs (push) Has been cancelled
Add complete FunASR codebase including models, runtime, and documentation.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user