Datasets:
Floravox pronunciation lexicons
Pronunciation dictionaries for text to speech, in 167 bundles for 167 languages and varieties, 4,190,723 entries in all. To speak a word, a speech engine needs to know how it is pronounced; the usual way is a lookup from the word to its sounds written as phonemes. These are those lookups, built from open sources: Wiktionary (through kaikki.org and WikiPron), gruut, CMUDict and a few hand-checked additions. Version v0.7.0 of voicegarden-lexicons, the same files as its GitHub release, with the same hashes.
What is in a bundle
Each bundle is a <lang>.tar.gz with:
| File | What it is |
|---|---|
<lang>.fst + <lang>.pho |
the dictionary in floravox's fast-lookup format |
phonetisaurus.fst |
a model that guesses pronunciations for words the dictionary lacks, trained on that dictionary |
lexicon.txt |
the same dictionary as plain text (word<TAB>phonemes), in the format sherpa-onnx reads |
NOTICE |
where the data came from and its licence |
lexicons.json lists every bundle with its file name, SHA-256, size, entry count, licence and source, and the holdout exact match of its guesser. The largest:
| Bundle | Entries | Bundle | Entries | |
|---|---|---|---|---|
es |
595,857 | it |
91,133 | |
ru |
545,315 | fr |
90,114 | |
de |
277,912 | sw |
81,219 | |
zh |
274,813 | la |
72,783 | |
yue |
239,706 | nl |
70,493 | |
fin |
174,010 | hu |
67,835 | |
en |
167,058 | pt |
64,757 | |
pol |
146,081 | mk |
63,424 | |
en-cmudict |
135,166 | ja |
59,525 | |
en-GB |
122,738 | uk |
55,209 |
expanded.json serves the Rust crate's expanded archive, which fetches 28 languages by their older tags (deu, fra, swe, eng-US, ...): 17 of them are the same bundle as in lexicons.json, and the other 11 (deu, eng-US, fas) are bundles of their own under that tag, built from the same dictionaries as before.
How to use it
- Rust:
cargo add voicegarden-lexicons;LexiconArchive::default_archive()readslexicons.jsonand fetches a bundle by BCP-47 tag, once, then caches it.default_expanded()readsexpanded.json. - Any language with an FFI: floravox builds a small C API over the same bundles.
- sherpa-onnx 2.x: point the lexicon setting of a piper-family voice at the bundle's
lexicon.txt. For English voices left without a phonemizer, the American bundle also carries two convention pair tables (p2p-espeak.tsv,p2p-misaki.tsv) that turn its pronunciations into the voice's own. - Plain files: download a bundle and read
lexicon.txt. - Neural models: the ByT5 spelling → pronunciation and pronunciation → spelling models (small and tiny) were trained on these lexicons and fill in what they lack, at run time. For words a bundle lacks, the models are far better than the bundled guesser.
What changed in v0.7.0
- English is rebuilt by accent, each in one notation.
enis General American (167,058 entries),en-GBBritish (122,738);en-AU,en-NZ,en-CA,en-Scotland,en-IN,en-IE,en-SG,en-ZAjoin them. The stress mark is written as its own token before the stressed vowel, primary stress only, diphthongs as two tokens. The old lexicons were in a mixed state: a quarter of the American rows were corrupt, more than half of both rested on pronunciations Wiktionary never labelled for an accent, and the British lexicon carried 93,155 American rows under a British name. Code that assumed the old notation, a token inventory for instance, needs updating; the convention pair tables for sherpa-onnx's espeak voices are in theenbundle, made again for the new notation. - 128 bundles added to
lexicons.json, most of them Wiktionary's living languages of at least 5,000 entries harvested through kaikki.org; 17 languages that previously had only an "expanded" bundle now have a plain one built from Wiktionary alone, with a trained guesser. - Mandarin and Cantonese grew with readings from Unihan and CC-CEDICT.
- Behind the two great English lexicons, for lookup only, come rows for words the lexicon lacks: 3,390 American and 42,989 British, each the other accent's attested pronunciation converted by rule and kept only where espeak-ng's voice agreed with the conversion (measured right in about 90% of attested words). They are never used to train the models.
- No distilled rows. Earlier releases' "expanded" bundles added pronunciations distilled by neural models of August. Those rows are gone: the models they came from score far below the current ones, and every row in this version comes from a dictionary.
Licences
Each bundle carries its data source's licence, recorded in lexicons.json and in the NOTICE inside the bundle: Wiktionary-derived data is CC BY-SA 4.0 (attribution to Wiktionary contributors; adaptations carry the same licence), gruut's and the tooling's MIT, CMUDict BSD. No GPL data is included.
Not here
- espeak-ng's data (GPL), never used as a source.
- Rows a model guessed. What the models can do, they do at run time.
Related
voicegarden-lexicons (the build, the audits and the docs) · floravox-training (how the models were trained and compared) · the models: g2p small, p2g small, g2p tiny, p2g tiny.
- Downloads last month
- -