Update README.md
Browse files
README.md
CHANGED
|
@@ -35,10 +35,10 @@ tags:
|
|
| 35 |
This model is designed to support **phoneme-based text-to-speech (TTS) systems**, including but not limited to [StyleTTS2](https://github.com/yl4579/StyleTTS2). Thanks to its Spanish-specific phoneme vocabulary and contextual embedding capabilities, it can serve as a phoneme encoder for any TTS architecture requiring phoneme-level features.
|
| 36 |
|
| 37 |
Features of our PL-BERT:
|
| 38 |
-
- It is trained **exclusively on Spanish** phonemized text
|
| 39 |
-
- It uses a reduced **phoneme vocabulary of 178 tokens**
|
| 40 |
-
- It uses wordpiece tokenizer
|
| 41 |
-
- It includes a custom `token_maps.pkl` and adapted `util.py`
|
| 42 |
|
| 43 |
---
|
| 44 |
|
|
@@ -46,15 +46,15 @@ Features of our PL-BERT:
|
|
| 46 |
|
| 47 |
### Intended uses
|
| 48 |
|
| 49 |
-
- Integration into phoneme-based TTS pipelines such as StyleTTS2, Matxa-TTS, or custom diffusion-based synthesizers
|
| 50 |
-
- Accent-aware synthesis and phoneme embedding extraction for Spanish
|
| 51 |
|
| 52 |
|
| 53 |
### Limitations
|
| 54 |
|
| 55 |
-
- Not designed for general NLP tasks like classification or sentiment analysis
|
| 56 |
-
- Only supports Spanish phoneme tokens
|
| 57 |
-
- Some accents may be underrepresented in the training data
|
| 58 |
|
| 59 |
---
|
| 60 |
|
|
@@ -78,7 +78,7 @@ Here is an example of how to use this model within the StyleTTS2 framework:
|
|
| 78 |
|
| 79 |
`from Utils.PLBERT_es.util import load_plbert`
|
| 80 |
|
| 81 |
-
6.
|
| 82 |
|
| 83 |
Note: Although this example uses StyleTTS2, the model is compatible with other TTS architectures that operate on phoneme sequences. You can use the contextualized phoneme embeddings from PL-BERT in any compatible synthesis system.
|
| 84 |
|
|
@@ -88,7 +88,7 @@ Note: Although this example uses StyleTTS2, the model is compatible with other T
|
|
| 88 |
|
| 89 |
### Training data
|
| 90 |
|
| 91 |
-
The model was trained on a Spanish corpus
|
| 92 |
|
| 93 |
Tokenizer: custom (split using whitespaces)
|
| 94 |
Phoneme masking strategy: word-level and phoneme-level masking and replacement
|
|
@@ -134,7 +134,7 @@ If this code contributes to your research, please cite the work:
|
|
| 134 |
title={PL-BERT-wp-es},
|
| 135 |
author={Rodolfo Zevallos, Jose Giraldo and Carme Armentano-Oller},
|
| 136 |
organization={Barcelona Supercomputing Center},
|
| 137 |
-
url={https://huggingface.co/
|
| 138 |
year={2025}
|
| 139 |
}
|
| 140 |
```
|
|
|
|
| 35 |
This model is designed to support **phoneme-based text-to-speech (TTS) systems**, including but not limited to [StyleTTS2](https://github.com/yl4579/StyleTTS2). Thanks to its Spanish-specific phoneme vocabulary and contextual embedding capabilities, it can serve as a phoneme encoder for any TTS architecture requiring phoneme-level features.
|
| 36 |
|
| 37 |
Features of our PL-BERT:
|
| 38 |
+
- It is trained **exclusively on Spanish** phonemized text
|
| 39 |
+
- It uses a reduced **phoneme vocabulary of 178 tokens**
|
| 40 |
+
- It uses wordpiece tokenizer
|
| 41 |
+
- It includes a custom `token_maps.pkl` and adapted `util.py`
|
| 42 |
|
| 43 |
---
|
| 44 |
|
|
|
|
| 46 |
|
| 47 |
### Intended uses
|
| 48 |
|
| 49 |
+
- Integration into phoneme-based TTS pipelines such as StyleTTS2, Matxa-TTS, or custom diffusion-based synthesizers
|
| 50 |
+
- Accent-aware synthesis and phoneme embedding extraction for Spanish
|
| 51 |
|
| 52 |
|
| 53 |
### Limitations
|
| 54 |
|
| 55 |
+
- Not designed for general NLP tasks like classification or sentiment analysis
|
| 56 |
+
- Only supports Spanish phoneme tokens
|
| 57 |
+
- Some accents may be underrepresented in the training data
|
| 58 |
|
| 59 |
---
|
| 60 |
|
|
|
|
| 78 |
|
| 79 |
`from Utils.PLBERT_es.util import load_plbert`
|
| 80 |
|
| 81 |
+
6. Phonemize your Spanish text files for training and validation (if you consider `espeak-ng` use the language code `es-419`)
|
| 82 |
|
| 83 |
Note: Although this example uses StyleTTS2, the model is compatible with other TTS architectures that operate on phoneme sequences. You can use the contextualized phoneme embeddings from PL-BERT in any compatible synthesis system.
|
| 84 |
|
|
|
|
| 88 |
|
| 89 |
### Training data
|
| 90 |
|
| 91 |
+
The model was trained on a phonemized Spanish corpus (any phonemizer can be used). It uses a consistent phoneme token set with boundary markers and masking tokens.
|
| 92 |
|
| 93 |
Tokenizer: custom (split using whitespaces)
|
| 94 |
Phoneme masking strategy: word-level and phoneme-level masking and replacement
|
|
|
|
| 134 |
title={PL-BERT-wp-es},
|
| 135 |
author={Rodolfo Zevallos, Jose Giraldo and Carme Armentano-Oller},
|
| 136 |
organization={Barcelona Supercomputing Center},
|
| 137 |
+
url={https://huggingface.co/BSC-LT/PL-BERT-wp-es},
|
| 138 |
year={2025}
|
| 139 |
}
|
| 140 |
```
|