Titouan commited on
Commit
9a35b05
2 Parent(s): ec90d09 bb30032

Merge branch 'main' of https://huggingface.co/speechbrain/asr-crdnn-rnnlm-librispeech into main

Browse files
Files changed (2) hide show
  1. README.md +7 -6
  2. example.wav +0 -0
README.md CHANGED
@@ -2,10 +2,11 @@
2
  language: "en"
3
  thumbnail:
4
  tags:
5
- - ASR
6
  - CTC
7
  - Attention
8
  - pytorch
 
9
  license: "apache-2.0"
10
  datasets:
11
  - librispeech
@@ -48,19 +49,19 @@ installed.
48
  First of all, please install SpeechBrain with the following command:
49
 
50
  ```
51
- pip install \\we hide ! SpeechBrain is still private :p
52
  ```
53
 
54
  Please notice that we encourage you to read our tutorials and learn more about
55
  [SpeechBrain](https://speechbrain.github.io).
56
 
57
- ### Transcribing your own audio files
58
 
59
  ```python
60
  from speechbrain.pretrained import EncoderDecoderASR
61
 
62
- asr_model = EncoderDecoderASR.from_hparams(source="speechbrain/asr-crdnn-rnnlm-librispeech")
63
- asr_model.transcribe_file("path_to_your_file.wav")
64
 
65
  ```
66
 
@@ -73,6 +74,6 @@ asr_model.transcribe_file("path_to_your_file.wav")
73
  year = {2021},
74
  publisher = {GitHub},
75
  journal = {GitHub repository},
76
- howpublished = {\url{https://github.com/speechbrain/speechbrain}},
77
  }
78
  ```
 
2
  language: "en"
3
  thumbnail:
4
  tags:
5
+ - automatic-speech-recognition
6
  - CTC
7
  - Attention
8
  - pytorch
9
+ - speechbrain
10
  license: "apache-2.0"
11
  datasets:
12
  - librispeech
 
49
  First of all, please install SpeechBrain with the following command:
50
 
51
  ```
52
+ pip install speechbrain
53
  ```
54
 
55
  Please notice that we encourage you to read our tutorials and learn more about
56
  [SpeechBrain](https://speechbrain.github.io).
57
 
58
+ ### Transcribing your own audio files (in English)
59
 
60
  ```python
61
  from speechbrain.pretrained import EncoderDecoderASR
62
 
63
+ asr_model = EncoderDecoderASR.from_hparams(source="speechbrain/asr-crdnn-rnnlm-librispeech", savedir="pretrained_models/asr-crdnn-rnnlm-librispeech")
64
+ asr_model.transcribe_file('speechbrain/asr-crdnn-rnnlm-librispeech/example.wav')
65
 
66
  ```
67
 
 
74
  year = {2021},
75
  publisher = {GitHub},
76
  journal = {GitHub repository},
77
+ howpublished = {\\url{https://github.com/speechbrain/speechbrain}},
78
  }
79
  ```
example.wav ADDED
Binary file (104 kB). View file