提交 591828a6 编写于 作者: K KP

Update asr and audio tagging demo.

上级 6e5a0ed2
......@@ -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:
......
......@@ -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())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册