Skip to main content

Uses espeak-ng to transform text into IPA phonemes.

Project description

eSpeak Phonemizer Windows

Uses espeak-ng to transform text into IPA phonemes.

This is a fork of espeak-phonemizer that adds support for Windows.

Installation

Next, install espeak_phonemizer_windows:

pip install espeak_phonemizer_windows

If installation was successful, you should be able to run:

espeak-phonemizer --version

Basic Phonemization

Simply pass your text into the standard input of espeak-phonemizer:

echo 'This is a test.' | espeak-phonemizer -v en-us
ðɪs ɪz ɐ tˈɛst

Separators

Phoneme and word separators can be changed:

echo 'This is a test.' | espeak-phonemizer -v en-us -p '_' -w '#'
ð_ɪ_s#ɪ_z#ɐ#t_ˈɛ_s_t

Punctuation and Stress

Some punctuation can be kept (.,;:!?) in the output:

echo 'This: is, a, test.' | espeak-phonemizer -v en-us --keep-punctuation
ðˈɪs: ˈɪz, ˈeɪ, tˈɛst.

Stress markers can also be dropped:

echo 'This is a test.' | espeak-phonemizer -v en-us --no-stress
ðɪs ɪz ɐ tɛst

Delimited Input

The --csv flag enables delimited input with fields separated by a '|' (change with --csv-delimiter):

echo 's1|This is a test.' | espeak-phonemizer -v en-us --csv
s1|This is a test.|ðɪs ɪz ɐ tˈɛst

Phonemes are added as a final column, allowing you to pass arbitrary metadata through to the output.

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

espeak_phonemizer_windows-1.0.1.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

File details

Details for the file espeak_phonemizer_windows-1.0.1.tar.gz.

File metadata

File hashes

Hashes for espeak_phonemizer_windows-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5582afd098b0629625eb92c7bc2e29e4f73d7935d87feb3e7481ca02997d5b17
MD5 6bc2112d4fce1eab9311cef9d2ab0a74
BLAKE2b-256 dced0a965b7e8d60b8c486d1ad051768e387485c46c6d591c9e5a63ca36d3963

See more details on using hashes here.

File details

Details for the file espeak_phonemizer_windows-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for espeak_phonemizer_windows-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c25397ea628f64c75d7d9ca70927f022dffd0ea4d2763e7d754c2376a6fabf78
MD5 2eea4c80c9f595ac5a6d02bc458f5735
BLAKE2b-256 7b6321b63dab5c89ae0978c4254b12146ac1226406c71e1723ac2690393fc993

See more details on using hashes here.

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