fix wav2vec2 demos, test=doc

pull/2674/head
tianhao zhang 3 years ago
parent 94a487bd81
commit 8951670834

@ -82,7 +82,7 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/en.wav
Output:
```bash
ASR Result:
我认为跑步最重要的就是给我带来了身体健康
i knocked at the door on the ancient side of the building
Representation:
Tensor(shape=[1, 164, 1024], dtype=float32, place=Place(gpu:0), stop_gradient=True,

@ -36,9 +36,9 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/en.wav
```
参数:
- `input`(必须输入):用于识别的音频文件。
- `model`ASR 任务的模型,默认值:`conformer_wenetspeech`。
- `model`ASR 任务的模型,默认值:`wav2vec2ASR_librispeech`。
- `task`:输出类别,默认值:`asr`。
- `lang`:模型语言,默认值:`zh`。
- `lang`:模型语言,默认值:`en`。
- `sample_rate`:音频采样率,默认值:`16000`。
- `config`ASR 任务的参数文件,若不设置则使用预训练模型中的默认配置,默认值:`None`。
- `ckpt_path`:模型参数文件,若不设置则下载预训练模型使用,默认值:`None`。

Loading…
Cancel
Save