scriptconv-copyleft 0.3.1a1__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.
Files changed (59) hide show
  1. scriptconv_copyleft-0.3.1a2/PKG-INFO +159 -0
  2. scriptconv_copyleft-0.3.1a2/README.md +69 -0
  3. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/version.py +1 -1
  4. scriptconv_copyleft-0.3.1a2/scriptconv_copyleft.egg-info/PKG-INFO +159 -0
  5. scriptconv_copyleft-0.3.1a1/PKG-INFO +0 -158
  6. scriptconv_copyleft-0.3.1a1/README.md +0 -68
  7. scriptconv_copyleft-0.3.1a1/scriptconv_copyleft.egg-info/PKG-INFO +0 -158
  8. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/LICENSE +0 -0
  9. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/pyproject.toml +0 -0
  10. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/__init__.py +0 -0
  11. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/__init__.py +0 -0
  12. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/__init__.py +0 -0
  13. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING +0 -0
  14. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md +0 -0
  15. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/__init__.py +0 -0
  16. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/rulebook.txt +0 -0
  17. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING +0 -0
  18. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE +0 -0
  19. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/SOURCE +0 -0
  20. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kirciai.tsv +0 -0
  21. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kreipiniai.tsv +0 -0
  22. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_raides.tsv +0 -0
  23. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/eu.py +0 -0
  24. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/fa.py +0 -0
  25. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/gl.py +0 -0
  26. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/he.py +0 -0
  27. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/ja.py +0 -0
  28. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/ja_prosody.py +0 -0
  29. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/ko.py +0 -0
  30. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/lt.py +0 -0
  31. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/mul.py +0 -0
  32. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/phonemizers/th.py +0 -0
  33. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft/readings.py +0 -0
  34. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft.egg-info/SOURCES.txt +0 -0
  35. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft.egg-info/dependency_links.txt +0 -0
  36. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft.egg-info/requires.txt +0 -0
  37. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/scriptconv_copyleft.egg-info/top_level.txt +0 -0
  38. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/setup.cfg +0 -0
  39. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_espeak_acute_stress.py +0 -0
  40. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_espeak_french_english_switch.py +0 -0
  41. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_espeak_get_lang_case.py +0 -0
  42. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_espeak_long_line.py +0 -0
  43. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_espeak_lt_accent.py +0 -0
  44. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_hebrew_ipa.py +0 -0
  45. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_lang_default_region.py +0 -0
  46. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_match_lang_direction.py +0 -0
  47. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_match_lang_preferred_value.py +0 -0
  48. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_misaki_ja_reader.py +0 -0
  49. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_misaki_zh_zero.py +0 -0
  50. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_openjtalk_prosody.py +0 -0
  51. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_base.py +0 -0
  52. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_cjk_ar.py +0 -0
  53. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_friendly_import_errors.py +0 -0
  54. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_identity.py +0 -0
  55. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_misaki_british.py +0 -0
  56. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_phonemizers_punctuation.py +0 -0
  57. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_readings.py +0 -0
  58. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a2}/tests/test_tltk.py +0 -0
  59. {scriptconv_copyleft-0.3.1a1 → 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.
@@ -2,7 +2,7 @@
2
2
  VERSION_MAJOR = 0
3
3
  VERSION_MINOR = 3
4
4
  VERSION_BUILD = 1
5
- VERSION_ALPHA = 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.
@@ -1,158 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: scriptconv-copyleft
3
- Version: 0.3.1a1
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.1a1
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.