Abstract
Grapheme-to-phoneme conversion (g2p) is necessary for text-to-speech and automatic speech recognition systems. Most g2p systems are monolingual: they require language-specific data or handcrafting of rules. Such systems are difficult to extend to low resource languages, for which data and handcrafted rules are not available. As an alternative, we present a neural sequence-to-sequence approach to g2p which is trained on spelling–-pronunciation pairs in hundreds of languages. The system shares a single encoder and decoder across all languages, allowing it to utilize the intrinsic similarities between different writing systems. We show an 11% improvement in phoneme error rate over an approach based on adapting high-resource monolingual g2p models to low-resource languages. Our model is also much more compact relative to previous approaches.
Introduction
Grapheme-to-Phoneme (g2p) conversion—the process of turning written text into phonetic sounds—is a cornerstone of text-to-speech (TTS) and automatic speech recognition (ASR). However, most existing systems are monolingual and "data-hungry," requiring thousands of pronunciation pairs or handcrafted linguistic rules to function. This creates a massive gap for "low-resource" languages that lack extensive digital dictionaries. This research explores leveraging similarities between writing systems (like the Latin alphabet used across Europe and Africa) to help a model "guess" the pronunciation of a language it has barely seen.
Methodology
The authors treat g2p as a translation task, specifically a multisource neural machine translation (NMT) problem. Instead of translating English to French, they "translate" written characters (graphemes) to phonetic symbols using the International Phonetic Alphabet (IPA).
The core architecture is an Encoder-Decoder with Attention using Long Short-Term Memory (LSTM) units. A bidirectional encoder processes the input word, and an attention mechanism helps the decoder focus on specific letters when generating sounds. The "secret sauce" is the use of Language ID Tokens: prepending an artificial token to every input word (e.g., <eng> r e a l) allows a single, shared model to learn the specific phonetic "flavor" of different languages while sharing underlying parameters for character-to-sound mapping. This system uses one set of weights for all 300+ languages.
Datasets and Evaluation
The study uses a multilingual pronunciation corpus extracted from Wiktionary. The training set includes 311 languages and over 631,000 words, while the test set covers 507 languages. IPA transcriptions were cleaned to ensure consistency with the PHOIBLE database.
Results and Discussion
The model exploits cross-lingual transfer, benefiting from the fact that many languages share orthographic and phonemic similarities. By changing only the language tag, the model can produce different pronunciations for the same string of letters (e.g., "juice" sounds English with <eng> but German with <deu>).
In "adapted" scenarios (testing on languages with limited data), the LangID-All model achieved a Phoneme Error Rate (PER) of 37.85%, a significant improvement over the weighted Finite State Transducer (wFST) baseline of 48.01%.
Beyond accuracy, the neural model is remarkably compact. The LangID-High model occupies only 15.4 MB, compared to the 197.5 MB required for an equivalent collection of high-resource wFST models. While specialized monolingual models still slightly outperform the multilingual model on high-resource languages in raw accuracy, the multilingual model excels in WER 100 (the probability that the correct pronunciation is within the top 100 guesses).
Conclusion
While the model does not yet surpass the state-of-the-art for high-resource languages with massive data, it represents a major step forward for low-resource language support. Future work may involve using "typological feature tokens" (e.g., phonological traits) or etymological tagging to further improve generalization and handle loanwords more accurately.
Summary updated