Commit ·
312bb08
1
Parent(s): 4206206
update readme
Browse files
README.md
CHANGED
|
@@ -28,7 +28,21 @@ cd egs2/owsm_v3.1/s2t1
|
|
| 28 |
./run.sh --skip_data_prep false --skip_train true --download_model espnet/owsm_v3.2
|
| 29 |
```
|
| 30 |
|
|
|
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
## S2T config
|
| 34 |
|
|
|
|
| 28 |
./run.sh --skip_data_prep false --skip_train true --download_model espnet/owsm_v3.2
|
| 29 |
```
|
| 30 |
|
| 31 |
+
## Use this model
|
| 32 |
|
| 33 |
+
You can use this model in your projects with the following code:
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
# make sure espnet is installed: pip install espnet
|
| 37 |
+
from espnet2.bin.s2t_inference import Speech2Text
|
| 38 |
+
|
| 39 |
+
model = Speech2Text.from_pretrained(
|
| 40 |
+
"espnet/owsm_v3.2"
|
| 41 |
+
)
|
| 42 |
+
|
| 43 |
+
speech, rate = soundfile.read("speech.wav")
|
| 44 |
+
text, *_ = model(speech)[0]
|
| 45 |
+
```
|
| 46 |
|
| 47 |
## S2T config
|
| 48 |
|