Text-to-Speech
Transformers
ONNX
Safetensors
multilingual
t5
text2text-generation
p2g
phoneme-to-grapheme
ipa
accessibility
byt5
text-generation-inference
Instructions to use willwade/byt5-p2g-multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use willwade/byt5-p2g-multilingual with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="willwade/byt5-p2g-multilingual")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("willwade/byt5-p2g-multilingual") model = AutoModelForSeq2SeqLM.from_pretrained("willwade/byt5-p2g-multilingual", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ByT5 multilingual P2G (small) โ 300M params
Phoneme-to-grapheme inversion of the harmonized retrain. Input:
<lang>: phoneme tokens. Output: word spelling. Trained on a
4.12M-pair harmonized corpus (same as the G2P sibling).
Results (4k stratified test sample)
| score | |
|---|---|
| micro exact | 0.483 |
| macro exact | 0.581 |
P2G is harder than G2P (phoneme โ spelling is not one-to-one), but this model is useful for AAC scenarios where a user sounds out a word they can't spell.
Files
- HF-format weights at root (~1.2 GB)
onnx/โ validated encoder+decoder pair
Licence
CC BY-SA 4.0
- Downloads last month
- 33
Model tree for willwade/byt5-p2g-multilingual
Base model
google/byt5-small