scriptconv-copyleft 0.3.0a1__tar.gz → 0.3.1a2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- scriptconv_copyleft-0.3.1a2/PKG-INFO +159 -0
- scriptconv_copyleft-0.3.1a2/README.md +69 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/mul.py +6 -1
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/version.py +2 -2
- scriptconv_copyleft-0.3.1a2/scriptconv_copyleft.egg-info/PKG-INFO +159 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft.egg-info/SOURCES.txt +1 -0
- scriptconv_copyleft-0.3.1a2/tests/test_espeak_long_line.py +46 -0
- scriptconv_copyleft-0.3.0a1/PKG-INFO +0 -158
- scriptconv_copyleft-0.3.0a1/README.md +0 -68
- scriptconv_copyleft-0.3.0a1/scriptconv_copyleft.egg-info/PKG-INFO +0 -158
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/LICENSE +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/pyproject.toml +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/__init__.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/__init__.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/__init__.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/__init__.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/rulebook.txt +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/SOURCE +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kirciai.tsv +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kreipiniai.tsv +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_raides.tsv +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/eu.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/fa.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/gl.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/he.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/ja.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/ja_prosody.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/ko.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/lt.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/th.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/readings.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft.egg-info/dependency_links.txt +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft.egg-info/requires.txt +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft.egg-info/top_level.txt +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/setup.cfg +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_espeak_acute_stress.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_espeak_french_english_switch.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_espeak_get_lang_case.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_espeak_lt_accent.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_hebrew_ipa.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_lang_default_region.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_match_lang_direction.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_match_lang_preferred_value.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_misaki_ja_reader.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_misaki_zh_zero.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_openjtalk_prosody.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_base.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_cjk_ar.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_friendly_import_errors.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_identity.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_misaki_british.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_punctuation.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_readings.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_tltk.py +0 -0
- {scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_transphone_extra_declares_auto_installs.py +0 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: scriptconv-copyleft
|
|
3
|
+
Version: 0.3.1a2
|
|
4
|
+
Summary: scriptconv phonemizer backends whose code or dependencies are copyleft (GPL, LGPL, AGPL)
|
|
5
|
+
Author-email: TigreGotico <contact@tigregotico.com>
|
|
6
|
+
License-Expression: Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/TigreGotico/scriptconv-copyleft
|
|
8
|
+
Project-URL: Repository, https://github.com/TigreGotico/scriptconv-copyleft
|
|
9
|
+
Project-URL: Issues, https://github.com/TigreGotico/scriptconv-copyleft/issues
|
|
10
|
+
Keywords: g2p,phonemizer,tts,scriptconv,espeak,cotovia,ahotts,kog2p,misaki,transphone,lithuanian,hebrew,openjtalk,tltk,thai
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Text Processing :: Linguistic
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md
|
|
23
|
+
License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING
|
|
24
|
+
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING
|
|
25
|
+
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE
|
|
26
|
+
Requires-Dist: scriptconv[phonemizers]>=0.0.4a113
|
|
27
|
+
Provides-Extra: espeak
|
|
28
|
+
Requires-Dist: espyak; extra == "espeak"
|
|
29
|
+
Provides-Extra: transphone
|
|
30
|
+
Requires-Dist: transphone; extra == "transphone"
|
|
31
|
+
Requires-Dist: pip; extra == "transphone"
|
|
32
|
+
Requires-Dist: jieba; extra == "transphone"
|
|
33
|
+
Requires-Dist: pypinyin; extra == "transphone"
|
|
34
|
+
Requires-Dist: unidic-lite; extra == "transphone"
|
|
35
|
+
Provides-Extra: misaki
|
|
36
|
+
Requires-Dist: misaki[en,ko,zh]; python_version < "3.13" and extra == "misaki"
|
|
37
|
+
Requires-Dist: python-mecab-ko; python_version < "3.13" and extra == "misaki"
|
|
38
|
+
Requires-Dist: fugashi; python_version < "3.13" and extra == "misaki"
|
|
39
|
+
Requires-Dist: jaconv; python_version < "3.13" and extra == "misaki"
|
|
40
|
+
Requires-Dist: mojimoji; python_version < "3.13" and extra == "misaki"
|
|
41
|
+
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; python_version < "3.13" and extra == "misaki"
|
|
42
|
+
Requires-Dist: unidic-lite; python_version < "3.13" and extra == "misaki"
|
|
43
|
+
Requires-Dist: pip; python_version < "3.13" and extra == "misaki"
|
|
44
|
+
Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "misaki"
|
|
45
|
+
Provides-Extra: gl
|
|
46
|
+
Requires-Dist: pycotovia; extra == "gl"
|
|
47
|
+
Provides-Extra: eu
|
|
48
|
+
Requires-Dist: ahotts_g2p; extra == "eu"
|
|
49
|
+
Provides-Extra: fa
|
|
50
|
+
Requires-Dist: persian_phonemizer; extra == "fa"
|
|
51
|
+
Requires-Dist: hazm>=0.10; extra == "fa"
|
|
52
|
+
Requires-Dist: spacy<4.0,>=3.7; extra == "fa"
|
|
53
|
+
Provides-Extra: ja
|
|
54
|
+
Requires-Dist: pykakasi<3,>=2.3; extra == "ja"
|
|
55
|
+
Provides-Extra: ja-phonemizers
|
|
56
|
+
Requires-Dist: pykakasi<3,>=2.3; extra == "ja-phonemizers"
|
|
57
|
+
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "ja-phonemizers"
|
|
58
|
+
Provides-Extra: th
|
|
59
|
+
Requires-Dist: tltk<1.11,>=1.6.8; extra == "th"
|
|
60
|
+
Requires-Dist: pandas>=2; extra == "th"
|
|
61
|
+
Requires-Dist: requests>=2; extra == "th"
|
|
62
|
+
Requires-Dist: unicode-rbnf>=2.4.0; extra == "th"
|
|
63
|
+
Provides-Extra: ko
|
|
64
|
+
Requires-Dist: g2pk; python_version < "3.13" and extra == "ko"
|
|
65
|
+
Requires-Dist: regex; extra == "ko"
|
|
66
|
+
Provides-Extra: test
|
|
67
|
+
Requires-Dist: pytest; extra == "test"
|
|
68
|
+
Requires-Dist: pytest-timeout; extra == "test"
|
|
69
|
+
Requires-Dist: espyak; extra == "test"
|
|
70
|
+
Requires-Dist: pycotovia; extra == "test"
|
|
71
|
+
Requires-Dist: ahotts_g2p; extra == "test"
|
|
72
|
+
Requires-Dist: pykakasi<3,>=2.3; extra == "test"
|
|
73
|
+
Requires-Dist: epitran>=1.26.1; extra == "test"
|
|
74
|
+
Requires-Dist: g2pk; python_version < "3.13" and extra == "test"
|
|
75
|
+
Requires-Dist: regex; extra == "test"
|
|
76
|
+
Requires-Dist: misaki[en,ko,zh]; python_version < "3.13" and extra == "test"
|
|
77
|
+
Requires-Dist: fugashi; python_version < "3.13" and extra == "test"
|
|
78
|
+
Requires-Dist: jaconv; python_version < "3.13" and extra == "test"
|
|
79
|
+
Requires-Dist: mojimoji; python_version < "3.13" and extra == "test"
|
|
80
|
+
Requires-Dist: unidic-lite; python_version < "3.13" and extra == "test"
|
|
81
|
+
Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "test"
|
|
82
|
+
Requires-Dist: linguatag[langcodes]>=0.2.3a1; extra == "test"
|
|
83
|
+
Requires-Dist: packaging; extra == "test"
|
|
84
|
+
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "test"
|
|
85
|
+
Requires-Dist: tltk<1.11,>=1.6.8; extra == "test"
|
|
86
|
+
Requires-Dist: pandas>=2; extra == "test"
|
|
87
|
+
Requires-Dist: requests>=2; extra == "test"
|
|
88
|
+
Requires-Dist: unicode-rbnf>=2.4.0; extra == "test"
|
|
89
|
+
Dynamic: license-file
|
|
90
|
+
|
|
91
|
+
# scriptconv-copyleft
|
|
92
|
+
|
|
93
|
+
<!-- agent-hint
|
|
94
|
+
covers: what scriptconv-copyleft is, the quickstart, the backends it holds and its licence
|
|
95
|
+
source: pyproject.toml, scriptconv_copyleft/phonemizers/, scriptconv/phonemizers/registry.py in scriptconv
|
|
96
|
+
generated: no
|
|
97
|
+
verify: python -m doctest README.md
|
|
98
|
+
see: docs/index.md, docs/getting-started.md, AGENTS.md
|
|
99
|
+
-->
|
|
100
|
+
|
|
101
|
+
scriptconv-copyleft holds the phonemizer backends of
|
|
102
|
+
[scriptconv](https://github.com/TigreGotico/scriptconv) that have a copyleft
|
|
103
|
+
licence (GPL, LGPL or AGPL) in their code or in their dependencies. scriptconv
|
|
104
|
+
keeps the registry, and its extras install this package, so you call the
|
|
105
|
+
backends through scriptconv as usual.
|
|
106
|
+
|
|
107
|
+
## Quickstart
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
uv pip install --prerelease=allow "scriptconv[espeak]"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
>>> from scriptconv.phonemizers import Phonemizer, get_phonemizer
|
|
115
|
+
>>> get_phonemizer(Phonemizer.ESPEAK).phonemize_string("olá mundo", "pt")
|
|
116
|
+
'ɔlˈa mˈũŋdʊ'
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
The backend runs the espeak-ng program when it is on `PATH`, and espyak, its
|
|
121
|
+
Python port, when it is not. [Getting started](docs/getting-started.md) walks
|
|
122
|
+
through the install, the alphabets and the engine identity.
|
|
123
|
+
|
|
124
|
+
## Backends
|
|
125
|
+
|
|
126
|
+
| `Phonemizer` values | scriptconv extra |
|
|
127
|
+
| --- | --- |
|
|
128
|
+
| `espeak`, `espeak_lt_accent` | `espeak` |
|
|
129
|
+
| `transphone` | `transphone` |
|
|
130
|
+
| `misaki`, `misaki_en`, `misaki_ja`, `misaki_zh`, `misaki_ko`, `misaki_vi` | `misaki` |
|
|
131
|
+
| `cotovia` | `gl` |
|
|
132
|
+
| `ahotts` | `eu` |
|
|
133
|
+
| `hebrew_ipa` | `he` |
|
|
134
|
+
| `tltk` | `th` |
|
|
135
|
+
| `g2pfa` | `fa` |
|
|
136
|
+
| `pykakasi`, `openjtalk_prosody` | `ja-phonemizers` |
|
|
137
|
+
| `g2pk`, `kog2p` | `ko` |
|
|
138
|
+
|
|
139
|
+
The package also holds the Japanese kanji-to-kana readings that
|
|
140
|
+
`scriptconv.readings` gives, through the `ja` extra. The
|
|
141
|
+
[backend reference](docs/backends.md) gives the languages, alphabets,
|
|
142
|
+
parameters, licence and downloads of each backend.
|
|
143
|
+
|
|
144
|
+
## Licence
|
|
145
|
+
|
|
146
|
+
The package is `Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0`.
|
|
147
|
+
Its own glue code is Apache-2.0. The vendored KoG2P code and the code and data
|
|
148
|
+
from Reginutė are GPL-3.0-only, and the modules ported from Piper are
|
|
149
|
+
GPL-3.0-or-later. The other backends are here because of a dependency, for
|
|
150
|
+
example espyak, pycotovia or pykakasi under the GPL. A program that installs
|
|
151
|
+
and uses a backend must follow the licences of that backend and of its
|
|
152
|
+
dependencies. [Licences](docs/licences.md) gives the copyleft item of each
|
|
153
|
+
backend and the licence of each file.
|
|
154
|
+
|
|
155
|
+
## Documentation
|
|
156
|
+
|
|
157
|
+
The [documentation index](docs/index.md) lists every page in reading order.
|
|
158
|
+
The [scriptconv documentation](https://github.com/TigreGotico/scriptconv/tree/dev/docs)
|
|
159
|
+
explains the phonemizer contract and the other backends.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# scriptconv-copyleft
|
|
2
|
+
|
|
3
|
+
<!-- agent-hint
|
|
4
|
+
covers: what scriptconv-copyleft is, the quickstart, the backends it holds and its licence
|
|
5
|
+
source: pyproject.toml, scriptconv_copyleft/phonemizers/, scriptconv/phonemizers/registry.py in scriptconv
|
|
6
|
+
generated: no
|
|
7
|
+
verify: python -m doctest README.md
|
|
8
|
+
see: docs/index.md, docs/getting-started.md, AGENTS.md
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
scriptconv-copyleft holds the phonemizer backends of
|
|
12
|
+
[scriptconv](https://github.com/TigreGotico/scriptconv) that have a copyleft
|
|
13
|
+
licence (GPL, LGPL or AGPL) in their code or in their dependencies. scriptconv
|
|
14
|
+
keeps the registry, and its extras install this package, so you call the
|
|
15
|
+
backends through scriptconv as usual.
|
|
16
|
+
|
|
17
|
+
## Quickstart
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
uv pip install --prerelease=allow "scriptconv[espeak]"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```python
|
|
24
|
+
>>> from scriptconv.phonemizers import Phonemizer, get_phonemizer
|
|
25
|
+
>>> get_phonemizer(Phonemizer.ESPEAK).phonemize_string("olá mundo", "pt")
|
|
26
|
+
'ɔlˈa mˈũŋdʊ'
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The backend runs the espeak-ng program when it is on `PATH`, and espyak, its
|
|
31
|
+
Python port, when it is not. [Getting started](docs/getting-started.md) walks
|
|
32
|
+
through the install, the alphabets and the engine identity.
|
|
33
|
+
|
|
34
|
+
## Backends
|
|
35
|
+
|
|
36
|
+
| `Phonemizer` values | scriptconv extra |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| `espeak`, `espeak_lt_accent` | `espeak` |
|
|
39
|
+
| `transphone` | `transphone` |
|
|
40
|
+
| `misaki`, `misaki_en`, `misaki_ja`, `misaki_zh`, `misaki_ko`, `misaki_vi` | `misaki` |
|
|
41
|
+
| `cotovia` | `gl` |
|
|
42
|
+
| `ahotts` | `eu` |
|
|
43
|
+
| `hebrew_ipa` | `he` |
|
|
44
|
+
| `tltk` | `th` |
|
|
45
|
+
| `g2pfa` | `fa` |
|
|
46
|
+
| `pykakasi`, `openjtalk_prosody` | `ja-phonemizers` |
|
|
47
|
+
| `g2pk`, `kog2p` | `ko` |
|
|
48
|
+
|
|
49
|
+
The package also holds the Japanese kanji-to-kana readings that
|
|
50
|
+
`scriptconv.readings` gives, through the `ja` extra. The
|
|
51
|
+
[backend reference](docs/backends.md) gives the languages, alphabets,
|
|
52
|
+
parameters, licence and downloads of each backend.
|
|
53
|
+
|
|
54
|
+
## Licence
|
|
55
|
+
|
|
56
|
+
The package is `Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0`.
|
|
57
|
+
Its own glue code is Apache-2.0. The vendored KoG2P code and the code and data
|
|
58
|
+
from Reginutė are GPL-3.0-only, and the modules ported from Piper are
|
|
59
|
+
GPL-3.0-or-later. The other backends are here because of a dependency, for
|
|
60
|
+
example espyak, pycotovia or pykakasi under the GPL. A program that installs
|
|
61
|
+
and uses a backend must follow the licences of that backend and of its
|
|
62
|
+
dependencies. [Licences](docs/licences.md) gives the copyleft item of each
|
|
63
|
+
backend and the licence of each file.
|
|
64
|
+
|
|
65
|
+
## Documentation
|
|
66
|
+
|
|
67
|
+
The [documentation index](docs/index.md) lists every page in reading order.
|
|
68
|
+
The [scriptconv documentation](https://github.com/TigreGotico/scriptconv/tree/dev/docs)
|
|
69
|
+
explains the phonemizer contract and the other backends.
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/mul.py
RENAMED
|
@@ -312,7 +312,12 @@ class EspeakPhonemizer(BasePhonemizer):
|
|
|
312
312
|
EspeakError: If espeak-ng command is not found, or if the subprocess call fails.
|
|
313
313
|
"""
|
|
314
314
|
command: List[str] = ['espeak-ng'] + args
|
|
315
|
-
|
|
315
|
+
if input_text is not None:
|
|
316
|
+
# Without --stdin, espeak-ng reads stdin in 1,000-byte pieces and cuts a
|
|
317
|
+
# longer line mid-word. With it, espeak-ng drops the last byte of the input.
|
|
318
|
+
command.append('--stdin')
|
|
319
|
+
input_text += "\n"
|
|
320
|
+
|
|
316
321
|
# Standard arguments for subprocess.run
|
|
317
322
|
subprocess_args = {
|
|
318
323
|
'input': input_text,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# START_VERSION_BLOCK
|
|
2
2
|
VERSION_MAJOR = 0
|
|
3
3
|
VERSION_MINOR = 3
|
|
4
|
-
VERSION_BUILD =
|
|
5
|
-
VERSION_ALPHA =
|
|
4
|
+
VERSION_BUILD = 1
|
|
5
|
+
VERSION_ALPHA = 2
|
|
6
6
|
# END_VERSION_BLOCK
|
|
7
7
|
|
|
8
8
|
__version__ = f"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_BUILD}" + (f"a{VERSION_ALPHA}" if VERSION_ALPHA else "")
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: scriptconv-copyleft
|
|
3
|
+
Version: 0.3.1a2
|
|
4
|
+
Summary: scriptconv phonemizer backends whose code or dependencies are copyleft (GPL, LGPL, AGPL)
|
|
5
|
+
Author-email: TigreGotico <contact@tigregotico.com>
|
|
6
|
+
License-Expression: Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/TigreGotico/scriptconv-copyleft
|
|
8
|
+
Project-URL: Repository, https://github.com/TigreGotico/scriptconv-copyleft
|
|
9
|
+
Project-URL: Issues, https://github.com/TigreGotico/scriptconv-copyleft/issues
|
|
10
|
+
Keywords: g2p,phonemizer,tts,scriptconv,espeak,cotovia,ahotts,kog2p,misaki,transphone,lithuanian,hebrew,openjtalk,tltk,thai
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Text Processing :: Linguistic
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md
|
|
23
|
+
License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING
|
|
24
|
+
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING
|
|
25
|
+
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE
|
|
26
|
+
Requires-Dist: scriptconv[phonemizers]>=0.0.4a113
|
|
27
|
+
Provides-Extra: espeak
|
|
28
|
+
Requires-Dist: espyak; extra == "espeak"
|
|
29
|
+
Provides-Extra: transphone
|
|
30
|
+
Requires-Dist: transphone; extra == "transphone"
|
|
31
|
+
Requires-Dist: pip; extra == "transphone"
|
|
32
|
+
Requires-Dist: jieba; extra == "transphone"
|
|
33
|
+
Requires-Dist: pypinyin; extra == "transphone"
|
|
34
|
+
Requires-Dist: unidic-lite; extra == "transphone"
|
|
35
|
+
Provides-Extra: misaki
|
|
36
|
+
Requires-Dist: misaki[en,ko,zh]; python_version < "3.13" and extra == "misaki"
|
|
37
|
+
Requires-Dist: python-mecab-ko; python_version < "3.13" and extra == "misaki"
|
|
38
|
+
Requires-Dist: fugashi; python_version < "3.13" and extra == "misaki"
|
|
39
|
+
Requires-Dist: jaconv; python_version < "3.13" and extra == "misaki"
|
|
40
|
+
Requires-Dist: mojimoji; python_version < "3.13" and extra == "misaki"
|
|
41
|
+
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; python_version < "3.13" and extra == "misaki"
|
|
42
|
+
Requires-Dist: unidic-lite; python_version < "3.13" and extra == "misaki"
|
|
43
|
+
Requires-Dist: pip; python_version < "3.13" and extra == "misaki"
|
|
44
|
+
Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "misaki"
|
|
45
|
+
Provides-Extra: gl
|
|
46
|
+
Requires-Dist: pycotovia; extra == "gl"
|
|
47
|
+
Provides-Extra: eu
|
|
48
|
+
Requires-Dist: ahotts_g2p; extra == "eu"
|
|
49
|
+
Provides-Extra: fa
|
|
50
|
+
Requires-Dist: persian_phonemizer; extra == "fa"
|
|
51
|
+
Requires-Dist: hazm>=0.10; extra == "fa"
|
|
52
|
+
Requires-Dist: spacy<4.0,>=3.7; extra == "fa"
|
|
53
|
+
Provides-Extra: ja
|
|
54
|
+
Requires-Dist: pykakasi<3,>=2.3; extra == "ja"
|
|
55
|
+
Provides-Extra: ja-phonemizers
|
|
56
|
+
Requires-Dist: pykakasi<3,>=2.3; extra == "ja-phonemizers"
|
|
57
|
+
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "ja-phonemizers"
|
|
58
|
+
Provides-Extra: th
|
|
59
|
+
Requires-Dist: tltk<1.11,>=1.6.8; extra == "th"
|
|
60
|
+
Requires-Dist: pandas>=2; extra == "th"
|
|
61
|
+
Requires-Dist: requests>=2; extra == "th"
|
|
62
|
+
Requires-Dist: unicode-rbnf>=2.4.0; extra == "th"
|
|
63
|
+
Provides-Extra: ko
|
|
64
|
+
Requires-Dist: g2pk; python_version < "3.13" and extra == "ko"
|
|
65
|
+
Requires-Dist: regex; extra == "ko"
|
|
66
|
+
Provides-Extra: test
|
|
67
|
+
Requires-Dist: pytest; extra == "test"
|
|
68
|
+
Requires-Dist: pytest-timeout; extra == "test"
|
|
69
|
+
Requires-Dist: espyak; extra == "test"
|
|
70
|
+
Requires-Dist: pycotovia; extra == "test"
|
|
71
|
+
Requires-Dist: ahotts_g2p; extra == "test"
|
|
72
|
+
Requires-Dist: pykakasi<3,>=2.3; extra == "test"
|
|
73
|
+
Requires-Dist: epitran>=1.26.1; extra == "test"
|
|
74
|
+
Requires-Dist: g2pk; python_version < "3.13" and extra == "test"
|
|
75
|
+
Requires-Dist: regex; extra == "test"
|
|
76
|
+
Requires-Dist: misaki[en,ko,zh]; python_version < "3.13" and extra == "test"
|
|
77
|
+
Requires-Dist: fugashi; python_version < "3.13" and extra == "test"
|
|
78
|
+
Requires-Dist: jaconv; python_version < "3.13" and extra == "test"
|
|
79
|
+
Requires-Dist: mojimoji; python_version < "3.13" and extra == "test"
|
|
80
|
+
Requires-Dist: unidic-lite; python_version < "3.13" and extra == "test"
|
|
81
|
+
Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "test"
|
|
82
|
+
Requires-Dist: linguatag[langcodes]>=0.2.3a1; extra == "test"
|
|
83
|
+
Requires-Dist: packaging; extra == "test"
|
|
84
|
+
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "test"
|
|
85
|
+
Requires-Dist: tltk<1.11,>=1.6.8; extra == "test"
|
|
86
|
+
Requires-Dist: pandas>=2; extra == "test"
|
|
87
|
+
Requires-Dist: requests>=2; extra == "test"
|
|
88
|
+
Requires-Dist: unicode-rbnf>=2.4.0; extra == "test"
|
|
89
|
+
Dynamic: license-file
|
|
90
|
+
|
|
91
|
+
# scriptconv-copyleft
|
|
92
|
+
|
|
93
|
+
<!-- agent-hint
|
|
94
|
+
covers: what scriptconv-copyleft is, the quickstart, the backends it holds and its licence
|
|
95
|
+
source: pyproject.toml, scriptconv_copyleft/phonemizers/, scriptconv/phonemizers/registry.py in scriptconv
|
|
96
|
+
generated: no
|
|
97
|
+
verify: python -m doctest README.md
|
|
98
|
+
see: docs/index.md, docs/getting-started.md, AGENTS.md
|
|
99
|
+
-->
|
|
100
|
+
|
|
101
|
+
scriptconv-copyleft holds the phonemizer backends of
|
|
102
|
+
[scriptconv](https://github.com/TigreGotico/scriptconv) that have a copyleft
|
|
103
|
+
licence (GPL, LGPL or AGPL) in their code or in their dependencies. scriptconv
|
|
104
|
+
keeps the registry, and its extras install this package, so you call the
|
|
105
|
+
backends through scriptconv as usual.
|
|
106
|
+
|
|
107
|
+
## Quickstart
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
uv pip install --prerelease=allow "scriptconv[espeak]"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
>>> from scriptconv.phonemizers import Phonemizer, get_phonemizer
|
|
115
|
+
>>> get_phonemizer(Phonemizer.ESPEAK).phonemize_string("olá mundo", "pt")
|
|
116
|
+
'ɔlˈa mˈũŋdʊ'
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
The backend runs the espeak-ng program when it is on `PATH`, and espyak, its
|
|
121
|
+
Python port, when it is not. [Getting started](docs/getting-started.md) walks
|
|
122
|
+
through the install, the alphabets and the engine identity.
|
|
123
|
+
|
|
124
|
+
## Backends
|
|
125
|
+
|
|
126
|
+
| `Phonemizer` values | scriptconv extra |
|
|
127
|
+
| --- | --- |
|
|
128
|
+
| `espeak`, `espeak_lt_accent` | `espeak` |
|
|
129
|
+
| `transphone` | `transphone` |
|
|
130
|
+
| `misaki`, `misaki_en`, `misaki_ja`, `misaki_zh`, `misaki_ko`, `misaki_vi` | `misaki` |
|
|
131
|
+
| `cotovia` | `gl` |
|
|
132
|
+
| `ahotts` | `eu` |
|
|
133
|
+
| `hebrew_ipa` | `he` |
|
|
134
|
+
| `tltk` | `th` |
|
|
135
|
+
| `g2pfa` | `fa` |
|
|
136
|
+
| `pykakasi`, `openjtalk_prosody` | `ja-phonemizers` |
|
|
137
|
+
| `g2pk`, `kog2p` | `ko` |
|
|
138
|
+
|
|
139
|
+
The package also holds the Japanese kanji-to-kana readings that
|
|
140
|
+
`scriptconv.readings` gives, through the `ja` extra. The
|
|
141
|
+
[backend reference](docs/backends.md) gives the languages, alphabets,
|
|
142
|
+
parameters, licence and downloads of each backend.
|
|
143
|
+
|
|
144
|
+
## Licence
|
|
145
|
+
|
|
146
|
+
The package is `Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0`.
|
|
147
|
+
Its own glue code is Apache-2.0. The vendored KoG2P code and the code and data
|
|
148
|
+
from Reginutė are GPL-3.0-only, and the modules ported from Piper are
|
|
149
|
+
GPL-3.0-or-later. The other backends are here because of a dependency, for
|
|
150
|
+
example espyak, pycotovia or pykakasi under the GPL. A program that installs
|
|
151
|
+
and uses a backend must follow the licences of that backend and of its
|
|
152
|
+
dependencies. [Licences](docs/licences.md) gives the copyleft item of each
|
|
153
|
+
backend and the licence of each file.
|
|
154
|
+
|
|
155
|
+
## Documentation
|
|
156
|
+
|
|
157
|
+
The [documentation index](docs/index.md) lists every page in reading order.
|
|
158
|
+
The [scriptconv documentation](https://github.com/TigreGotico/scriptconv/tree/dev/docs)
|
|
159
|
+
explains the phonemizer contract and the other backends.
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft.egg-info/SOURCES.txt
RENAMED
|
@@ -34,6 +34,7 @@ scriptconv_copyleft/phonemizers/_vendored/reginute/lt_raides.tsv
|
|
|
34
34
|
tests/test_espeak_acute_stress.py
|
|
35
35
|
tests/test_espeak_french_english_switch.py
|
|
36
36
|
tests/test_espeak_get_lang_case.py
|
|
37
|
+
tests/test_espeak_long_line.py
|
|
37
38
|
tests/test_espeak_lt_accent.py
|
|
38
39
|
tests/test_hebrew_ipa.py
|
|
39
40
|
tests/test_lang_default_region.py
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""espeak-ng reads a text longer than 999 bytes whole, to the last letter.
|
|
2
|
+
|
|
3
|
+
The text goes to espeak-ng on stdin. Without ``--stdin``, espeak-ng 1.52.0 reads
|
|
4
|
+
stdin with ``fgets`` into a 1,000-byte buffer (``src/espeak-ng.c``), so it cut a
|
|
5
|
+
longer line mid-word, and in UTF-8 text mid-character. With ``--stdin``, it
|
|
6
|
+
overwrites the last byte of the input, so the text needs a final newline.
|
|
7
|
+
|
|
8
|
+
The reference is espeak-ng's reading of the same text as one command-line
|
|
9
|
+
argument, which it synthesises in one call, and the reading of one sentence
|
|
10
|
+
alone, once per copy.
|
|
11
|
+
"""
|
|
12
|
+
import subprocess
|
|
13
|
+
|
|
14
|
+
import pytest
|
|
15
|
+
|
|
16
|
+
from scriptconv_copyleft.phonemizers.mul import EspeakPhonemizer
|
|
17
|
+
|
|
18
|
+
AR_SENTENCE = "ذهب الولد إلى المدرسة صباحا وقرأ كتابا جديدا عن تاريخ المدينة القديمة."
|
|
19
|
+
EN_SENTENCE = "The quick brown fox jumps over the lazy dog near the riverbank."
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def argv_reading(text: str, voice: str) -> str:
|
|
23
|
+
return subprocess.run(["espeak-ng", "-q", "-x", "--ipa", "-v", voice, "--", text],
|
|
24
|
+
capture_output=True, text=True, encoding="utf-8", check=True).stdout.strip()
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@pytest.mark.parametrize("sentence, lang, voice", [(AR_SENTENCE, "ar", "ar"), (EN_SENTENCE, "en-US", "en-us")],
|
|
28
|
+
ids=["ar", "en"])
|
|
29
|
+
def test_a_line_longer_than_999_bytes_reads_every_word(sentence, lang, voice):
|
|
30
|
+
copies = 2500 // len(sentence.encode("utf-8")) + 1
|
|
31
|
+
text = " ".join([sentence] * copies)
|
|
32
|
+
assert len(text.encode("utf-8")) > 2500
|
|
33
|
+
phonemes = EspeakPhonemizer().phonemize_string(text, lang)
|
|
34
|
+
assert phonemes == argv_reading(text, voice)
|
|
35
|
+
assert phonemes.split() == argv_reading(sentence, voice).split() * copies
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@pytest.mark.parametrize("text, lang, voice", [
|
|
39
|
+
("expected", "en-US", "en-us"),
|
|
40
|
+
("I expected it", "en-US", "en-us"),
|
|
41
|
+
("a", "en-US", "en-us"),
|
|
42
|
+
("مرحبا", "ar", "ar"),
|
|
43
|
+
("ع", "ar", "ar"),
|
|
44
|
+
])
|
|
45
|
+
def test_the_last_word_reads_whole(text, lang, voice):
|
|
46
|
+
assert EspeakPhonemizer().phonemize_string(text, lang) == argv_reading(text, voice)
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: scriptconv-copyleft
|
|
3
|
-
Version: 0.3.0a1
|
|
4
|
-
Summary: scriptconv phonemizer backends whose code or dependencies are copyleft (GPL, LGPL, AGPL)
|
|
5
|
-
Author-email: TigreGotico <contact@tigregotico.com>
|
|
6
|
-
License-Expression: Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0
|
|
7
|
-
Project-URL: Homepage, https://github.com/TigreGotico/scriptconv-copyleft
|
|
8
|
-
Project-URL: Repository, https://github.com/TigreGotico/scriptconv-copyleft
|
|
9
|
-
Project-URL: Issues, https://github.com/TigreGotico/scriptconv-copyleft/issues
|
|
10
|
-
Keywords: g2p,phonemizer,tts,scriptconv,espeak,cotovia,ahotts,kog2p,misaki,transphone,lithuanian,hebrew,openjtalk,tltk,thai
|
|
11
|
-
Classifier: Development Status :: 3 - Alpha
|
|
12
|
-
Classifier: Intended Audience :: Developers
|
|
13
|
-
Classifier: Intended Audience :: Science/Research
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
-
Classifier: Topic :: Text Processing :: Linguistic
|
|
19
|
-
Requires-Python: >=3.11
|
|
20
|
-
Description-Content-Type: text/markdown
|
|
21
|
-
License-File: LICENSE
|
|
22
|
-
License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md
|
|
23
|
-
License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING
|
|
24
|
-
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING
|
|
25
|
-
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE
|
|
26
|
-
Requires-Dist: scriptconv[phonemizers]>=0.0.4a113
|
|
27
|
-
Provides-Extra: espeak
|
|
28
|
-
Requires-Dist: espyak; extra == "espeak"
|
|
29
|
-
Provides-Extra: transphone
|
|
30
|
-
Requires-Dist: transphone; extra == "transphone"
|
|
31
|
-
Requires-Dist: pip; extra == "transphone"
|
|
32
|
-
Requires-Dist: jieba; extra == "transphone"
|
|
33
|
-
Requires-Dist: pypinyin; extra == "transphone"
|
|
34
|
-
Requires-Dist: unidic-lite; extra == "transphone"
|
|
35
|
-
Provides-Extra: misaki
|
|
36
|
-
Requires-Dist: misaki[en,ko,zh]; python_version < "3.13" and extra == "misaki"
|
|
37
|
-
Requires-Dist: python-mecab-ko; python_version < "3.13" and extra == "misaki"
|
|
38
|
-
Requires-Dist: fugashi; python_version < "3.13" and extra == "misaki"
|
|
39
|
-
Requires-Dist: jaconv; python_version < "3.13" and extra == "misaki"
|
|
40
|
-
Requires-Dist: mojimoji; python_version < "3.13" and extra == "misaki"
|
|
41
|
-
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; python_version < "3.13" and extra == "misaki"
|
|
42
|
-
Requires-Dist: unidic-lite; python_version < "3.13" and extra == "misaki"
|
|
43
|
-
Requires-Dist: pip; python_version < "3.13" and extra == "misaki"
|
|
44
|
-
Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "misaki"
|
|
45
|
-
Provides-Extra: gl
|
|
46
|
-
Requires-Dist: pycotovia; extra == "gl"
|
|
47
|
-
Provides-Extra: eu
|
|
48
|
-
Requires-Dist: ahotts_g2p; extra == "eu"
|
|
49
|
-
Provides-Extra: fa
|
|
50
|
-
Requires-Dist: persian_phonemizer; extra == "fa"
|
|
51
|
-
Requires-Dist: hazm>=0.10; extra == "fa"
|
|
52
|
-
Requires-Dist: spacy<4.0,>=3.7; extra == "fa"
|
|
53
|
-
Provides-Extra: ja
|
|
54
|
-
Requires-Dist: pykakasi<3,>=2.3; extra == "ja"
|
|
55
|
-
Provides-Extra: ja-phonemizers
|
|
56
|
-
Requires-Dist: pykakasi<3,>=2.3; extra == "ja-phonemizers"
|
|
57
|
-
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "ja-phonemizers"
|
|
58
|
-
Provides-Extra: th
|
|
59
|
-
Requires-Dist: tltk<1.11,>=1.6.8; extra == "th"
|
|
60
|
-
Requires-Dist: pandas>=2; extra == "th"
|
|
61
|
-
Requires-Dist: requests>=2; extra == "th"
|
|
62
|
-
Requires-Dist: unicode-rbnf>=2.4.0; extra == "th"
|
|
63
|
-
Provides-Extra: ko
|
|
64
|
-
Requires-Dist: g2pk; python_version < "3.13" and extra == "ko"
|
|
65
|
-
Requires-Dist: regex; extra == "ko"
|
|
66
|
-
Provides-Extra: test
|
|
67
|
-
Requires-Dist: pytest; extra == "test"
|
|
68
|
-
Requires-Dist: pytest-timeout; extra == "test"
|
|
69
|
-
Requires-Dist: espyak; extra == "test"
|
|
70
|
-
Requires-Dist: pycotovia; extra == "test"
|
|
71
|
-
Requires-Dist: ahotts_g2p; extra == "test"
|
|
72
|
-
Requires-Dist: pykakasi<3,>=2.3; extra == "test"
|
|
73
|
-
Requires-Dist: epitran>=1.26.1; extra == "test"
|
|
74
|
-
Requires-Dist: g2pk; python_version < "3.13" and extra == "test"
|
|
75
|
-
Requires-Dist: regex; extra == "test"
|
|
76
|
-
Requires-Dist: misaki[en,ko,zh]; python_version < "3.13" and extra == "test"
|
|
77
|
-
Requires-Dist: fugashi; python_version < "3.13" and extra == "test"
|
|
78
|
-
Requires-Dist: jaconv; python_version < "3.13" and extra == "test"
|
|
79
|
-
Requires-Dist: mojimoji; python_version < "3.13" and extra == "test"
|
|
80
|
-
Requires-Dist: unidic-lite; python_version < "3.13" and extra == "test"
|
|
81
|
-
Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "test"
|
|
82
|
-
Requires-Dist: linguatag[langcodes]>=0.2.3a1; extra == "test"
|
|
83
|
-
Requires-Dist: packaging; extra == "test"
|
|
84
|
-
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "test"
|
|
85
|
-
Requires-Dist: tltk<1.11,>=1.6.8; extra == "test"
|
|
86
|
-
Requires-Dist: pandas>=2; extra == "test"
|
|
87
|
-
Requires-Dist: requests>=2; extra == "test"
|
|
88
|
-
Requires-Dist: unicode-rbnf>=2.4.0; extra == "test"
|
|
89
|
-
Dynamic: license-file
|
|
90
|
-
|
|
91
|
-
# scriptconv-copyleft
|
|
92
|
-
|
|
93
|
-
The scriptconv phonemizer backends whose own code or whose dependencies are under a copyleft licence (GPL, LGPL or AGPL).
|
|
94
|
-
|
|
95
|
-
## Where this fits
|
|
96
|
-
|
|
97
|
-
[scriptconv](https://github.com/TigreGotico/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.
|
|
98
|
-
|
|
99
|
-
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:
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
pip install scriptconv[espeak]
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
```python
|
|
106
|
-
from scriptconv.phonemizers import Phonemizer, get_phonemizer
|
|
107
|
-
|
|
108
|
-
get_phonemizer(Phonemizer.ESPEAK).phonemize_string("olá", "pt")
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
This package depends on scriptconv. scriptconv never imports this package when it is imported itself.
|
|
112
|
-
|
|
113
|
-
## Backends
|
|
114
|
-
|
|
115
|
-
| `Phonemizer` value | Class | Module | Copyleft item in the chain |
|
|
116
|
-
| --- | --- | --- | --- |
|
|
117
|
-
| `espeak` | `EspeakPhonemizer` | `scriptconv_copyleft.phonemizers.mul` | espyak (GPL-3.0-or-later), the espeak-ng binary (GPL-3.0-or-later) |
|
|
118
|
-
| `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) |
|
|
119
|
-
| `transphone` | `TransphonePhonemizer` | `scriptconv_copyleft.phonemizers.mul` | cmudict (GPL-3.0-or-later), unidecode (GPL-2.0-or-later), iso-639 (AGPL-3.0) |
|
|
120
|
-
| `cotovia` | `CotoviaPhonemizer` | `scriptconv_copyleft.phonemizers.gl` | pycotovia (GPL-3.0-or-later) |
|
|
121
|
-
| `ahotts` | `AhoTTSPhonemizer` | `scriptconv_copyleft.phonemizers.eu` | ahotts-g2p (GPL-3.0-or-later) |
|
|
122
|
-
| `g2pfa` | `PersianPhonemizer` | `scriptconv_copyleft.phonemizers.fa` | gensim (LGPL-2.1-only), through hazm |
|
|
123
|
-
| `g2pk` | `G2PKPhonemizer` | `scriptconv_copyleft.phonemizers.ko` | konlpy (GPL-3.0-or-later) |
|
|
124
|
-
| `kog2p` | `KoG2PPhonemizer` | `scriptconv_copyleft.phonemizers.ko` | the vendored KoG2P code (GPL-3.0-only) |
|
|
125
|
-
| `pykakasi` | `PyKakasiPhonemizer` | `scriptconv_copyleft.phonemizers.ja` | pykakasi (GPL-3.0-or-later) |
|
|
126
|
-
| `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) |
|
|
127
|
-
| `hebrew_ipa` | `HebrewIPAPhonemizer` | `scriptconv_copyleft.phonemizers.he` | the module itself, ported from piper1-gpl (GPL-3.0-or-later) |
|
|
128
|
-
| `openjtalk_prosody` | `OpenJTalkProsodyPhonemizer` | `scriptconv_copyleft.phonemizers.ja_prosody` | the module itself, ported from piper1-gpl (GPL-3.0-or-later) |
|
|
129
|
-
| `tltk` | `TLTKPhonemizer` | `scriptconv_copyleft.phonemizers.th` | the module itself, ported from piper1-gpl (GPL-3.0-or-later); tltk, treated as GPL because its licence statements disagree |
|
|
130
|
-
|
|
131
|
-
`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).
|
|
132
|
-
|
|
133
|
-
`hebrew_ipa` reads Hebrew text that carries niqqud and gives Modern Israeli Hebrew IPA with the stress mark. It adds no niqqud, so the diacritize stage of scriptconv (Nakdimon or phonikud) runs before it. The rules were written by Michael Hansen for Piper (OHF-Voice/piper1-gpl, `src/piper/hebrew/hebrew_ipa.py`).
|
|
134
|
-
|
|
135
|
-
`openjtalk_prosody` gives Japanese IPA from OpenJTalk, with the accent rise `↑`, the accent fall `↓`, the accent phrase boundary `#`, the pause `,` and the sentence ends `.` and `?`. The engine is OpenJTalk through pyopenjtalk-plus (MIT; dictionary BSD-3-Clause), and the accent marks follow ESPnet's `pyopenjtalk_g2p_prosody` (Apache-2.0). The IPA map was written for Piper (`src/piper/phonemize_japanese.py`). It needs the `ja-phonemizers` extra. It runs only when the `pyopenjtalk` module comes from pyopenjtalk-plus and onnxruntime imports, through the engine check of `scriptconv.phonemizers.openjtalk_engine`, because other installs give other readings.
|
|
136
|
-
|
|
137
|
-
`tltk` gives Thai IPA from TLTK (github.com/attapol/tltk), with a tone digit from 1 to 5 after each syllable. It reads numbers itself with unicode-rbnf (MIT). It drops digits that follow a letter with no space, for example `โควิด19` or `A4`, and logs a warning. The wrapper was written for Piper (`src/piper/phonemize_thai.py`). It needs the `th` extra.
|
|
138
|
-
|
|
139
|
-
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.
|
|
140
|
-
|
|
141
|
-
`scriptconv_copyleft.readings` holds the Japanese kanji-to-kana respelling (`tokens`, `to_hiragana`, `to_katakana`), which needs pykakasi.
|
|
142
|
-
|
|
143
|
-
Each backend's own dependencies install with its extra, for example `pip install scriptconv-copyleft[espeak]`.
|
|
144
|
-
|
|
145
|
-
## Licence
|
|
146
|
-
|
|
147
|
-
The package holds code and data under four licences. The SPDX expression is `Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0`.
|
|
148
|
-
|
|
149
|
-
| Files | Licence | Notice |
|
|
150
|
-
| --- | --- | --- |
|
|
151
|
-
| `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. |
|
|
152
|
-
| `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`. |
|
|
153
|
-
| `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. |
|
|
154
|
-
| `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. |
|
|
155
|
-
| `scriptconv_copyleft/phonemizers/he.py`, `ja_prosody.py`, `th.py` | GPL-3.0-or-later | Ported from OHF-Voice/piper1-gpl, which is GPL-3.0-or-later. Each module docstring names its source file and commit. The GPL text is `_vendored/reginute/COPYING`. |
|
|
156
|
-
| every other file | Apache-2.0 | `LICENSE` |
|
|
157
|
-
|
|
158
|
-
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.
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# scriptconv-copyleft
|
|
2
|
-
|
|
3
|
-
The scriptconv phonemizer backends whose own code or whose dependencies are under a copyleft licence (GPL, LGPL or AGPL).
|
|
4
|
-
|
|
5
|
-
## Where this fits
|
|
6
|
-
|
|
7
|
-
[scriptconv](https://github.com/TigreGotico/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.
|
|
8
|
-
|
|
9
|
-
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:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
pip install scriptconv[espeak]
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
```python
|
|
16
|
-
from scriptconv.phonemizers import Phonemizer, get_phonemizer
|
|
17
|
-
|
|
18
|
-
get_phonemizer(Phonemizer.ESPEAK).phonemize_string("olá", "pt")
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
This package depends on scriptconv. scriptconv never imports this package when it is imported itself.
|
|
22
|
-
|
|
23
|
-
## Backends
|
|
24
|
-
|
|
25
|
-
| `Phonemizer` value | Class | Module | Copyleft item in the chain |
|
|
26
|
-
| --- | --- | --- | --- |
|
|
27
|
-
| `espeak` | `EspeakPhonemizer` | `scriptconv_copyleft.phonemizers.mul` | espyak (GPL-3.0-or-later), the espeak-ng binary (GPL-3.0-or-later) |
|
|
28
|
-
| `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) |
|
|
29
|
-
| `transphone` | `TransphonePhonemizer` | `scriptconv_copyleft.phonemizers.mul` | cmudict (GPL-3.0-or-later), unidecode (GPL-2.0-or-later), iso-639 (AGPL-3.0) |
|
|
30
|
-
| `cotovia` | `CotoviaPhonemizer` | `scriptconv_copyleft.phonemizers.gl` | pycotovia (GPL-3.0-or-later) |
|
|
31
|
-
| `ahotts` | `AhoTTSPhonemizer` | `scriptconv_copyleft.phonemizers.eu` | ahotts-g2p (GPL-3.0-or-later) |
|
|
32
|
-
| `g2pfa` | `PersianPhonemizer` | `scriptconv_copyleft.phonemizers.fa` | gensim (LGPL-2.1-only), through hazm |
|
|
33
|
-
| `g2pk` | `G2PKPhonemizer` | `scriptconv_copyleft.phonemizers.ko` | konlpy (GPL-3.0-or-later) |
|
|
34
|
-
| `kog2p` | `KoG2PPhonemizer` | `scriptconv_copyleft.phonemizers.ko` | the vendored KoG2P code (GPL-3.0-only) |
|
|
35
|
-
| `pykakasi` | `PyKakasiPhonemizer` | `scriptconv_copyleft.phonemizers.ja` | pykakasi (GPL-3.0-or-later) |
|
|
36
|
-
| `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) |
|
|
37
|
-
| `hebrew_ipa` | `HebrewIPAPhonemizer` | `scriptconv_copyleft.phonemizers.he` | the module itself, ported from piper1-gpl (GPL-3.0-or-later) |
|
|
38
|
-
| `openjtalk_prosody` | `OpenJTalkProsodyPhonemizer` | `scriptconv_copyleft.phonemizers.ja_prosody` | the module itself, ported from piper1-gpl (GPL-3.0-or-later) |
|
|
39
|
-
| `tltk` | `TLTKPhonemizer` | `scriptconv_copyleft.phonemizers.th` | the module itself, ported from piper1-gpl (GPL-3.0-or-later); tltk, treated as GPL because its licence statements disagree |
|
|
40
|
-
|
|
41
|
-
`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).
|
|
42
|
-
|
|
43
|
-
`hebrew_ipa` reads Hebrew text that carries niqqud and gives Modern Israeli Hebrew IPA with the stress mark. It adds no niqqud, so the diacritize stage of scriptconv (Nakdimon or phonikud) runs before it. The rules were written by Michael Hansen for Piper (OHF-Voice/piper1-gpl, `src/piper/hebrew/hebrew_ipa.py`).
|
|
44
|
-
|
|
45
|
-
`openjtalk_prosody` gives Japanese IPA from OpenJTalk, with the accent rise `↑`, the accent fall `↓`, the accent phrase boundary `#`, the pause `,` and the sentence ends `.` and `?`. The engine is OpenJTalk through pyopenjtalk-plus (MIT; dictionary BSD-3-Clause), and the accent marks follow ESPnet's `pyopenjtalk_g2p_prosody` (Apache-2.0). The IPA map was written for Piper (`src/piper/phonemize_japanese.py`). It needs the `ja-phonemizers` extra. It runs only when the `pyopenjtalk` module comes from pyopenjtalk-plus and onnxruntime imports, through the engine check of `scriptconv.phonemizers.openjtalk_engine`, because other installs give other readings.
|
|
46
|
-
|
|
47
|
-
`tltk` gives Thai IPA from TLTK (github.com/attapol/tltk), with a tone digit from 1 to 5 after each syllable. It reads numbers itself with unicode-rbnf (MIT). It drops digits that follow a letter with no space, for example `โควิด19` or `A4`, and logs a warning. The wrapper was written for Piper (`src/piper/phonemize_thai.py`). It needs the `th` extra.
|
|
48
|
-
|
|
49
|
-
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.
|
|
50
|
-
|
|
51
|
-
`scriptconv_copyleft.readings` holds the Japanese kanji-to-kana respelling (`tokens`, `to_hiragana`, `to_katakana`), which needs pykakasi.
|
|
52
|
-
|
|
53
|
-
Each backend's own dependencies install with its extra, for example `pip install scriptconv-copyleft[espeak]`.
|
|
54
|
-
|
|
55
|
-
## Licence
|
|
56
|
-
|
|
57
|
-
The package holds code and data under four licences. The SPDX expression is `Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0`.
|
|
58
|
-
|
|
59
|
-
| Files | Licence | Notice |
|
|
60
|
-
| --- | --- | --- |
|
|
61
|
-
| `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. |
|
|
62
|
-
| `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`. |
|
|
63
|
-
| `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. |
|
|
64
|
-
| `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. |
|
|
65
|
-
| `scriptconv_copyleft/phonemizers/he.py`, `ja_prosody.py`, `th.py` | GPL-3.0-or-later | Ported from OHF-Voice/piper1-gpl, which is GPL-3.0-or-later. Each module docstring names its source file and commit. The GPL text is `_vendored/reginute/COPYING`. |
|
|
66
|
-
| every other file | Apache-2.0 | `LICENSE` |
|
|
67
|
-
|
|
68
|
-
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.
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: scriptconv-copyleft
|
|
3
|
-
Version: 0.3.0a1
|
|
4
|
-
Summary: scriptconv phonemizer backends whose code or dependencies are copyleft (GPL, LGPL, AGPL)
|
|
5
|
-
Author-email: TigreGotico <contact@tigregotico.com>
|
|
6
|
-
License-Expression: Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0
|
|
7
|
-
Project-URL: Homepage, https://github.com/TigreGotico/scriptconv-copyleft
|
|
8
|
-
Project-URL: Repository, https://github.com/TigreGotico/scriptconv-copyleft
|
|
9
|
-
Project-URL: Issues, https://github.com/TigreGotico/scriptconv-copyleft/issues
|
|
10
|
-
Keywords: g2p,phonemizer,tts,scriptconv,espeak,cotovia,ahotts,kog2p,misaki,transphone,lithuanian,hebrew,openjtalk,tltk,thai
|
|
11
|
-
Classifier: Development Status :: 3 - Alpha
|
|
12
|
-
Classifier: Intended Audience :: Developers
|
|
13
|
-
Classifier: Intended Audience :: Science/Research
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
-
Classifier: Topic :: Text Processing :: Linguistic
|
|
19
|
-
Requires-Python: >=3.11
|
|
20
|
-
Description-Content-Type: text/markdown
|
|
21
|
-
License-File: LICENSE
|
|
22
|
-
License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md
|
|
23
|
-
License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING
|
|
24
|
-
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING
|
|
25
|
-
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE
|
|
26
|
-
Requires-Dist: scriptconv[phonemizers]>=0.0.4a113
|
|
27
|
-
Provides-Extra: espeak
|
|
28
|
-
Requires-Dist: espyak; extra == "espeak"
|
|
29
|
-
Provides-Extra: transphone
|
|
30
|
-
Requires-Dist: transphone; extra == "transphone"
|
|
31
|
-
Requires-Dist: pip; extra == "transphone"
|
|
32
|
-
Requires-Dist: jieba; extra == "transphone"
|
|
33
|
-
Requires-Dist: pypinyin; extra == "transphone"
|
|
34
|
-
Requires-Dist: unidic-lite; extra == "transphone"
|
|
35
|
-
Provides-Extra: misaki
|
|
36
|
-
Requires-Dist: misaki[en,ko,zh]; python_version < "3.13" and extra == "misaki"
|
|
37
|
-
Requires-Dist: python-mecab-ko; python_version < "3.13" and extra == "misaki"
|
|
38
|
-
Requires-Dist: fugashi; python_version < "3.13" and extra == "misaki"
|
|
39
|
-
Requires-Dist: jaconv; python_version < "3.13" and extra == "misaki"
|
|
40
|
-
Requires-Dist: mojimoji; python_version < "3.13" and extra == "misaki"
|
|
41
|
-
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; python_version < "3.13" and extra == "misaki"
|
|
42
|
-
Requires-Dist: unidic-lite; python_version < "3.13" and extra == "misaki"
|
|
43
|
-
Requires-Dist: pip; python_version < "3.13" and extra == "misaki"
|
|
44
|
-
Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "misaki"
|
|
45
|
-
Provides-Extra: gl
|
|
46
|
-
Requires-Dist: pycotovia; extra == "gl"
|
|
47
|
-
Provides-Extra: eu
|
|
48
|
-
Requires-Dist: ahotts_g2p; extra == "eu"
|
|
49
|
-
Provides-Extra: fa
|
|
50
|
-
Requires-Dist: persian_phonemizer; extra == "fa"
|
|
51
|
-
Requires-Dist: hazm>=0.10; extra == "fa"
|
|
52
|
-
Requires-Dist: spacy<4.0,>=3.7; extra == "fa"
|
|
53
|
-
Provides-Extra: ja
|
|
54
|
-
Requires-Dist: pykakasi<3,>=2.3; extra == "ja"
|
|
55
|
-
Provides-Extra: ja-phonemizers
|
|
56
|
-
Requires-Dist: pykakasi<3,>=2.3; extra == "ja-phonemizers"
|
|
57
|
-
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "ja-phonemizers"
|
|
58
|
-
Provides-Extra: th
|
|
59
|
-
Requires-Dist: tltk<1.11,>=1.6.8; extra == "th"
|
|
60
|
-
Requires-Dist: pandas>=2; extra == "th"
|
|
61
|
-
Requires-Dist: requests>=2; extra == "th"
|
|
62
|
-
Requires-Dist: unicode-rbnf>=2.4.0; extra == "th"
|
|
63
|
-
Provides-Extra: ko
|
|
64
|
-
Requires-Dist: g2pk; python_version < "3.13" and extra == "ko"
|
|
65
|
-
Requires-Dist: regex; extra == "ko"
|
|
66
|
-
Provides-Extra: test
|
|
67
|
-
Requires-Dist: pytest; extra == "test"
|
|
68
|
-
Requires-Dist: pytest-timeout; extra == "test"
|
|
69
|
-
Requires-Dist: espyak; extra == "test"
|
|
70
|
-
Requires-Dist: pycotovia; extra == "test"
|
|
71
|
-
Requires-Dist: ahotts_g2p; extra == "test"
|
|
72
|
-
Requires-Dist: pykakasi<3,>=2.3; extra == "test"
|
|
73
|
-
Requires-Dist: epitran>=1.26.1; extra == "test"
|
|
74
|
-
Requires-Dist: g2pk; python_version < "3.13" and extra == "test"
|
|
75
|
-
Requires-Dist: regex; extra == "test"
|
|
76
|
-
Requires-Dist: misaki[en,ko,zh]; python_version < "3.13" and extra == "test"
|
|
77
|
-
Requires-Dist: fugashi; python_version < "3.13" and extra == "test"
|
|
78
|
-
Requires-Dist: jaconv; python_version < "3.13" and extra == "test"
|
|
79
|
-
Requires-Dist: mojimoji; python_version < "3.13" and extra == "test"
|
|
80
|
-
Requires-Dist: unidic-lite; python_version < "3.13" and extra == "test"
|
|
81
|
-
Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "test"
|
|
82
|
-
Requires-Dist: linguatag[langcodes]>=0.2.3a1; extra == "test"
|
|
83
|
-
Requires-Dist: packaging; extra == "test"
|
|
84
|
-
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "test"
|
|
85
|
-
Requires-Dist: tltk<1.11,>=1.6.8; extra == "test"
|
|
86
|
-
Requires-Dist: pandas>=2; extra == "test"
|
|
87
|
-
Requires-Dist: requests>=2; extra == "test"
|
|
88
|
-
Requires-Dist: unicode-rbnf>=2.4.0; extra == "test"
|
|
89
|
-
Dynamic: license-file
|
|
90
|
-
|
|
91
|
-
# scriptconv-copyleft
|
|
92
|
-
|
|
93
|
-
The scriptconv phonemizer backends whose own code or whose dependencies are under a copyleft licence (GPL, LGPL or AGPL).
|
|
94
|
-
|
|
95
|
-
## Where this fits
|
|
96
|
-
|
|
97
|
-
[scriptconv](https://github.com/TigreGotico/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.
|
|
98
|
-
|
|
99
|
-
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:
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
pip install scriptconv[espeak]
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
```python
|
|
106
|
-
from scriptconv.phonemizers import Phonemizer, get_phonemizer
|
|
107
|
-
|
|
108
|
-
get_phonemizer(Phonemizer.ESPEAK).phonemize_string("olá", "pt")
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
This package depends on scriptconv. scriptconv never imports this package when it is imported itself.
|
|
112
|
-
|
|
113
|
-
## Backends
|
|
114
|
-
|
|
115
|
-
| `Phonemizer` value | Class | Module | Copyleft item in the chain |
|
|
116
|
-
| --- | --- | --- | --- |
|
|
117
|
-
| `espeak` | `EspeakPhonemizer` | `scriptconv_copyleft.phonemizers.mul` | espyak (GPL-3.0-or-later), the espeak-ng binary (GPL-3.0-or-later) |
|
|
118
|
-
| `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) |
|
|
119
|
-
| `transphone` | `TransphonePhonemizer` | `scriptconv_copyleft.phonemizers.mul` | cmudict (GPL-3.0-or-later), unidecode (GPL-2.0-or-later), iso-639 (AGPL-3.0) |
|
|
120
|
-
| `cotovia` | `CotoviaPhonemizer` | `scriptconv_copyleft.phonemizers.gl` | pycotovia (GPL-3.0-or-later) |
|
|
121
|
-
| `ahotts` | `AhoTTSPhonemizer` | `scriptconv_copyleft.phonemizers.eu` | ahotts-g2p (GPL-3.0-or-later) |
|
|
122
|
-
| `g2pfa` | `PersianPhonemizer` | `scriptconv_copyleft.phonemizers.fa` | gensim (LGPL-2.1-only), through hazm |
|
|
123
|
-
| `g2pk` | `G2PKPhonemizer` | `scriptconv_copyleft.phonemizers.ko` | konlpy (GPL-3.0-or-later) |
|
|
124
|
-
| `kog2p` | `KoG2PPhonemizer` | `scriptconv_copyleft.phonemizers.ko` | the vendored KoG2P code (GPL-3.0-only) |
|
|
125
|
-
| `pykakasi` | `PyKakasiPhonemizer` | `scriptconv_copyleft.phonemizers.ja` | pykakasi (GPL-3.0-or-later) |
|
|
126
|
-
| `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) |
|
|
127
|
-
| `hebrew_ipa` | `HebrewIPAPhonemizer` | `scriptconv_copyleft.phonemizers.he` | the module itself, ported from piper1-gpl (GPL-3.0-or-later) |
|
|
128
|
-
| `openjtalk_prosody` | `OpenJTalkProsodyPhonemizer` | `scriptconv_copyleft.phonemizers.ja_prosody` | the module itself, ported from piper1-gpl (GPL-3.0-or-later) |
|
|
129
|
-
| `tltk` | `TLTKPhonemizer` | `scriptconv_copyleft.phonemizers.th` | the module itself, ported from piper1-gpl (GPL-3.0-or-later); tltk, treated as GPL because its licence statements disagree |
|
|
130
|
-
|
|
131
|
-
`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).
|
|
132
|
-
|
|
133
|
-
`hebrew_ipa` reads Hebrew text that carries niqqud and gives Modern Israeli Hebrew IPA with the stress mark. It adds no niqqud, so the diacritize stage of scriptconv (Nakdimon or phonikud) runs before it. The rules were written by Michael Hansen for Piper (OHF-Voice/piper1-gpl, `src/piper/hebrew/hebrew_ipa.py`).
|
|
134
|
-
|
|
135
|
-
`openjtalk_prosody` gives Japanese IPA from OpenJTalk, with the accent rise `↑`, the accent fall `↓`, the accent phrase boundary `#`, the pause `,` and the sentence ends `.` and `?`. The engine is OpenJTalk through pyopenjtalk-plus (MIT; dictionary BSD-3-Clause), and the accent marks follow ESPnet's `pyopenjtalk_g2p_prosody` (Apache-2.0). The IPA map was written for Piper (`src/piper/phonemize_japanese.py`). It needs the `ja-phonemizers` extra. It runs only when the `pyopenjtalk` module comes from pyopenjtalk-plus and onnxruntime imports, through the engine check of `scriptconv.phonemizers.openjtalk_engine`, because other installs give other readings.
|
|
136
|
-
|
|
137
|
-
`tltk` gives Thai IPA from TLTK (github.com/attapol/tltk), with a tone digit from 1 to 5 after each syllable. It reads numbers itself with unicode-rbnf (MIT). It drops digits that follow a letter with no space, for example `โควิด19` or `A4`, and logs a warning. The wrapper was written for Piper (`src/piper/phonemize_thai.py`). It needs the `th` extra.
|
|
138
|
-
|
|
139
|
-
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.
|
|
140
|
-
|
|
141
|
-
`scriptconv_copyleft.readings` holds the Japanese kanji-to-kana respelling (`tokens`, `to_hiragana`, `to_katakana`), which needs pykakasi.
|
|
142
|
-
|
|
143
|
-
Each backend's own dependencies install with its extra, for example `pip install scriptconv-copyleft[espeak]`.
|
|
144
|
-
|
|
145
|
-
## Licence
|
|
146
|
-
|
|
147
|
-
The package holds code and data under four licences. The SPDX expression is `Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0`.
|
|
148
|
-
|
|
149
|
-
| Files | Licence | Notice |
|
|
150
|
-
| --- | --- | --- |
|
|
151
|
-
| `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. |
|
|
152
|
-
| `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`. |
|
|
153
|
-
| `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. |
|
|
154
|
-
| `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. |
|
|
155
|
-
| `scriptconv_copyleft/phonemizers/he.py`, `ja_prosody.py`, `th.py` | GPL-3.0-or-later | Ported from OHF-Voice/piper1-gpl, which is GPL-3.0-or-later. Each module docstring names its source file and commit. The GPL text is `_vendored/reginute/COPYING`. |
|
|
156
|
-
| every other file | Apache-2.0 | `LICENSE` |
|
|
157
|
-
|
|
158
|
-
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.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/eu.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/fa.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/gl.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/he.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/ja.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/ko.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/lt.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/th.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_espeak_acute_stress.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_espeak_get_lang_case.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_lang_default_region.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_match_lang_direction.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_match_lang_preferred_value.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_cjk_ar.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_identity.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_misaki_british.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.0a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_punctuation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|