sangeet2020 commited on
Commit
daca7ae
1 Parent(s): 39a3709

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +124 -1
README.md CHANGED
@@ -1,3 +1,126 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language: "de"
3
+ thumbnail:
4
+ tags:
5
+ - automatic-speech-recognition
6
+ - CTC
7
+ - NLL
8
+ - Attention
9
+ - pytorch
10
+ - speechbrain
11
+ license: "apache-2.0"
12
+ datasets:
13
+ - common_voice
14
+ metrics:
15
+ - wer
16
+ - cer
17
  ---
18
+
19
+ <iframe src="https://ghbtns.com/github-btn.html?user=speechbrain&repo=speechbrain&type=star&count=true&size=large&v=2" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
20
+ <br/><br/>
21
+
22
+ # CRDNN with CTC/Attention trained on CommonVoice 10.0 German and RNNLM trained (with LM)
23
+ This repository provides all the necessary tools to perform automatic speech
24
+ recognition from an end-to-end system pretrained on CommonVoice (German Language) within
25
+ SpeechBrain. For a better experience, we encourage you to learn more about
26
+ [SpeechBrain](https://speechbrain.github.io).
27
+ The performance of the model is the following:
28
+
29
+ | Release | Test CER | Test WER | GPUs |
30
+ |:-------------:|:--------------:|:--------------:| :--------:|
31
+ | 15.08.23 | 2.85 | 7.92 | 1xRTXA6000 48GB |
32
+
33
+
34
+ ## Pipeline description
35
+ This ASR system is composed with 3 different but linked blocks:
36
+
37
+ - Tokenizer (unigram) that transforms words into subword units and trained with
38
+ the train transcriptions of LibriSpeech.
39
+ - Neural language model (RNNLM) trained on the 17M sentences combining Tuda-De2 (8M sents), Leipzig news corpus (9M sents), and train transcripts of the CommonVoice corpus.
40
+ - Acoustic model (CRDNN + CTC/Attention). The CRDNN architecture is made of
41
+ N blocks of convolutional neural networks with normalisation and pooling on the
42
+ frequency domain. Then, a bidirectional LSTM is connected to a final DNN to obtain
43
+ the final acoustic representation that is given to the CTC and attention decoders.
44
+
45
+ The system is trained with recordings sampled at 16kHz (single channel).
46
+ The code will automatically normalize your audio (i.e., resampling + mono channel selection) when calling *transcribe_file* if needed.
47
+
48
+ ## Install SpeechBrain
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 German)
59
+
60
+ ```python
61
+ from speechbrain.pretrained import EncoderDecoderASR
62
+ asr_model = EncoderDecoderASR.from_hparams(source="sangeet2020/asr-crdnn-rnnlm-commonvoice-10.0-de", savedir="pretrained_models/speechbrain/asr-crdnn-rnnlm-commonvoice-10.0-de")
63
+ asr_model.transcribe_file("speechbrain/speechbrain/asr-crdnn-rnnlm-commonvoice-10.0-de/example-de.wav")
64
+ ```
65
+
66
+ ### Inference on GPU
67
+
68
+ To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
69
+
70
+ ## Parallel Inference on a Batch
71
+
72
+ Please, [see this Colab notebook](https://colab.research.google.com/drive/1hX5ZI9S4jHIjahFCZnhwwQmFoGAi3tmu?usp=sharing) to figure out how to transcribe in parallel a batch of input sentences using a pre-trained model.
73
+
74
+ ### Training
75
+
76
+ The model was trained with SpeechBrain (986a2175).
77
+ To train it from scratch follows these steps:
78
+
79
+ 1. Clone SpeechBrain:
80
+
81
+ ```bash
82
+ git clone https://github.com/speechbrain/speechbrain/
83
+ ```
84
+
85
+ 2. Install it:
86
+
87
+ ```
88
+ cd speechbrain
89
+ pip install -r requirements.txt
90
+ pip install -e .
91
+ ```
92
+
93
+ 3. Run Training:
94
+
95
+ ```
96
+ cd recipes/CommonVoice/ASR/seq2seq
97
+ python train.py hparams/train_de.yaml --data_folder=your_data_folder
98
+ ```
99
+
100
+ You can find our training results (models, logs, etc) [here](https://www.dropbox.com/sh/zgatirb118f79ef/AACmjh-D94nNDWcnVI4Ef5K7a?dl=0)
101
+
102
+ ### Limitations
103
+
104
+ The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.
105
+
106
+ # **About SpeechBrain**
107
+
108
+ - Website: https://speechbrain.github.io/
109
+ - Code: https://github.com/speechbrain/speechbrain/
110
+ - HuggingFace: https://huggingface.co/speechbrain/
111
+
112
+ # **Citing SpeechBrain**
113
+
114
+ Please, cite SpeechBrain if you use it for your research or business.
115
+
116
+ ```bibtex
117
+ @misc{speechbrain,
118
+ title={{SpeechBrain}: A General-Purpose Speech Toolkit},
119
+ 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},
120
+ year={2021},
121
+ eprint={2106.04624},
122
+ archivePrefix={arXiv},
123
+ primaryClass={eess.AS},
124
+ note={arXiv:2106.04624}
125
+ }
126
+ ```