CoolFace
Modelpublic

beshkenadze/kokoro-ipa-lexicons

sourceHugging Faceupdated 6mo agoView on Hugging Face
1likes319downloads
Model Card

IPA Lexicon — {language}

IPA pronunciation lexicon with stress marks, formatted for use with Kokoro TTS and other espeak-ng-trained speech synthesis models.

Format

Tab-separated values (TSV): word\tphonemes

Phonemes are space-separated IPA symbols with primary (ˈ) and secondary (ˌ) stress marks.

hola	ˈo l a
prueba	p ɾ u ˈe β a
español	ˌe s p a ɲ ˈo l

Usage

For Kokoro TTS, join phonemes by removing spaces. Move stress marks before syllable onsets for best results.

Source & Attribution

This lexicon was extracted from [gruut](https://github.com/rhasspy/gruut) by Michael Hansen (rhasspy), licensed under the MIT License.

Specifically, data comes from the espeak/lexicon.db files in the gruut-lang-* packages (v2.0.x). These contain IPA transcriptions with stress marks generated via espeak-ng.

Licensing Note

  • —gruut (framework): MIT License
  • —gruut-lang-\* (data packages): Published under the gruut project (MIT), but the espeak/ subdirectory contains phonemizations generated by espeak-ng (GPL v3). The legal status of bulk phonemization output from a GPL tool is debated — it may or may not constitute a derivative work depending on jurisdiction.
  • —This redistribution: Provided as-is under the same terms as the gruut project. Users should evaluate GPL compliance for their own use case.

Languages Available

LanguageCodeEntriesFile
Arabicar82,702ar_lexicon.tsv
Czechcs43,991cs_lexicon.tsv
Germande279,704de_lexicon.tsv
Englishen124,447en_lexicon.tsv
Spanishes596,995es_lexicon.tsv
Farsifa47,143fa_lexicon.tsv
Frenchfr90,717fr_lexicon.tsv
Italianit29,388it_lexicon.tsv
Dutchnl40,084nl_lexicon.tsv
Portuguesept65,262pt_lexicon.tsv
Russianru533,929ru_lexicon.tsv
Swedishsv27,192sv_lexicon.tsv
Swahilisw69,676sw_lexicon.tsv

Conversion

Extracted with:

bash
pip download gruut-lang-{code} --no-deps
tar xzf gruut_lang_{code}-*.tar.gz
sqlite3 espeak/lexicon.db -separator $'\t' \
  "SELECT word, phonemes FROM word_phonemes ORDER BY word" > {code}_lexicon.tsv