diff --git a/demos/audio_tagging/README.md b/demos/audio_tagging/README.md index 951d06ead7f22dbc9c17ff75b4aff6869bb814fc..d954ddfb6339cc7bedd1b4f80cc1636ea8e3fc55 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 073c0452cc6f543425b1a790bfcd17deb05338b6..891c7b9f62bffe5e2bc8744f0447d8b70fde7968 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())