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
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
Release history Release notifications | RSS feed
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
File details
Details for the file espeak_phonemizer_windows-1.0.3.post0.tar.gz
.
File metadata
- Download URL: espeak_phonemizer_windows-1.0.3.post0.tar.gz
- Upload date:
- Size: 9.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c9fe7e9a5e6a67427364f431baf9821d7dfc956e4a0841314d6099cc4a2cc64 |
|
MD5 | bea354536a30e3ef2b823be53efb674e |
|
BLAKE2b-256 | 618f81b717258a7ccbd6f535ea04977725a48c366107bb3fa71ca2d9e0458dcc |
File details
Details for the file espeak_phonemizer_windows-1.0.3.post0-py3-none-any.whl
.
File metadata
- Download URL: espeak_phonemizer_windows-1.0.3.post0-py3-none-any.whl
- Upload date:
- Size: 9.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6493817d421a51c9098f14c8af3dd102abb3b2a608d454d13c62e5791a029483 |
|
MD5 | 25e3f3bc8eb0c16869232a863ffa958e |
|
BLAKE2b-256 | d52b38341f84597d5041ba60ce5bfec8f9c0267431ca338cca4c9ced472bd51e |