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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pronunciation-dictionary-0.0.3.tar.gz.
File metadata
- Download URL: pronunciation-dictionary-0.0.3.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acea5ca97e15dc93ac789cf52244d4c06f35a673bbed1db2b07f7212fb6934dc
|
|
| MD5 |
bb6a7321785a4ce9700c8a0ed2d1da78
|
|
| BLAKE2b-256 |
c460fa1633318a5fa735715db5dab3c003aa554e322f68008106f72411b0be3f
|
File details
Details for the file pronunciation_dictionary-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pronunciation_dictionary-0.0.3-py3-none-any.whl
- Upload date:
- Size: 34.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea09e98af5c7e1cd0a56d858af32b4a80a84444ddb32f021f25dd43dbc468909
|
|
| MD5 |
06b17eae5effcd754bfbac93e97bffb9
|
|
| BLAKE2b-256 |
02bf654d00e5ae928459c2cc16bb68560fdc9773dea9e45fe45c78a32a141013
|