Skip to main content

Library to load/save/modify pronunciation dictionaries (any language).

Project description

pronunciation-dictionary

PyPI PyPI MIT

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

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

pronunciation-dictionary-0.0.3.tar.gz (20.0 kB view hashes)

Uploaded Source

Built Distribution

pronunciation_dictionary-0.0.3-py3-none-any.whl (34.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page