This release is a pre-release and may not be stable for production use.
scriptconv-nonfree
The scriptconv phonemizer backends whose code, data or dependencies are for non-commercial use only, or carry no licence grant.
Where this fits
scriptconv is the text conversion library. Its wheel holds only Apache-2.0 code. Each backend in this package has a non-commercial licence, or data with no licence grant, 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:
pip install scriptconv[ar-phonemizers]
from scriptconv.phonemizers import Phonemizer, get_phonemizer
get_phonemizer(Phonemizer.MANTOQ).phonemize_string("مرحبا", "ar")
This package depends on scriptconv. scriptconv never imports this package when it is imported itself.
Backends
Phonemizer value |
Class | Module | Restricted item in the chain |
|---|---|---|---|
mantoq |
MantoqPhonemizer |
scriptconv_nonfree.phonemizers.ar |
the vendored Halabi phonetiser in mantoq (CC-BY-NC-4.0) |
halabi |
HalabiPhonemizer |
scriptconv_nonfree.phonemizers.ar |
the same vendored phonetiser (CC-BY-NC-4.0) |
iqra |
IqraPhonemizer |
scriptconv_nonfree.phonemizers.ar |
the vendored IqraEval phonetiser (CC-BY-NC-4.0) |
viphoneme |
VIPhonemePhonemizer |
scriptconv_nonfree.phonemizers.vi |
viphoneme and vinorm, which PyPI marks "Free for non-commercial use" |
africa_g2p |
AfricaG2PPhonemizer |
scriptconv_nonfree.phonemizers.africa |
the africa-g2p language data, which has no licence grant |
ghana_g2p |
GhanaG2PPhonemizer |
scriptconv_nonfree.phonemizers.ghana |
the same africa-g2p language data, which ghana-g2p loads |
Each backend's own dependencies install with the extra of the same name, for example pip install scriptconv-nonfree[vi].
The African backends
The africa extra installs africa-g2p>=0.3.5 from PyPI (AfriSpeech/africa-g2p). The ghana extra installs ghana-g2p>=0.1.1 (GhanaNLP/ghana-g2p) with the same africa-g2p floor. ghana-g2p loads the same installed africa-g2p, so the two backends always read the same rule tables. identity() of AfricaG2PPhonemizer gives the africa-g2p version, and identity() of GhanaG2PPhonemizer gives the ghana-g2p version.
Each africa-g2p rule table has a confidence field. A table with omniglot, high, medium or hand-verified is transcribed from an Omniglot chart or from Hartell (ed.), Alphabets of Africa (UNESCO, 1993). Both backends serve these tables by default.
They also serve the 5 tts-reviewed tables of africa-g2p 0.3.5 by default: Dagbani, Ewe, Fante, Ga and Twi. Each is an Omniglot chart with corrections that an LLM proposed. No native speaker has checked the corrections. The corrected Ewe table measures closer to WikiPron Ewe than the chart it replaces: phoneme error rate 0.4690 against 0.4948 on 247 words.
Every other value is a draft, also a value that a later africa-g2p adds. In africa-g2p 0.3.5, 352 tables are llm-draft: an LLM drafted them from corpus text, and no chart backs them. Both backends refuse a draft table. The error is UnsupportedLanguageError, and its message names the table, its confidence value and the africa-g2p version. To use draft tables, build the backend with allow_draft_rules=True:
from scriptconv.phonemizers import Phonemizer, get_phonemizer
get_phonemizer(Phonemizer.AFRICA_G2P, allow_draft_rules=True).phonemize_string("aba", "aab")
supported_langs() lists the tables served by default: 398 of the 750 tables of africa-g2p 0.3.5, and all 42 ghana-g2p languages. supported_langs(allow_draft_rules=True) lists all of them.
Licence
The package holds files under several licences. The SPDX expression is Apache-2.0 AND MIT AND CC-BY-NC-4.0 AND LicenseRef-AfricaG2P-Data.
| Files | Licence | Notice |
|---|---|---|
scriptconv_nonfree/phonemizers/_vendored/mantoq/buck/phonetise_buckwalter.py |
CC-BY-NC-4.0 | LICENSE.md and LICENSE.cc-by-nc-4.0 in _vendored/mantoq/. Upstream: nawarhalabi/Arabic-Phonetiser. |
scriptconv_nonfree/phonemizers/_vendored/mantoq/num2words.py |
Apache-2.0 | LICENSE. Written for scriptconv on top of ovos-number-parser. |
every other file in scriptconv_nonfree/phonemizers/_vendored/mantoq/ |
MIT | LICENSE.mantoq in that directory. Upstream: mush42/mantoq. |
scriptconv_nonfree/phonemizers/_vendored/iqra_phonetiser/ |
CC-BY-NC-4.0 | LICENSE.md and LICENSE.cc-by-nc-4.0 in that directory. Upstream: Iqra-Eval/MSA_phonetiser, a fork of Arabic-Phonetiser. |
| every other file | Apache-2.0 | LICENSE |
LicenseRef-AfricaG2P-Data is the language data of the installed africa-g2p distribution, which the africa and ghana backends load. This package holds no copy of it. The code of africa-g2p is Apache-2.0, but its rule tables have no licence grant. LICENSE.africa-g2p-data.md states the terms and quotes the upstream data notice.
The CC-BY-NC-4.0 files and the africa-g2p data are not for commercial use. The dependencies of each backend keep their own licences.
Metadata
Release files for scriptconv-nonfree 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_nonfree-0.2.0a1.tar.gz | 93.2 kB | Without provenance | Details for scriptconv_nonfree-0.2.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scriptconv_nonfree-0.2.0a1-py3-none-any.whl | Python 3 | none | any | Details for scriptconv_nonfree-0.2.0a1-py3-none-any.whl |
Total release size: 197.7 kB
Release files / scriptconv_nonfree-0.2.0a1.tar.gz
| Download URL | scriptconv_nonfree-0.2.0a1.tar.gz |
|---|---|
| Size | 93.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7e7fbda096343c3ea07acccd3cdb3864e2fe9b4b250aee5adbf63cd85c26397
|
|
BLAKE2b-256 checksum How to use checksums |
0d574c97da310c866cfba43ea7040e256e8c4a71f016ed747eb07d313db00037
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / scriptconv_nonfree-0.2.0a1-py3-none-any.whl
| Download URL | scriptconv_nonfree-0.2.0a1-py3-none-any.whl |
|---|---|
| Size | 104.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b41aacaa6a568fae712fb2fb05fdc90e1bcc4613f8bdcffc4171c781c904b40
|
|
BLAKE2b-256 checksum How to use checksums |
32357b6e9df34bb35a3fe8533c2fcea39a3ba6aea30a089ae81a55d375e3f5c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for scriptconv-nonfree 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.