This release is a pre-release and may not be stable for production use.
scriptconv-copyleft
The scriptconv phonemizer backends whose own code or whose dependencies are under a copyleft licence (GPL, LGPL or AGPL).
Where this fits
scriptconv is the text conversion library. Its wheel holds only Apache-2.0 code. Each backend in this package has a copyleft licence somewhere in its chain, so it ships here instead.
scriptconv keeps the registry. A backend keeps its Phonemizer value and its routing entry in scriptconv, and scriptconv imports the class from this package only when a caller asks for that backend. The scriptconv extra of each backend installs this package, so the install command does not change:
pip install scriptconv[espeak]
from scriptconv.phonemizers import Phonemizer, get_phonemizer
get_phonemizer(Phonemizer.ESPEAK).phonemize_string("olá", "pt")
This package depends on scriptconv. scriptconv never imports this package when it is imported itself.
Backends
Phonemizer value |
Class | Module | Copyleft item in the chain |
|---|---|---|---|
espeak |
EspeakPhonemizer |
scriptconv_copyleft.phonemizers.mul |
espyak (GPL-3.0-or-later), the espeak-ng binary (GPL-3.0-or-later) |
misaki, misaki_en, misaki_ja, misaki_zh, misaki_ko, misaki_vi |
MisakiPhonemizer and its five subclasses |
scriptconv_copyleft.phonemizers.mul |
phonemizer-fork (GPL-3.0-or-later), espeakng-loader (bundles libespeak-ng) |
transphone |
TransphonePhonemizer |
scriptconv_copyleft.phonemizers.mul |
cmudict (GPL-3.0-or-later), unidecode (GPL-2.0-or-later), iso-639 (AGPL-3.0) |
cotovia |
CotoviaPhonemizer |
scriptconv_copyleft.phonemizers.gl |
pycotovia (GPL-3.0-or-later) |
ahotts |
AhoTTSPhonemizer |
scriptconv_copyleft.phonemizers.eu |
ahotts-g2p (GPL-3.0-or-later) |
g2pfa |
PersianPhonemizer |
scriptconv_copyleft.phonemizers.fa |
gensim (LGPL-2.1-only), through hazm |
g2pk |
G2PKPhonemizer |
scriptconv_copyleft.phonemizers.ko |
konlpy (GPL-3.0-or-later) |
kog2p |
KoG2PPhonemizer |
scriptconv_copyleft.phonemizers.ko |
the vendored KoG2P code (GPL-3.0-only) |
pykakasi |
PyKakasiPhonemizer |
scriptconv_copyleft.phonemizers.ja |
pykakasi (GPL-3.0-or-later) |
espeak_lt_accent |
EspeakLithuanianAccentPhonemizer |
scriptconv_copyleft.phonemizers.lt |
the module itself, ported from Reginutė (GPL-3.0-only); the espeak-ng binary (GPL-3.0-or-later) |
espeak_lt_accent gives Lithuanian espeak-ng IPA with the three pitch accents (ˈ, ˌ, ˋ) from a stress dictionary of 189,262 words. It needs the espeak extra and the espeak-ng binary. The code and the dictionary come from Reginutė by Robertas Tarasevičius (github.com/RobertasTa/reginute, commit 328d98d, phonemize_lithuanian.py). The phonemes come from espeak-ng (github.com/espeak-ng/espeak-ng).
misaki's Japanese module (misaki_ja, and misaki with ja) imports the pyopenjtalk module. The misaki extra installs it from pyopenjtalk-plus with onnxruntime (github.com/tsukumijima/pyopenjtalk-plus, MIT). pyopenjtalk-plus ships wheels and bundles the OpenJTalk dictionary, so it installs with no compiler and works offline from the first call. pyopenjtalk installs the same module, so no extra of this package installs it. misaki's default Japanese reader (cutlet, on fugashi) does not call pyopenjtalk, so the OpenJTalk distribution does not change its phonemes.
scriptconv_copyleft.readings holds the Japanese kanji-to-kana respelling (tokens, to_hiragana, to_katakana), which needs pykakasi.
Each backend's own dependencies install with its extra, for example pip install scriptconv-copyleft[espeak].
Licence
The package holds code and data under three licences. The SPDX expression is Apache-2.0 AND GPL-3.0-only AND CC-BY-4.0.
| Files | Licence | Notice |
|---|---|---|
scriptconv_copyleft/phonemizers/_vendored/kog2p/ |
GPL-3.0-only | LICENSE.md and COPYING in that directory. Upstream (scarletcho/KoG2P) ships the GPL version 3 text and states no "or later" grant. |
scriptconv_copyleft/phonemizers/lt.py |
GPL-3.0-only | Ported from Reginutė (RobertasTa/reginute), whose code is GPL-3.0-only. The module docstring names its source file and commit. The GPL text is _vendored/reginute/COPYING. |
scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kirciai.tsv |
CC-BY-4.0 AND GPL-3.0-only | LICENSE, COPYING and SOURCE in that directory. The entries come from the LIEPA corpus annotation (Vilnius University) and the g2p-lt-lexicon of Arunas Smaliukas, both CC-BY-4.0. Reginutė's manual corrections are GPL-3.0-only. |
scriptconv_copyleft/phonemizers/_vendored/reginute/lt_raides.tsv, lt_kreipiniai.tsv |
GPL-3.0-only | COPYING and SOURCE in that directory: Reginutė's own work. |
| every other file | Apache-2.0 | LICENSE |
The dependencies of each backend keep their own licences. A program that installs and uses a backend must follow the licence of that backend's dependencies.
Metadata
Release files for scriptconv-copyleft 0.2.0a1
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_copyleft-0.2.0a1.tar.gz | 721.9 kB | Without provenance | Details for scriptconv_copyleft-0.2.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scriptconv_copyleft-0.2.0a1-py3-none-any.whl | Python 3 | none | any | Details for scriptconv_copyleft-0.2.0a1-py3-none-any.whl |
Total release size: 1.5 MB
Release files / scriptconv_copyleft-0.2.0a1.tar.gz
| Download URL | scriptconv_copyleft-0.2.0a1.tar.gz |
|---|---|
| Size | 721.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01645670686bb4804b0f31a44071f4f40990ef1717a8e10bb01c7533e0a8d74b
|
|
BLAKE2b-256 checksum How to use checksums |
8e24edd47c5d4536eb962e389d6018e6ecf4969282e5fabfc794b60e50eecb8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / scriptconv_copyleft-0.2.0a1-py3-none-any.whl
| Download URL | scriptconv_copyleft-0.2.0a1-py3-none-any.whl |
|---|---|
| Size | 738.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0228a60f845be19a1359247aae2f86b3e1a2257aa9c8105e129da867383bc27f
|
|
BLAKE2b-256 checksum How to use checksums |
1d25f6ebb4a7bebc944120eefff1947061980aeaea24319a91387a393b0eb9c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for scriptconv-copyleft 0.2.0a1
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.