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
2 years ago
|
# Examples for SpeechX
|
||
|
|
||
2 years ago
|
> `u2pp_ol` is recommended.
|
||
|
|
||
|
* `u2pp_ol` - u2++ streaming asr test under `aishell-1` test dataset.
|
||
2 years ago
|
* `ds2_ol` - ds2 streaming test under `aishell-1` test dataset.
|
||
2 years ago
|
|
||
2 years ago
|
|
||
2 years ago
|
## How to run
|
||
2 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.
|
||
2 years ago
|
|
||
2 years ago
|
Example to play `u2pp_ol`:
|
||
2 years ago
|
|
||
|
```
|
||
2 years ago
|
pushd u2pp_ol/wenetspeech
|
||
|
bash run.sh --stop_stage 4
|
||
2 years ago
|
```
|
||
2 years ago
|
|
||
2 years ago
|
## Display Model with [Netron](https://github.com/lutzroeder/netron)
|
||
2 years ago
|
|
||
2 years ago
|
If you have a model, we can using this commnd to show model graph.
|
||
|
|
||
|
For example:
|
||
2 years ago
|
```
|
||
|
pip install netron
|
||
|
netron exp/deepspeech2_online/checkpoints/avg_1.jit.pdmodel --port 8022 --host 10.21.55.20
|
||
|
```
|
||
2 years ago
|
|
||
2 years ago
|
## For Developer
|
||
|
|
||
2 years ago
|
> Reminder: Only for developer, make sure you know what's it.
|
||
2 years ago
|
|
||
2 years ago
|
* codelab - for speechx developer, using for test.
|