You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
944 B
50 lines
944 B
3 years ago
|
# Examples for SpeechX
|
||
|
|
||
2 years ago
|
> `u2pp_ol` is recommended.
|
||
|
|
||
|
* `u2pp_ol` - u2++ streaming asr test under `aishell-1` test dataset.
|
||
3 years ago
|
* `ds2_ol` - ds2 streaming test under `aishell-1` test dataset.
|
||
3 years ago
|
|
||
2 years ago
|
|
||
3 years ago
|
## How to run
|
||
3 years ago
|
|
||
2 years ago
|
### Create env
|
||
|
|
||
|
Using `tools/evn.sh` under `speechx` to create python env.
|
||
|
|
||
|
```
|
||
|
bash tools/env.sh
|
||
|
```
|
||
|
|
||
|
Source env before play with example.
|
||
|
```
|
||
|
. venv/bin/activate
|
||
|
```
|
||
|
|
||
|
### Play with example
|
||
|
|
||
|
`run.sh` is the entry point for every example.
|
||
3 years ago
|
|
||
2 years ago
|
Example to play `u2pp_ol`:
|
||
3 years ago
|
|
||
|
```
|
||
2 years ago
|
pushd u2pp_ol/wenetspeech
|
||
|
bash run.sh --stop_stage 4
|
||
3 years ago
|
```
|
||
3 years ago
|
|
||
3 years ago
|
## Display Model with [Netron](https://github.com/lutzroeder/netron)
|
||
3 years ago
|
|
||
2 years ago
|
If you have a model, we can using this commnd to show model graph.
|
||
|
|
||
|
For example:
|
||
3 years ago
|
```
|
||
|
pip install netron
|
||
|
netron exp/deepspeech2_online/checkpoints/avg_1.jit.pdmodel --port 8022 --host 10.21.55.20
|
||
|
```
|
||
3 years ago
|
|
||
3 years ago
|
## For Developer
|
||
|
|
||
3 years ago
|
> Reminder: Only for developer, make sure you know what's it.
|
||
3 years ago
|
|
||
3 years ago
|
* codelab - for speechx developer, using for test.
|