Library to load/save/modify pronunciation dictionaries (any language).
Project description
pronunciation-dictionary
Library and CLI to load/save/modify pronunciation dictionaries (any language).
Features
- Export vocabulary
- Export phoneme set
- Merge multiple pronunciation dictionaries
- Extract subset of pronunciation dictionary
- Remove characters from vocabulary
- Remove phonemes from pronunciations
- Change formatting
- Select single pronunciation per word
Roadmap
- Adding tests
- Implementation of printing of statistics
- Implementation of phoneme mapping, e.g., mapping ARPAbet to IPA
Example dictionaries and deserialization arguments
- Montreal Forced Aligner dictionaries
--deserialization-encoding "UTF-8"
- CMU
--deserialization-encoding "ISO-8859-1"
--consider-numbers
--consider-pronunciation-comments
- LibriSpeech
--deserialization-encoding "UTF-8"
- Prosodylab
- Old: CMU 0.7b
--deserialization-encoding "ISO-8859-1"
--consider-comments
--consider-numbers
Excerpt from CMU (as example)
a.d. EY2 D IY1
a.m. EY2 EH1 M
a.s EY1 Z
aaa T R IH2 P AH0 L EY1
aaberg AA1 B ER0 G
aachen AA1 K AH0 N
aachener AA1 K AH0 N ER0
aaker AA1 K ER0
aalborg AO1 L B AO0 R G # place, danish
aalborg(2) AA1 L B AO0 R G
Installation
pip install pronunciation-dictionary --user
Usage
pronunciation-dictionary-cli -h
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pronunciation-dictionary-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | acea5ca97e15dc93ac789cf52244d4c06f35a673bbed1db2b07f7212fb6934dc |
|
MD5 | bb6a7321785a4ce9700c8a0ed2d1da78 |
|
BLAKE2b-256 | c460fa1633318a5fa735715db5dab3c003aa554e322f68008106f72411b0be3f |
Close
Hashes for pronunciation_dictionary-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea09e98af5c7e1cd0a56d858af32b4a80a84444ddb32f021f25dd43dbc468909 |
|
MD5 | 06b17eae5effcd754bfbac93e97bffb9 |
|
BLAKE2b-256 | 02bf654d00e5ae928459c2cc16bb68560fdc9773dea9e45fe45c78a32a141013 |