speechbrainteam
commited on
Commit
•
822b2e6
1
Parent(s):
5da8e5e
Update README.md
Browse files
README.md
CHANGED
@@ -26,11 +26,11 @@ The model uses an ASR model trained on LibriSpeech ([`speechbrain/asr-crdnn-rnnl
|
|
26 |
|
27 |
You can try the model on the `example_fsc.wav` file included here as follows:
|
28 |
```
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
'{"action:" "activate"| "object": "lights"| "location": "bedroom"}'
|
34 |
```
|
35 |
### Inference on GPU
|
36 |
To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
|
@@ -69,7 +69,7 @@ title = {SpeechBrain},
|
|
69 |
year = {2021},
|
70 |
publisher = {GitHub},
|
71 |
journal = {GitHub repository},
|
72 |
-
howpublished = {
|
73 |
}
|
74 |
```
|
75 |
|
|
|
26 |
|
27 |
You can try the model on the `example_fsc.wav` file included here as follows:
|
28 |
```
|
29 |
+
from speechbrain.pretrained import EndToEndSLU
|
30 |
+
slu = EndToEndSLU.from_hparams("/network/tmp1/ravanelm/slu-direct-fluent-speech-commands-librispeech-asr")
|
31 |
+
# Text: "Please, turn on the light of the bedroom"
|
32 |
+
slu.decode_file("/network/tmp1/ravanelm/slu-direct-fluent-speech-commands-librispeech-asr/example_fsc.wav")
|
33 |
+
>>> '{"action:" "activate"| "object": "lights"| "location": "bedroom"}'
|
34 |
```
|
35 |
### Inference on GPU
|
36 |
To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
|
|
|
69 |
year = {2021},
|
70 |
publisher = {GitHub},
|
71 |
journal = {GitHub repository},
|
72 |
+
howpublished = {\\url{https://github.com/speechbrain/speechbrain}},
|
73 |
}
|
74 |
```
|
75 |
|