|
|
@ -154,18 +154,18 @@ CUDA_VISIBLE_DEVICES= ./local/test.sh conf/deepspeech2.yaml exp/deepspeech2/chec
|
|
|
|
You can get the pretrained transformer or conformer using the scripts below:
|
|
|
|
You can get the pretrained transformer or conformer using the scripts below:
|
|
|
|
```bash
|
|
|
|
```bash
|
|
|
|
Deepspeech2 offline:
|
|
|
|
Deepspeech2 offline:
|
|
|
|
wget https://paddlespeech.bj.bcebos.com/s2t/aishell/asr0/ds2.model.tar.gz
|
|
|
|
wget https://paddlespeech.bj.bcebos.com/s2t/aishell/asr0/asr0_deepspeech2_aishell_ckpt_0.1.1.model.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
Deepspeech2 online:
|
|
|
|
Deepspeech2 online:
|
|
|
|
wget https://paddlespeech.bj.bcebos.com/s2t/aishell/asr0/aishell_ds2_online_cer8.00_release.tar.gz
|
|
|
|
wget https://paddlespeech.bj.bcebos.com/s2t/aishell/asr0/asr0_deepspeech2_online_aishell_ckpt_0.2.0.model.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
using the `tar` scripts to unpack the model and then you can use the script to test the model.
|
|
|
|
using the `tar` scripts to unpack the model and then you can use the script to test the model.
|
|
|
|
|
|
|
|
|
|
|
|
For example:
|
|
|
|
For example:
|
|
|
|
```
|
|
|
|
```
|
|
|
|
wget https://paddlespeech.bj.bcebos.com/s2t/aishell/asr0/ds2.model.tar.gz
|
|
|
|
wget https://paddlespeech.bj.bcebos.com/s2t/aishell/asr0/asr0_deepspeech2_aishell_ckpt_0.1.1.model.tar.gz
|
|
|
|
tar xzvf ds2.model.tar.gz
|
|
|
|
tar xzvf asr0_deepspeech2_aishell_ckpt_0.1.1.model.tar.gz
|
|
|
|
source path.sh
|
|
|
|
source path.sh
|
|
|
|
# If you have process the data and get the manifest file, you can skip the following 2 steps
|
|
|
|
# If you have process the data and get the manifest file, you can skip the following 2 steps
|
|
|
|
bash local/data.sh --stage -1 --stop_stage -1
|
|
|
|
bash local/data.sh --stage -1 --stop_stage -1
|
|
|
@ -209,8 +209,8 @@ if [ ${stage} -le 6 ] && [ ${stop_stage} -ge 6 ]; then
|
|
|
|
```
|
|
|
|
```
|
|
|
|
you can train the model by yourself, or you can download the pretrained model by the script below:
|
|
|
|
you can train the model by yourself, or you can download the pretrained model by the script below:
|
|
|
|
```bash
|
|
|
|
```bash
|
|
|
|
wget https://paddlespeech.bj.bcebos.com/s2t/aishell/asr0/ds2.model.tar.gz
|
|
|
|
wget https://paddlespeech.bj.bcebos.com/s2t/aishell/asr0/asr0_deepspeech2_aishell_ckpt_0.1.1.model.tar.gz
|
|
|
|
tar xzvf ds2.model.tar.gz
|
|
|
|
tar xzvf asr0_deepspeech2_aishell_ckpt_0.1.1.model.tar.gz
|
|
|
|
```
|
|
|
|
```
|
|
|
|
You can download the audio demo:
|
|
|
|
You can download the audio demo:
|
|
|
|
```bash
|
|
|
|
```bash
|
|
|
|