Views
No views yet
speechbrain/asr-crdnn-rnnlm-librispeech) to extract features from the input audio, then maps these features to an intent and slot labels using a beam search.example_fsc.wav file included here as follows:1from speechbrain.inference.SLU import EndToEndSLU
2slu = EndToEndSLU.from_hparams("speechbrain/slu-direct-fluent-speech-commands-librispeech-asr")
3# Text: "Please, turn on the light of the bedroom"
4slu.decode_file("speechbrain/slu-direct-fluent-speech-commands-librispeech-asr/example_fsc.wav")
5#>>> '{"action:" "activate"| "object": "lights"| "location": "bedroom"}'run_opts={"device":"cuda"} when calling the from_hparams method.git clone https://github.com/speechbrain/speechbrain/cd speechbrain
pip install -r requirements.txt
pip install -e .cd recipes/fluent-speech-commands
python train.py hparams/train.yaml --data_folder=your_data_folder1@misc{speechbrain,
2 title={{SpeechBrain}: A General-Purpose Speech Toolkit},
3 author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and François Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
4 year={2021},
5 eprint={2106.04624},
6 archivePrefix={arXiv},
7 primaryClass={eess.AS},
8 note={arXiv:2106.04624}
9}1@inproceedings{fluent,
2 author = {Loren Lugosch and
3 Mirco Ravanelli and
4 Patrick Ignoto and
5 Vikrant Singh Tomar and
6 Yoshua Bengio},
7 editor = {Gernot Kubin and
8 Zdravko Kacic},
9 title = {Speech Model Pre-Training for End-to-End Spoken Language Understanding},
10 booktitle = {Proc. of Interspeech},
11 pages = {814--818},
12 year = {2019},
13}