Mirco commited on
Commit
2b8608c
1 Parent(s): dcc7665

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -13
README.md CHANGED
@@ -9,7 +9,7 @@ tags:
9
  - Transformer
10
  license: "apache-2.0"
11
  datasets:
12
- - commonvoice
13
  metrics:
14
  - wer
15
  - cer
@@ -30,15 +30,14 @@ SpeechBrain. For a better experience, we encourage you to learn more about
30
 
31
  # Pipeline description
32
  This ASR system is composed of 2 different but linked blocks:
33
- - Tokenizer (unigram) that transforms words into subword units and trained with
34
- the train transcriptions.
35
  - Acoustic model (wav2vec2.0 + CTC). A pretrained wav2vec 2.0 model ([facebook/wav2vec2-large-xlsr-53](https://huggingface.co/facebook/wav2vec2-large-xlsr-53)) is combined with two DNN layers and finetuned on the Darija dataset.
36
  The obtained final acoustic representation is given to the CTC greedy decoder.
37
  The system is trained with recordings sampled at 16kHz (single channel).
38
  The code will automatically normalize your audio (i.e., resampling + mono channel selection) when calling *transcribe_file* if needed.
39
 
40
  # Install SpeechBrain
41
- First of all, please install tranformers and SpeechBrain with the following command:
42
  ```
43
  pip install speechbrain transformers
44
  ```
@@ -48,15 +47,31 @@ Please notice that we encourage you to read the SpeechBrain tutorials and learn
48
  # Transcribing your own audio files (in Wolof)
49
  ```python
50
  from speechbrain.pretrained import EncoderASR
51
- asr_model = EncoderASR.from_hparams(source="aioxlabs/dvoice-wolof", savedir="pretrained_models/asr-wav2vec2-dvoice-wol")
52
- asr_model.transcribe_file('./the_path_to_your_audio_file')
53
  ```
54
 
55
  # Inference on GPU
56
  To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
57
 
58
  # Training
59
- To train the model from scratch, please see our GitHub tutorial [here](https://github.com/AIOXLABS/DVoice).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
  # Limitations
62
  The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.
@@ -74,22 +89,22 @@ The SpeechBrain team does not provide any warranty on the performance achieved b
74
  ```
75
 
76
  # About DVoice
77
- DVoice is a community initiative that aims to provide Africa low resources languages with data and models to facilitate their use of voice technologies. The lack of data on these languages makes it necessary to collect data using methods that are specific to each one. Two different approaches are currently used: the DVoice platforms ([https://dvoice.ma](https://dvoice.ma) and [https://dvoice.sn](https://dvoice.sn)), which are based on Mozilla Common Voice, for collecting authentic recordings from the community, and transfer learning techniques for automatically labeling recordings that are retrived from social medias. The DVoice platform currently manages 7 languages including Darija (Moroccan Arabic dialect) whose dataset appears on this version, Wolof, Mandingo, Serere, Pular, Diola and Soninke.
78
 
79
- For this project, AIOX Labs the SI2M Laboratory are joining forces to build the future of technologies together.
80
 
81
  # About AIOX Labs
82
- Based in Rabat, London and Paris, AIOX-Labs mobilizes artificial intelligence technologies to meet the business needs and data projects of companies.
83
 
84
- - He is at the service of the growth of groups, the optimization of processes or the improvement of the customer experience.
85
  - AIOX-Labs is multi-sector, from fintech to industry, including retail and consumer goods.
86
- - Business ready data products with a solid algorithmic base and adaptability for the specific needs of each client.
87
  - A complementary team made up of doctors in AI and business experts with a solid scientific base and international publications.
88
 
89
  Website: [https://www.aiox-labs.com/](https://www.aiox-labs.com/)
90
 
91
  # SI2M Laboratory
92
- The Information Systems, Intelligent Systems and Mathematical Modeling Research Laboratory (SI2M) is an academic research laboratory of the National Institute of Statistics and Applied Economics (INSEA). The research areas of the laboratories are Information Systems, Intelligent Systems, Artificial Intelligence, Decision Support, Network and System Security, Mathematical Modelling.
93
 
94
  Website: [SI2M Laboratory](https://insea.ac.ma/index.php/pole-recherche/equipe-de-recherche/150-laboratoire-de-recherche-en-systemes-d-information-systemes-intelligents-et-modelisation-mathematique)
95
 
 
9
  - Transformer
10
  license: "apache-2.0"
11
  datasets:
12
+ - Dvoice
13
  metrics:
14
  - wer
15
  - cer
 
30
 
31
  # Pipeline description
32
  This ASR system is composed of 2 different but linked blocks:
33
+ - Tokenizer (unigram) that transforms words into subword units and is trained with the train transcriptions.
 
34
  - Acoustic model (wav2vec2.0 + CTC). A pretrained wav2vec 2.0 model ([facebook/wav2vec2-large-xlsr-53](https://huggingface.co/facebook/wav2vec2-large-xlsr-53)) is combined with two DNN layers and finetuned on the Darija dataset.
35
  The obtained final acoustic representation is given to the CTC greedy decoder.
36
  The system is trained with recordings sampled at 16kHz (single channel).
37
  The code will automatically normalize your audio (i.e., resampling + mono channel selection) when calling *transcribe_file* if needed.
38
 
39
  # Install SpeechBrain
40
+ First of all, please install transformers and SpeechBrain with the following command:
41
  ```
42
  pip install speechbrain transformers
43
  ```
 
47
  # Transcribing your own audio files (in Wolof)
48
  ```python
49
  from speechbrain.pretrained import EncoderASR
50
+ asr_model = EncoderDecoderASR.from_hparams(source="speechbrain/asr-wav2vec2-dvoice-wolof", savedir="pretrained_models/asr-wav2vec2-dvoice-wolof")
51
+ asr_model.transcribe_file('speechbrain/asr-wav2vec2-dvoice-wolof/example_wolof.wav')
52
  ```
53
 
54
  # Inference on GPU
55
  To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
56
 
57
  # Training
58
+ The model was trained with SpeechBrain.
59
+ To train it from scratch follow these steps:
60
+ 1. Clone SpeechBrain:
61
+ ```bash
62
+ git clone https://github.com/speechbrain/speechbrain/
63
+ ```
64
+ 2. Install it:
65
+ ```bash
66
+ cd speechbrain
67
+ pip install -r requirements.txt
68
+ pip install -e .
69
+ ```
70
+ 3. Run Training:
71
+ ```bash
72
+ cd recipes/DVoice/ASR/CTC
73
+ python train_with_wav2vec2.py hparams/train_wol_with_wav2vec.yaml --data_folder=/localscratch/ALFFA_PUBLIC/ASR/WOLOF/data/
74
+ ```
75
 
76
  # Limitations
77
  The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.
 
89
  ```
90
 
91
  # About DVoice
92
+ DVoice is a community initiative that aims to provide African low resources languages with data and models to facilitate their use of voice technologies. The lack of data on these languages makes it necessary to collect data using methods that are specific to each one. Two different approaches are currently used: the DVoice platforms ([https://dvoice.ma](https://dvoice.ma) and [https://dvoice.sn](https://dvoice.sn)), which are based on Mozilla Common Voice, for collecting authentic recordings from the community, and transfer learning techniques for automatically labeling recordings that are retrieved from social media. The DVoice platform currently manages 7 languages including Darija (Moroccan Arabic dialect) whose dataset appears on this version, Wolof, Mandingo, Serere, Pular, Diola, and Soninke.
93
 
94
+ For this project, AIOX Labs and the SI2M Laboratory are joining forces to build the future of technologies together.
95
 
96
  # About AIOX Labs
97
+ Based in Rabat, London, and Paris, AIOX-Labs mobilizes artificial intelligence technologies to meet the business needs and data projects of companies.
98
 
99
+ - He is at the service of the growth of groups, the optimization of processes, or the improvement of the customer experience.
100
  - AIOX-Labs is multi-sector, from fintech to industry, including retail and consumer goods.
101
+ - Business-ready data products with a solid algorithmic base and adaptability for the specific needs of each client.
102
  - A complementary team made up of doctors in AI and business experts with a solid scientific base and international publications.
103
 
104
  Website: [https://www.aiox-labs.com/](https://www.aiox-labs.com/)
105
 
106
  # SI2M Laboratory
107
+ The Information Systems, Intelligent Systems, and Mathematical Modeling Research Laboratory (SI2M) is an academic research laboratory of the National Institute of Statistics and Applied Economics (INSEA). The research areas of the laboratories are Information Systems, Intelligent Systems, Artificial Intelligence, Decision Support, Network, and System Security, and Mathematical Modelling.
108
 
109
  Website: [SI2M Laboratory](https://insea.ac.ma/index.php/pole-recherche/equipe-de-recherche/150-laboratoire-de-recherche-en-systemes-d-information-systemes-intelligents-et-modelisation-mathematique)
110