|
|
@@ -26,6 +26,7 @@ inference_pipeline = pipeline(
|
|
|
task=Tasks.auto_speech_recognition,
|
|
|
model='damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online',
|
|
|
model_revision='v1.0.6',
|
|
|
+ update_model='v1.0.6',
|
|
|
mode='paraformer_streaming'
|
|
|
)
|
|
|
import soundfile
|
|
|
@@ -53,6 +54,7 @@ inference_pipeline = pipeline(
|
|
|
task=Tasks.auto_speech_recognition,
|
|
|
model='damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online',
|
|
|
model_revision='v1.0.6',
|
|
|
+ update_model='v1.0.6',
|
|
|
mode="paraformer_fake_streaming"
|
|
|
)
|
|
|
audio_in='https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav'
|