Downloads · 30 days
20
2% of all-time downloads
HiTZ/stt_eu_conformer_transducer_large
stt_eu_conformer_transducer_large is a automatic speech recognition model from HiTZ. Use it when you need speech turned into text. It is set up for nemo. The card lists the license as apache-2.0.
Downloads · 30 days
20
2% of all-time downloads
All-time downloads
1.3K
Public
Repo size
479 MB
Likes
2
Public
Click a slice to open those files.
.nemo479 MB · 100%
From the Hugging Face model README
This model transcribes speech in lowercase Basque alphabet including spaces, and was trained on a composite dataset comprising of 548 hours of Basque speech. The model was fine-tuned from a pre-trained Spanish stt_es_conformer_transducer_large model using the Nvidia NeMo toolkit. It is an autoregressive "large" variant of Conformer, with around 119 million parameters. See the model architecture section and NeMo documentation for complete architecture details.
To train, fine-tune or play with the model you will need to install NVIDIA NeMo. We recommend you install it after you've installed latest PyTorch version.
pip install nemo_toolkit['all']
Clone repository to download the model:
git clone https://huggingface.co/HiTZ/stt_eu_conformer_transducer_large
Given NEMO_MODEL_FILEPATH is the path that points to the downloaded stt_eu_conformer_transducer_large.nemo file.
import nemo.collections.asr as nemo_asr
# Load the model
asr_model = nemo_asr.models.EncDecRNNTBPEModel.restore_from(NEMO_MODEL_FILEPATH)
# Create a list pointing to the audio files
audio = ["audio_1.wav","audio_2.wav", ..., "audio_n.wav"]
# Fix the batch_size to whatever number suits your purpouse
batch_size = 8
# Transcribe the audio files
transcriptions = asr_model.transcribe(audio=audio, batch_size=batch_size)
# Visualize the transcriptions
print(transcriptions)
This model accepts 16000 kHz Mono-channel Audio (wav files) as input.
This model provides transcribed speech as a string for a given audio sample.
Conformer-Transducer model is an autoregressive variant of Conformer model [1] for Automatic Speech Recognition which uses Transducer loss/decoding instead of CTC loss. You may find more info on the detail of this model here: Conformer-Transducer Model.
This model has been trained on a composite dataset comprising 548 hours of Basque speech that contains:
validated split of the basque version of the public dataset Mozilla Common Voice 16.1: We have processed the validated split, which originally contains the train, dev and test splits, to create a subset free of sentences equal to the ones that are in the test split, to avoid leakage.train_clean split of the basque version of the public dataset Basque ParliamentThe composite dataset for training has been precisely cleaned from any sentence that equals the ones in the test datasets where the WER metrics will be computed.
This model was trained starting from the pre-trained Spanish model stt_es_conformer_transducer_large over several hundred of epochs in a GPU device, using the NeMo toolkit [3] The tokenizer for these model was built using the text transcripts of the composite train dataset with this script, with a total of 256 basque language tokens.
Performances of the ASR models are reported in terms of Word Error Rate (WER%) with greedy decoding in the following table.
| Tokenizer | Vocabulary Size | MCV 16.1 Test | Basque Parliament Test | Basque Parliament Dev | Train Dataset |
|---|---|---|---|---|---|
| SentencePiece Unigram | 256 | 2.79 | 3.83 | 4.17 | Composite Dataset (548 h) |
Since this model was trained on publicly 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.
HiTZ Basque Center for Language Technology - Aholab Signal Processing Laboratory, University of the Basque Country UPV/EHU.
Copyright (c) 2024 HiTZ Basque Center for Language Technology - Aholab Signal Processing Laboratory, University of the Basque Country UPV/EHU.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This project with reference 2022/TL22/00215335 has been parcially funded by the Ministerio de Transformación Digital and by the Plan de Recuperación, Transformación y Resiliencia – Funded by the European Union – NextGenerationEU ILENIA and by the project IkerGaitu funded by the Basque Government. This model was trained at Hyperion, one of the high-performance computing (HPC) systems hosted by the DIPC Supercomputing Center.
When third parties, deploy or provide systems and/or services to other parties using any of these models (or using systems based on these models) or become users of the models, they should note that it is their responsibility to mitigate the risks arising from their use and, in any event, to comply with applicable regulations, including regulations regarding the use of Artificial Intelligence.
In no event shall the owner and creator of the models (HiTZ Basque Center for Language Technology - Aholab Signal Processing Laboratory, University of the Basque Country UPV/EHU.) be liable for any results arising from the use made by third parties of these models.