Epitran is a library for transliterating text written in various writing systems into the International Phonetic Alphabet (IPA). Version 1.35.1 supports 50+ languages and scripts. Release cadence is irregular, with multiple releases in 2025-2026.
pip install epitranVerified import paths — ran on the pinned version, not inferred.
Initialize Epitran with a language code (e.g., 'eng-Latn') and call .transliterate() to convert text to IPA.
Use the exact language-script code as specified in the documentation (e.g., 'eng-Latn', 'cmn-Hans').
Run `epitran -d` after installation to download and set up the data, or let Epitran auto-download on first import (requires internet).
Upgrade Python to 3.10 or later. If stuck on older Python, use epitran < 1.35.0.
Use the public API (Epitran class) only; avoid reading data files directly.
Use full language-script code, e.g., `Epitran('eng-Latn')`. List supported codes: `epitran.list_languages()`.Import using `from epitran import Epitran`.
Run `epitran -d` on the command line to download all required data. Ensure internet connectivity.