This release is a pre-release and may not be stable for production use.
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:
python -m scriptconv detect "안녕하세요" # Hang
python -m scriptconv convert arpa ipa "K AE1 T" # kæt
python -m scriptconv strip tashkeel "مُحَمَّد" # محمد
python -m scriptconv phonemize pt "Olá mundo" # ɔˈla ˈmũdu
python -m scriptconv route halabi x-sampa # the conversion path, hop by hop
Where this fits
Alone: detect, convert and phonemize text with from scriptconv import convert and from scriptconv.phonemizers import phonemize.
In the stack: the one stop for text conversion. The phoonnx voices take their text path from scriptconv alone, through TextFrontend. It calls the stage libraries and phonemizer engines as optional backends.
Through scriptconv: uv pip install --prerelease=allow "scriptconv[<extra>]".
docs/stack.md shows which library runs each stage, docs/backends.md lists every backend with its extra, and docs/reference.md gives the signature of each name that a voice imports.
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 |
| docs/install.md | the extras and the licences |
| docs/backends.md | every phonemizer backend and its extra |
| docs/reference.md | the signature of each public name |
| docs/index.md | every page in reading order |
AGENTS.md holds the contributor rules.
Metadata
Release files for scriptconv 0.0.4a182
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scriptconv-0.0.4a182.tar.gz | 3.9 MB | Without provenance | Details for scriptconv-0.0.4a182.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scriptconv-0.0.4a182-py3-none-any.whl | Python 3 | none | any | Details for scriptconv-0.0.4a182-py3-none-any.whl |
Total release size: 7.8 MB
Release files / scriptconv-0.0.4a182.tar.gz
| Download URL | scriptconv-0.0.4a182.tar.gz |
|---|---|
| Size | 3.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc14d18c81399ca39a3326f812e6056cbfd861a678ce28f05349fc0bf10c3269
|
|
BLAKE2b-256 checksum How to use checksums |
532226f8b2b29f19f3d273d12b83ad8f3f62550257edae59d222b77b6c214ff5
|
| 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.4a182-py3-none-any.whl
| Download URL | scriptconv-0.0.4a182-py3-none-any.whl |
|---|---|
| Size | 3.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
322aca10385ad9035bb2f9d99fa5100d972340892f1bb794fbcd643cf70d436d
|
|
BLAKE2b-256 checksum How to use checksums |
8affac3670c3f1e4f236210f5a2f8cb138f68baa817945cd96dcc33d87682367
|
| 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.4a182
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.