From 591828a66462acfdb8e14db52f7d1bc5ae0caca2 Mon Sep 17 00:00:00 2001 From: KP <109694228@qq.com> Date: Wed, 8 Dec 2021 21:10:21 +0800 Subject: [PATCH] Update asr and audio tagging demo. --- demos/audio_tagging/README.md | 6 +++--- demos/speech_recognition/README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demos/audio_tagging/README.md b/demos/audio_tagging/README.md index 951d06ea..d954ddfb 100644 --- a/demos/audio_tagging/README.md +++ b/demos/audio_tagging/README.md @@ -59,13 +59,13 @@ wget https://paddlespeech.bj.bcebos.com/PaddleAudio/cat.wav https://paddlespeech cls_executor = CLSExecutor() result = cls_executor( - model_type='panns_cnn14', - cfg_path=None, # Set `cfg_path` and `ckpt_path` to None to use pretrained model. + model='panns_cnn14', + config=None, # Set `config` and `ckpt_path` to None to use pretrained model. label_file=None, ckpt_path=None, audio_file='./cat.wav', topk=10, - device=paddle.get_device(), ) + device=paddle.get_device()) print('CLS Result: \n{}'.format(result)) ``` Output: diff --git a/demos/speech_recognition/README.md b/demos/speech_recognition/README.md index 073c0452..891c7b9f 100644 --- a/demos/speech_recognition/README.md +++ b/demos/speech_recognition/README.md @@ -52,7 +52,7 @@ wget https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespeech. model='conformer_wenetspeech', lang='zh', sample_rate=16000, - config=None, # Set `conf` and `ckpt_path` to None to use pretrained model. + config=None, # Set `config` and `ckpt_path` to None to use pretrained model. ckpt_path=None, audio_file='./zh.wav', device=paddle.get_device())