Downloads · 30 days
253
56% of all-time downloads
BSC-LT/matxa-tts-v2-ca-central-graphemes
matxa-tts-v2-ca-central-graphemes is a machine learning model from BSC-LT. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as gpl-3.0.
<details <summaryClick to expand</summary
Downloads · 30 days
253
56% of all-time downloads
All-time downloads
454
Public
Repo size
484 MB
Likes
1
Public
Click a slice to open those files.
.onnx271 MB · 56%
From the Hugging Face model README
Here we present Matxa-TTS 🍵 v2: a Catalan multispeaker neural TTS model working with graphemes. It works together with a vocoder model to generate high quality and expressive speech efficiently. You can use any vocoder such as 🥑 alVoCat or Wavenext.
Matxa-TTS 🍵 is based on Matcha-TTS, an encoder-decoder architecture designed for fast acoustic modelling in TTS. The encoder part is based on a text encoder and a phoneme duration prediction that together predict averaged acoustic features. The decoder has essentially a U-Net backbone inspired by Grad-TTS, which is based on the Transformer architecture. By replacing 2D CNNs by 1D CNNs in the decoder, a large reduction in memory consumption and fast synthesis is achieved.
Matxa-TTS is a non-autorregressive model trained with optimal-transport conditional flow matching (OT-CFM). This yields an ODE-based decoder capable of generating high output quality in fewer synthesis steps than models trained using score matching.
For more details, please, check our new github repository branch.
This model is intended to serve as an acoustic feature generator for multispeaker text-to-speech systems for the Catalan language. It has been finetuned using a Catalan text, therefore if the model is used for other languages it will not produce intelligible samples after mapping its output into a speech waveform.
The quality of the samples can vary depending on the speaker. This may be due to the sensitivity of the model in learning specific frequencies and also due to the quality of samples for each speaker.
For more information see the licenses section under Additional information.
Create a virtual environment:
python -m venv /path/to/venv
source /path/to/venv/bin/activate
Clone the repository:
git clone -b v2 --single-branch https://github.com/langtech-bsc/Matcha-TTS.git
cd Matcha-TTS
Install the package from source:
pip install -e .
Try out Matxa-TTS v2 with graphemes with AlVoCat!
Note that input texts, if containing any numbers, need to be normalized!
<a target="_blank" href="https://colab.research.google.com/drive/14JzJHfFiEBwp1VwH4ZCuHlNSy2YgdPve?usp=sharing"> <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/> </a>This model has been trained in two stages:
We evaluated the model in terms of quality and intelligibility using a test set of 350 sentences extracted from La creació d'Eva i altres contes by Josep Carner i Puig-Oriol, available on Project Gutenberg. Speech quality was assessed using ScoreQ, a recent approach for evaluating synthesized speech. Intelligibility was measured by computing Word Error Rate (WER) and Character Error Rate (CER) using the whisper-bsc-large-v3-cat model, which was trained and evaluated on multi-accented Catalan data.
We implemented AlVoCat as a vocoder, already trained on Catalan data. For comparison, we evaluate Matxa-TTS using the same set of sentences. Our updated model, Matxa-TTS-v2-ca-central-graphemes, achieves better scores in both quality and intelligibility.
| Model | ScoreQ |
|---|---|
| Matxa-TTS-multispeaker | 2.96 |
| Matxa-TTS-v2-ca-central-graphemes | 3,32 |
| Model | Mean WER | Mean CER |
|---|---|---|
| Matxa-TTS-multispeaker | 9,03 | 3,40 |
| Matxa-TTS-v2-ca-central-graphemes | 6,84 | 2,09 |
If this code contributes to your research, please cite the work:
@misc{LangtechVeu2025matxattsv2multispeaker,
title={Catalan Multispeaker Text-to-Speech: Matxa-TTS v2},
author={Jose Giraldo and Alex Peiró-Lilja},
organization={Barcelona Supercomputing Center},
url={https://huggingface.co/BSC-LT/matxa-tts-v2-ca-central-graphemes},
year={2025}
}
The Speech Team at the AI Institute, Barcelona Supercomputing Center.
For further information, please send an email to [email protected].
Copyright(c) 2025 by AI Institute, Barcelona Supercomputing Center.
This work is funded by the Ministerio para la Transformación Digital y de la Función Pública - Funded by EU – NextGenerationEU within the framework of the project ILENIA with reference 2022/TL22/00215337.
This work was supported by the Generalitat de Catalunya (Aina project). Reference: SDD001/22/000005. Project(s): PN040300.
The conversion of the model was possible thanks to the computing time provided by Barcelona Supercomputing Center through MareNostrum 5.