OLaPh (Optimal Language Phonemizer) is a multilingual phonemization framework that converts text into phonemes surpassing the quality of comparable frameworks.
05/2026: The instruction finetuning dataset for OlaphLLM is available here
05/2026: A new version of OLaPhLLM is available here
Traditional phonemizers rely on simple rule-based mappings or lexicon lookups. Neural and hybrid approaches improve generalization but still struggle with:
- Names and foreign words
- Abbreviations and acronyms
- Loanwords and compounds
- Ambiguous homographs
OLaPh tackles these challenges by combining:
- Extensive language-specific dictionaries
- Abbreviation, number, and letter normalization
- Compound resolution with probabilistic scoring
- Cross-language handling
- NLP-based preprocessing via spaCy and Lingua
Evaluations on the Wikipron dataset show improved accuracy and robustness over existing phonemizers, including on OOV words.
- Multilingual phonemization (DE, EN-US, EN-UK, FR, ES, NL, SV, DA, PL, IT, FI)
- Abbreviation and letter pronunciation dictionaries
- Number normalization
- Cross-language acronym detection
- Compound splitting with statistical scoring
- Freely available lexica for research and development derived from wiktionary.org.
A LLM based on OLaPh output is also available. It is a GemmaX 2B Model trained on ~10M sentences derived from the FineWeb Corpus phonemized with the OLaPh framework.
Find it here on huggingface (DE, EN, FR, US. Training for additional languages planned)
pip install olaphspaCy models are downloaded on demand.
git clone https://github.com/iisys-hof/olaph.git
cd olaph
pip install -e .from olaph import Olaph
phonemizer = Olaph()
output = phonemizer.phonemize_text("He ordered a Brezel and a beer in a tavern near München.", lang="en-us")
print(output)Phonemization is a critical component in text-to-speech synthesis. Traditional approaches rely on deterministic transformations and lexica, while neural methods offer potential for higher generalization on out-of-vocabulary (OOV) terms. This work introduces OLaPh (Optimal Language Phonemizer), a hybrid framework that integrates extensive multilingual lexica with advanced NLP techniques and a statistical subword segmentation function. Evaluations on the WikiPron benchmark show that the OLaPh framework significantly outperforms established baselines in overall accuracy and maintains robustness on OOV data through advanced fallback mechanisms. To further explore neural generalization, we utilize the framework to synthesize a high-consistency training corpus for an instruction-tuned Large Language Model (LLM). While the deterministic framework remains more accurate overall, the LLM demonstrates strong generalization, matching or partly exceeding the framework’s performance. This suggests that the LLM successfully internalized phonetic intuitions from the synthetic data that transcend the framework’s capabilities. Together, these tools provide a comprehensive, open-source resource for multilingual G2P research.
If you use OLaPh in academic work, please cite:
@misc{wirth2026olaphoptimallanguagephonemizer,
title={OLaPh: Optimal Language Phonemizer},
author={Johannes Wirth},
year={2026},
eprint={2509.20086},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2509.20086},
}