dominguesm commited on
Commit
b87ee07
1 Parent(s): 096284e

Upload config

Browse files
Files changed (1) hide show
  1. README.md +102 -0
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - pt
4
+ license: cc-by-4.0
5
+ library_name: nemo
6
+ datasets:
7
+ - mozilla-foundation/common_voice_9_0
8
+ thumbnail: null
9
+ tags:
10
+ - automatic-speech-recognition
11
+ - speech
12
+ - audio
13
+ - CTC
14
+ - QuartzNet
15
+ - Transformer
16
+ - NeMo
17
+ - pytorch
18
+ model-index:
19
+ - name: stt_pt_quartznet15x5_ctc_small
20
+ results: []
21
+
22
+ ---
23
+
24
+
25
+ ## Model Overview
26
+
27
+ This model transcribes speech in lower case Portuguese alphabet along with spaces. It is a "small" versions of QuartzNet-CTC model.
28
+
29
+ ## NVIDIA NeMo: Training
30
+
31
+ To train, fine-tune or play with the model you will need to install [NVIDIA NeMo](https://github.com/NVIDIA/NeMo). We recommend you install it after you've installed latest Pytorch version.
32
+ ```
33
+ pip install nemo_toolkit['all']
34
+ ```
35
+
36
+ ## How to Use this Model
37
+
38
+ The model is available for use in the NeMo toolkit [1], and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.
39
+
40
+ ### Automatically instantiate the model
41
+
42
+ ```python
43
+ import nemo.collections.asr as nemo_asr
44
+ asr_model = nemo_asr.models.ASRModel.from_pretrained("dominguesm/stt_pt_quartznet15x5_ctc_small")
45
+ ```
46
+
47
+ ### Transcribing using Python
48
+ First, let's get a sample
49
+ ```
50
+ wget https://github.com/DominguesM/stt_pt_quartznet15x5_ctc_small/raw/main/audios/common_voice_pt_25555332.mp3
51
+ ```
52
+ Then simply do:
53
+ ```
54
+ asr_model.transcribe(['common_voice_pt_25555332.mp3'])
55
+ ```
56
+
57
+ ### Transcribing many audio files
58
+
59
+ ```shell
60
+ python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py pretrained_name="dominguesm/stt_pt_quartznet15x5_ctc_small" audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
61
+ ```
62
+
63
+ ### Input
64
+
65
+ This model accepts 16000 KHz Mono-channel Audio (wav files) as input.
66
+
67
+ ### Output
68
+
69
+ This model provides transcribed speech as a string for a given audio sample.
70
+
71
+ ## Model Architecture
72
+
73
+ This model are based on the QuartzNet architecture, which is a variant of Jasper that uses 1D time-channel separable convolutional layers in its convolutional residual blocks and are therefore smaller than Jasper models.
74
+
75
+ QuartzNet models take in audio segments and transcribe them to letter, byte pair, or word piece sequences.
76
+
77
+ ## Training
78
+
79
+ All training scripts will be available at: [DominguesM/stt_pt_quartznet15x5_ctc_small](https://github.com/DominguesM/stt_pt_quartznet15x5_ctc_small)
80
+
81
+ **Soon more information**
82
+
83
+
84
+ ### Datasets
85
+
86
+ The model was trained with a part of the Common Voices 9.0 dataset in Portuguese, totaling 26 hours of audio.
87
+
88
+ * Mozilla Common Voice (v9.0)
89
+
90
+ ## Performance
91
+
92
+ **Coming soon**
93
+
94
+ ## Limitations
95
+
96
+ Since this model was trained on publically available speech datasets, the performance of this model might degrade for speech which includes technical terms, or vernacular that the model has not been trained on. The model might also perform worse for accented speech.
97
+
98
+
99
+ ## References
100
+
101
+ [1] [NVIDIA NeMo Toolkit](https://github.com/NVIDIA/NeMo)
102
+