Skip to main content
Tests Linux MacOS Windows Codecov
Documentation Doc
Release GitHub release (latest SemVer) PyPI downloads
Citation status DOI

Phonemizer -- foʊnmaɪzɚ

  • The phonemizer allows simple phonemization of words and texts in many languages.

  • Provides both the phonemize command-line tool and the Python function phonemizer.phonemize. See the package's documentation.

  • It is based on four backends: espeak, espeak-mbrola, festival and segments. The backends have different properties and capabilities resumed in table below. The backend choice is let to the user.

    • espeak-ng is a Text-to-Speech software supporting a lot of languages and IPA (International Phonetic Alphabet) output.

    • espeak-ng-mbrola uses the SAMPA phonetic alphabet instead of IPA but does not preserve word boundaries.

    • festival is another Tex-to-Speech engine. Its phonemizer backend currently supports only American English. It uses a custom phoneset, but it allows tokenization at the syllable level.

    • segments is a Unicode tokenizer that build a phonemization from a grapheme to phoneme mapping provided as a file by the user.

    espeak espeak-mbrola festival segments
    phone set IPA SAMPA custom user defined
    supported languages 100+ 35 US English user defined
    processing speed fast slow very slow fast
    phone tokens ✔️ ✔️ ✔️ ✔️
    syllable tokens ❌ ❌ ✔️ ❌
    word tokens ✔️ ❌ ✔️ ✔️
    punctuation preservation ✔️ ❌ ✔️ ✔️
    stressed phones ✔️ ❌ ❌ ❌
    tie ✔️ ❌ ❌ ❌

Citation

To reference the phonemizer in your own work, please cite the following JOSS paper.

@article{Bernard2021,
  doi = {10.21105/joss.03958},
  url = {https://doi.org/10.21105/joss.03958},
  year = {2021},
  publisher = {The Open Journal},
  volume = {6},
  number = {68},
  pages = {3958},
  author = {Mathieu Bernard and Hadrien Titeux},
  title = {Phonemizer: Text to Phones Transcription for Multiple Languages in Python},
  journal = {Journal of Open Source Software}
}

Licence

Copyright 2015-2021 Mathieu Bernard

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Metadata

Release files for phonemizer 3.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phonemizer 3.4.1
File Size Uploaded Provenance Actions
phonemizer-3.4.1.tar.gz 94.4 kB Without provenance Details for phonemizer-3.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phonemizer 3.4.1
File Interpreter ABI Platform Actions
phonemizer-3.4.1-py3-none-any.whl Python 3 none any Details for phonemizer-3.4.1-py3-none-any.whl

Total release size: 203.7 kB

Release files / phonemizer-3.4.1.tar.gz

Download URL phonemizer-3.4.1.tar.gz
Size 94.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1ae40e4ec0854d6a885afc5c02c89e23c9b5a8a32754a40f8129bc516a7b67f4
BLAKE2b-256 checksum
How to use checksums
f45d6452a28825c0fde2a8976befd2ac3a2a86cde087f619a4029ca6514703ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / phonemizer-3.4.1-py3-none-any.whl

Download URL phonemizer-3.4.1-py3-none-any.whl
Size 109.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e5e05e06c0799801587f4c60109258801d15938a496d030ac782da85e7a0a99
BLAKE2b-256 checksum
How to use checksums
b6005a1d67b55ae3adc45be0dcdcae5ed3a4a8f485dd8145a23bced09a4f81ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for phonemizer 3.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page