Update infer_online.py

This commit is contained in:
lingyunfly 2023-03-14 13:12:28 +08:00 committed by GitHub
parent 85566dbb2a
commit 798dba40e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]