mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Update infer_online.py
This commit is contained in:
parent
85566dbb2a
commit
798dba40e1
@ -8,9 +8,10 @@ if __name__ == '__main__':
|
||||
inference_pipline = pipeline(
|
||||
task=Tasks.voice_activity_detection,
|
||||
model="damo/speech_fsmn_vad_zh-cn-8k-common",
|
||||
model_revision='v1.1.9',
|
||||
model_revision='v1.2.0',
|
||||
output_dir='./output_dir',
|
||||
batch_size=1,
|
||||
mode='online',
|
||||
)
|
||||
speech, sample_rate = soundfile.read("./vad_example_8k.wav")
|
||||
speech_length = speech.shape[0]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user