Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

scriptconv

Every way text is written, and every path between them.

License: Apache 2.0 Build Tests PyPI version

scriptconv tells you which representation a text is in, converts it to another representation, and phonemizes it. It covers scripts (Cyrillic, Hangul, kana), romanizations (pinyin, Buckwalter), phoneme notations (IPA, ARPABET, X-SAMPA), input codes (Cangjie) and decorated spellings (Arabic with or without vowel marks). Each conversion reports how faithful it is, as data that code can read.

The core is pure Python with no dependencies. The phonemizers subpackage gives one interface to many grapheme-to-phoneme backends: espeak, gruut, orthography2ipa, tugaphone, arbtok and more, each behind an optional extra. TextFrontend joins the text stages and a backend in one fixed order for a voice.

Quickstart

uv pip install --prerelease=allow "scriptconv[pt-phonemizers]"
from scriptconv import detect_script, convert, strip
from scriptconv.phonemizers import phonemize

detect_script("Здравствуйте")             # 'Cyrl'
convert("HH AH0 L OW1", "arpa", "ipa")    # 'həloʊ'
strip("مُحَمَّد", "tashkeel")               # 'محمد'
phonemize("Olá mundo", "pt")              # 'ɔˈla ˈmũdu'

The first three calls need no extra. The last one needs the extra of its backend, here pt-phonemizers for tugaphone. Every call is also a command of python -m scriptconv (docs/cli.md).

Documentation

Page Read it for
docs/overview.md the model, a tour of each module, related projects
docs/stack.md where scriptconv sits in the speech stack, and which library runs each stage
docs/install.md the extras and the licences
docs/backends.md every phonemizer backend and its extra
docs/cli.md every subcommand of python -m scriptconv
docs/troubleshooting.md the errors that scriptconv raises, and the fix
docs/reference.md the signature of each public name
docs/index.md every page in reading order
AGENTS.md the contributor rules

Metadata

Release files for scriptconv 0.0.4a211

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

Source distribution (sdist)

Source distribution for scriptconv 0.0.4a211
File Size Uploaded Provenance Actions
scriptconv-0.0.4a211.tar.gz 4.0 MB Without provenance Details for scriptconv-0.0.4a211.tar.gz

Built distribution (wheel)

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

Total release size: 7.8 MB

Release files / scriptconv-0.0.4a211.tar.gz

Download URL scriptconv-0.0.4a211.tar.gz
Size 4.0 MB
Tags Source
SHA-256 checksum
How to use checksums
931936c79e6b2d29dd3fb7b21c6f71d63307fa928a3d80950e01ae6bee30ee45
BLAKE2b-256 checksum
How to use checksums
e49b7963f241b0fb0f234ad9a9818208fadf031200b3d4a1cae88fadc6b6fc54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / scriptconv-0.0.4a211-py3-none-any.whl

Download URL scriptconv-0.0.4a211-py3-none-any.whl
Size 3.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
151c354cad537077b6aeb587679fe1dc4f8110f240ca5d445394496b0609b0a3
BLAKE2b-256 checksum
How to use checksums
a2809935c0ddfbcf0bd7ca455e5268c0508a5a23f8f16466a0f4d4020b97939b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for scriptconv 0.0.4a211

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.

Release history Release notifications | RSS feed

This release
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