scriptconv-copyleft 0.3.1a1__tar.gz → 0.3.1a3__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 (60) hide show
  1. scriptconv_copyleft-0.3.1a3/PKG-INFO +161 -0
  2. scriptconv_copyleft-0.3.1a3/README.md +69 -0
  3. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/pyproject.toml +2 -2
  4. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/version.py +1 -1
  5. scriptconv_copyleft-0.3.1a3/scriptconv_copyleft.egg-info/PKG-INFO +161 -0
  6. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft.egg-info/SOURCES.txt +1 -0
  7. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft.egg-info/requires.txt +4 -2
  8. scriptconv_copyleft-0.3.1a3/tests/test_misaki_vi.py +26 -0
  9. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_phonemizers_identity.py +14 -3
  10. scriptconv_copyleft-0.3.1a1/PKG-INFO +0 -158
  11. scriptconv_copyleft-0.3.1a1/README.md +0 -68
  12. scriptconv_copyleft-0.3.1a1/scriptconv_copyleft.egg-info/PKG-INFO +0 -158
  13. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/LICENSE +0 -0
  14. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/__init__.py +0 -0
  15. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/__init__.py +0 -0
  16. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/_vendored/__init__.py +0 -0
  17. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING +0 -0
  18. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md +0 -0
  19. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/_vendored/kog2p/__init__.py +0 -0
  20. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/_vendored/kog2p/rulebook.txt +0 -0
  21. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING +0 -0
  22. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE +0 -0
  23. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/_vendored/reginute/SOURCE +0 -0
  24. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kirciai.tsv +0 -0
  25. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kreipiniai.tsv +0 -0
  26. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_raides.tsv +0 -0
  27. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/eu.py +0 -0
  28. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/fa.py +0 -0
  29. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/gl.py +0 -0
  30. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/he.py +0 -0
  31. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/ja.py +0 -0
  32. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/ja_prosody.py +0 -0
  33. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/ko.py +0 -0
  34. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/lt.py +0 -0
  35. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/mul.py +0 -0
  36. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/phonemizers/th.py +0 -0
  37. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft/readings.py +0 -0
  38. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft.egg-info/dependency_links.txt +0 -0
  39. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/scriptconv_copyleft.egg-info/top_level.txt +0 -0
  40. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/setup.cfg +0 -0
  41. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_espeak_acute_stress.py +0 -0
  42. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_espeak_french_english_switch.py +0 -0
  43. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_espeak_get_lang_case.py +0 -0
  44. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_espeak_long_line.py +0 -0
  45. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_espeak_lt_accent.py +0 -0
  46. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_hebrew_ipa.py +0 -0
  47. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_lang_default_region.py +0 -0
  48. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_match_lang_direction.py +0 -0
  49. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_match_lang_preferred_value.py +0 -0
  50. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_misaki_ja_reader.py +0 -0
  51. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_misaki_zh_zero.py +0 -0
  52. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_openjtalk_prosody.py +0 -0
  53. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_phonemizers_base.py +0 -0
  54. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_phonemizers_cjk_ar.py +0 -0
  55. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_phonemizers_friendly_import_errors.py +0 -0
  56. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_phonemizers_misaki_british.py +0 -0
  57. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_phonemizers_punctuation.py +0 -0
  58. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_readings.py +0 -0
  59. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_tltk.py +0 -0
  60. {scriptconv_copyleft-0.3.1a1 → scriptconv_copyleft-0.3.1a3}/tests/test_transphone_extra_declares_auto_installs.py +0 -0
@@ -0,0 +1,161 @@
1
+ Metadata-Version: 2.4
2
+ Name: scriptconv-copyleft
3
+ Version: 0.3.1a3
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,vi,zh]; python_version < "3.13" and extra == "misaki"
37
+ Requires-Dist: vietnam-number; python_version < "3.13" and extra == "misaki"
38
+ Requires-Dist: python-mecab-ko; python_version < "3.13" and extra == "misaki"
39
+ Requires-Dist: fugashi; python_version < "3.13" and extra == "misaki"
40
+ Requires-Dist: jaconv; python_version < "3.13" and extra == "misaki"
41
+ Requires-Dist: mojimoji; python_version < "3.13" and extra == "misaki"
42
+ Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; python_version < "3.13" and extra == "misaki"
43
+ Requires-Dist: unidic-lite; python_version < "3.13" and extra == "misaki"
44
+ Requires-Dist: pip; python_version < "3.13" and extra == "misaki"
45
+ Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "misaki"
46
+ Provides-Extra: gl
47
+ Requires-Dist: pycotovia; extra == "gl"
48
+ Provides-Extra: eu
49
+ Requires-Dist: ahotts_g2p; extra == "eu"
50
+ Provides-Extra: fa
51
+ Requires-Dist: persian_phonemizer; extra == "fa"
52
+ Requires-Dist: hazm>=0.10; extra == "fa"
53
+ Requires-Dist: spacy<4.0,>=3.7; extra == "fa"
54
+ Provides-Extra: ja
55
+ Requires-Dist: pykakasi<3,>=2.3; extra == "ja"
56
+ Provides-Extra: ja-phonemizers
57
+ Requires-Dist: pykakasi<3,>=2.3; extra == "ja-phonemizers"
58
+ Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "ja-phonemizers"
59
+ Provides-Extra: th
60
+ Requires-Dist: tltk<1.11,>=1.6.8; extra == "th"
61
+ Requires-Dist: pandas>=2; extra == "th"
62
+ Requires-Dist: requests>=2; extra == "th"
63
+ Requires-Dist: unicode-rbnf>=2.4.0; extra == "th"
64
+ Provides-Extra: ko
65
+ Requires-Dist: g2pk; python_version < "3.13" and extra == "ko"
66
+ Requires-Dist: regex; extra == "ko"
67
+ Provides-Extra: test
68
+ Requires-Dist: pytest; extra == "test"
69
+ Requires-Dist: pytest-timeout; extra == "test"
70
+ Requires-Dist: espyak; extra == "test"
71
+ Requires-Dist: pycotovia; extra == "test"
72
+ Requires-Dist: ahotts_g2p; extra == "test"
73
+ Requires-Dist: pykakasi<3,>=2.3; extra == "test"
74
+ Requires-Dist: epitran>=1.26.1; extra == "test"
75
+ Requires-Dist: g2pk; python_version < "3.13" and extra == "test"
76
+ Requires-Dist: regex; extra == "test"
77
+ Requires-Dist: misaki[en,ko,vi,zh]; python_version < "3.13" and extra == "test"
78
+ Requires-Dist: vietnam-number; python_version < "3.13" and extra == "test"
79
+ Requires-Dist: fugashi; python_version < "3.13" and extra == "test"
80
+ Requires-Dist: jaconv; python_version < "3.13" and extra == "test"
81
+ Requires-Dist: mojimoji; python_version < "3.13" and extra == "test"
82
+ Requires-Dist: unidic-lite; python_version < "3.13" and extra == "test"
83
+ Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "test"
84
+ Requires-Dist: linguatag[langcodes]>=0.2.3a1; extra == "test"
85
+ Requires-Dist: packaging; extra == "test"
86
+ Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "test"
87
+ Requires-Dist: tltk<1.11,>=1.6.8; extra == "test"
88
+ Requires-Dist: pandas>=2; extra == "test"
89
+ Requires-Dist: requests>=2; extra == "test"
90
+ Requires-Dist: unicode-rbnf>=2.4.0; extra == "test"
91
+ Dynamic: license-file
92
+
93
+ # scriptconv-copyleft
94
+
95
+ <!-- agent-hint
96
+ covers: what scriptconv-copyleft is, the quickstart, the backends it holds and its licence
97
+ source: pyproject.toml, scriptconv_copyleft/phonemizers/, scriptconv/phonemizers/registry.py in scriptconv
98
+ generated: no
99
+ verify: python -m doctest README.md
100
+ see: docs/index.md, docs/getting-started.md, AGENTS.md
101
+ -->
102
+
103
+ scriptconv-copyleft holds the phonemizer backends of
104
+ [scriptconv](https://github.com/TigreGotico/scriptconv) that have a copyleft
105
+ licence (GPL, LGPL or AGPL) in their code or in their dependencies. scriptconv
106
+ keeps the registry, and its extras install this package, so you call the
107
+ backends through scriptconv as usual.
108
+
109
+ ## Quickstart
110
+
111
+ ```bash
112
+ uv pip install --prerelease=allow "scriptconv[espeak]"
113
+ ```
114
+
115
+ ```python
116
+ >>> from scriptconv.phonemizers import Phonemizer, get_phonemizer
117
+ >>> get_phonemizer(Phonemizer.ESPEAK).phonemize_string("olá mundo", "pt")
118
+ 'ɔlˈa mˈũŋdʊ'
119
+
120
+ ```
121
+
122
+ The backend runs the espeak-ng program when it is on `PATH`, and espyak, its
123
+ Python port, when it is not. [Getting started](docs/getting-started.md) walks
124
+ through the install, the alphabets and the engine identity.
125
+
126
+ ## Backends
127
+
128
+ | `Phonemizer` values | scriptconv extra |
129
+ | --- | --- |
130
+ | `espeak`, `espeak_lt_accent` | `espeak` |
131
+ | `transphone` | `transphone` |
132
+ | `misaki`, `misaki_en`, `misaki_ja`, `misaki_zh`, `misaki_ko`, `misaki_vi` | `misaki` |
133
+ | `cotovia` | `gl` |
134
+ | `ahotts` | `eu` |
135
+ | `hebrew_ipa` | `he` |
136
+ | `tltk` | `th` |
137
+ | `g2pfa` | `fa` |
138
+ | `pykakasi`, `openjtalk_prosody` | `ja-phonemizers` |
139
+ | `g2pk`, `kog2p` | `ko` |
140
+
141
+ The package also holds the Japanese kanji-to-kana readings that
142
+ `scriptconv.readings` gives, through the `ja` extra. The
143
+ [backend reference](docs/backends.md) gives the languages, alphabets,
144
+ parameters, licence and downloads of each backend.
145
+
146
+ ## Licence
147
+
148
+ The package is `Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0`.
149
+ Its own glue code is Apache-2.0. The vendored KoG2P code and the code and data
150
+ from Reginutė are GPL-3.0-only, and the modules ported from Piper are
151
+ GPL-3.0-or-later. The other backends are here because of a dependency, for
152
+ example espyak, pycotovia or pykakasi under the GPL. A program that installs
153
+ and uses a backend must follow the licences of that backend and of its
154
+ dependencies. [Licences](docs/licences.md) gives the copyleft item of each
155
+ backend and the licence of each file.
156
+
157
+ ## Documentation
158
+
159
+ The [documentation index](docs/index.md) lists every page in reading order.
160
+ The [scriptconv documentation](https://github.com/TigreGotico/scriptconv/tree/dev/docs)
161
+ 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.
@@ -35,7 +35,7 @@ classifiers = [
35
35
  [project.optional-dependencies]
36
36
  espeak = ["espyak"]
37
37
  transphone = ["transphone", "pip", "jieba", "pypinyin", "unidic-lite"]
38
- misaki = ["misaki[en,ko,zh]; python_version<'3.13'", "python-mecab-ko; python_version<'3.13'", "fugashi; python_version<'3.13'", "jaconv; python_version<'3.13'", "mojimoji; python_version<'3.13'", "pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; python_version<'3.13'", "unidic-lite; python_version<'3.13'", "pip; python_version<'3.13'", "spacy>=3.7,<4.0; python_version<'3.13'"]
38
+ misaki = ["misaki[en,ko,vi,zh]; python_version<'3.13'", "vietnam-number; python_version<'3.13'", "python-mecab-ko; python_version<'3.13'", "fugashi; python_version<'3.13'", "jaconv; python_version<'3.13'", "mojimoji; python_version<'3.13'", "pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; python_version<'3.13'", "unidic-lite; python_version<'3.13'", "pip; python_version<'3.13'", "spacy>=3.7,<4.0; python_version<'3.13'"]
39
39
  gl = ["pycotovia"]
40
40
  eu = ["ahotts_g2p"]
41
41
  fa = ["persian_phonemizer", "hazm>=0.10", "spacy>=3.7,<4.0"]
@@ -43,7 +43,7 @@ ja = ["pykakasi>=2.3,<3"]
43
43
  ja-phonemizers = ["pykakasi>=2.3,<3", "pyopenjtalk-plus[onnxruntime]>=0.4.1.post10"]
44
44
  th = ["tltk>=1.6.8,<1.11", "pandas>=2", "requests>=2", "unicode-rbnf>=2.4.0"]
45
45
  ko = ["g2pk; python_version<'3.13'", "regex"]
46
- test = ["pytest", "pytest-timeout", "espyak", "pycotovia", "ahotts_g2p", "pykakasi>=2.3,<3", "epitran>=1.26.1", "g2pk; python_version<'3.13'", "regex", "misaki[en,ko,zh]; python_version<'3.13'", "fugashi; python_version<'3.13'", "jaconv; python_version<'3.13'", "mojimoji; python_version<'3.13'", "unidic-lite; python_version<'3.13'", "spacy>=3.7,<4.0; python_version<'3.13'", "linguatag[langcodes]>=0.2.3a1", "packaging", "pyopenjtalk-plus[onnxruntime]>=0.4.1.post10", "tltk>=1.6.8,<1.11", "pandas>=2", "requests>=2", "unicode-rbnf>=2.4.0"]
46
+ test = ["pytest", "pytest-timeout", "espyak", "pycotovia", "ahotts_g2p", "pykakasi>=2.3,<3", "epitran>=1.26.1", "g2pk; python_version<'3.13'", "regex", "misaki[en,ko,vi,zh]; python_version<'3.13'", "vietnam-number; python_version<'3.13'", "fugashi; python_version<'3.13'", "jaconv; python_version<'3.13'", "mojimoji; python_version<'3.13'", "unidic-lite; python_version<'3.13'", "spacy>=3.7,<4.0; python_version<'3.13'", "linguatag[langcodes]>=0.2.3a1", "packaging", "pyopenjtalk-plus[onnxruntime]>=0.4.1.post10", "tltk>=1.6.8,<1.11", "pandas>=2", "requests>=2", "unicode-rbnf>=2.4.0"]
47
47
 
48
48
  [project.urls]
49
49
  Homepage = "https://github.com/TigreGotico/scriptconv-copyleft"
@@ -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 = 3
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,161 @@
1
+ Metadata-Version: 2.4
2
+ Name: scriptconv-copyleft
3
+ Version: 0.3.1a3
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,vi,zh]; python_version < "3.13" and extra == "misaki"
37
+ Requires-Dist: vietnam-number; python_version < "3.13" and extra == "misaki"
38
+ Requires-Dist: python-mecab-ko; python_version < "3.13" and extra == "misaki"
39
+ Requires-Dist: fugashi; python_version < "3.13" and extra == "misaki"
40
+ Requires-Dist: jaconv; python_version < "3.13" and extra == "misaki"
41
+ Requires-Dist: mojimoji; python_version < "3.13" and extra == "misaki"
42
+ Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; python_version < "3.13" and extra == "misaki"
43
+ Requires-Dist: unidic-lite; python_version < "3.13" and extra == "misaki"
44
+ Requires-Dist: pip; python_version < "3.13" and extra == "misaki"
45
+ Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "misaki"
46
+ Provides-Extra: gl
47
+ Requires-Dist: pycotovia; extra == "gl"
48
+ Provides-Extra: eu
49
+ Requires-Dist: ahotts_g2p; extra == "eu"
50
+ Provides-Extra: fa
51
+ Requires-Dist: persian_phonemizer; extra == "fa"
52
+ Requires-Dist: hazm>=0.10; extra == "fa"
53
+ Requires-Dist: spacy<4.0,>=3.7; extra == "fa"
54
+ Provides-Extra: ja
55
+ Requires-Dist: pykakasi<3,>=2.3; extra == "ja"
56
+ Provides-Extra: ja-phonemizers
57
+ Requires-Dist: pykakasi<3,>=2.3; extra == "ja-phonemizers"
58
+ Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "ja-phonemizers"
59
+ Provides-Extra: th
60
+ Requires-Dist: tltk<1.11,>=1.6.8; extra == "th"
61
+ Requires-Dist: pandas>=2; extra == "th"
62
+ Requires-Dist: requests>=2; extra == "th"
63
+ Requires-Dist: unicode-rbnf>=2.4.0; extra == "th"
64
+ Provides-Extra: ko
65
+ Requires-Dist: g2pk; python_version < "3.13" and extra == "ko"
66
+ Requires-Dist: regex; extra == "ko"
67
+ Provides-Extra: test
68
+ Requires-Dist: pytest; extra == "test"
69
+ Requires-Dist: pytest-timeout; extra == "test"
70
+ Requires-Dist: espyak; extra == "test"
71
+ Requires-Dist: pycotovia; extra == "test"
72
+ Requires-Dist: ahotts_g2p; extra == "test"
73
+ Requires-Dist: pykakasi<3,>=2.3; extra == "test"
74
+ Requires-Dist: epitran>=1.26.1; extra == "test"
75
+ Requires-Dist: g2pk; python_version < "3.13" and extra == "test"
76
+ Requires-Dist: regex; extra == "test"
77
+ Requires-Dist: misaki[en,ko,vi,zh]; python_version < "3.13" and extra == "test"
78
+ Requires-Dist: vietnam-number; python_version < "3.13" and extra == "test"
79
+ Requires-Dist: fugashi; python_version < "3.13" and extra == "test"
80
+ Requires-Dist: jaconv; python_version < "3.13" and extra == "test"
81
+ Requires-Dist: mojimoji; python_version < "3.13" and extra == "test"
82
+ Requires-Dist: unidic-lite; python_version < "3.13" and extra == "test"
83
+ Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "test"
84
+ Requires-Dist: linguatag[langcodes]>=0.2.3a1; extra == "test"
85
+ Requires-Dist: packaging; extra == "test"
86
+ Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "test"
87
+ Requires-Dist: tltk<1.11,>=1.6.8; extra == "test"
88
+ Requires-Dist: pandas>=2; extra == "test"
89
+ Requires-Dist: requests>=2; extra == "test"
90
+ Requires-Dist: unicode-rbnf>=2.4.0; extra == "test"
91
+ Dynamic: license-file
92
+
93
+ # scriptconv-copyleft
94
+
95
+ <!-- agent-hint
96
+ covers: what scriptconv-copyleft is, the quickstart, the backends it holds and its licence
97
+ source: pyproject.toml, scriptconv_copyleft/phonemizers/, scriptconv/phonemizers/registry.py in scriptconv
98
+ generated: no
99
+ verify: python -m doctest README.md
100
+ see: docs/index.md, docs/getting-started.md, AGENTS.md
101
+ -->
102
+
103
+ scriptconv-copyleft holds the phonemizer backends of
104
+ [scriptconv](https://github.com/TigreGotico/scriptconv) that have a copyleft
105
+ licence (GPL, LGPL or AGPL) in their code or in their dependencies. scriptconv
106
+ keeps the registry, and its extras install this package, so you call the
107
+ backends through scriptconv as usual.
108
+
109
+ ## Quickstart
110
+
111
+ ```bash
112
+ uv pip install --prerelease=allow "scriptconv[espeak]"
113
+ ```
114
+
115
+ ```python
116
+ >>> from scriptconv.phonemizers import Phonemizer, get_phonemizer
117
+ >>> get_phonemizer(Phonemizer.ESPEAK).phonemize_string("olá mundo", "pt")
118
+ 'ɔlˈa mˈũŋdʊ'
119
+
120
+ ```
121
+
122
+ The backend runs the espeak-ng program when it is on `PATH`, and espyak, its
123
+ Python port, when it is not. [Getting started](docs/getting-started.md) walks
124
+ through the install, the alphabets and the engine identity.
125
+
126
+ ## Backends
127
+
128
+ | `Phonemizer` values | scriptconv extra |
129
+ | --- | --- |
130
+ | `espeak`, `espeak_lt_accent` | `espeak` |
131
+ | `transphone` | `transphone` |
132
+ | `misaki`, `misaki_en`, `misaki_ja`, `misaki_zh`, `misaki_ko`, `misaki_vi` | `misaki` |
133
+ | `cotovia` | `gl` |
134
+ | `ahotts` | `eu` |
135
+ | `hebrew_ipa` | `he` |
136
+ | `tltk` | `th` |
137
+ | `g2pfa` | `fa` |
138
+ | `pykakasi`, `openjtalk_prosody` | `ja-phonemizers` |
139
+ | `g2pk`, `kog2p` | `ko` |
140
+
141
+ The package also holds the Japanese kanji-to-kana readings that
142
+ `scriptconv.readings` gives, through the `ja` extra. The
143
+ [backend reference](docs/backends.md) gives the languages, alphabets,
144
+ parameters, licence and downloads of each backend.
145
+
146
+ ## Licence
147
+
148
+ The package is `Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0`.
149
+ Its own glue code is Apache-2.0. The vendored KoG2P code and the code and data
150
+ from Reginutė are GPL-3.0-only, and the modules ported from Piper are
151
+ GPL-3.0-or-later. The other backends are here because of a dependency, for
152
+ example espyak, pycotovia or pykakasi under the GPL. A program that installs
153
+ and uses a backend must follow the licences of that backend and of its
154
+ dependencies. [Licences](docs/licences.md) gives the copyleft item of each
155
+ backend and the licence of each file.
156
+
157
+ ## Documentation
158
+
159
+ The [documentation index](docs/index.md) lists every page in reading order.
160
+ The [scriptconv documentation](https://github.com/TigreGotico/scriptconv/tree/dev/docs)
161
+ explains the phonemizer contract and the other backends.
@@ -41,6 +41,7 @@ tests/test_lang_default_region.py
41
41
  tests/test_match_lang_direction.py
42
42
  tests/test_match_lang_preferred_value.py
43
43
  tests/test_misaki_ja_reader.py
44
+ tests/test_misaki_vi.py
44
45
  tests/test_misaki_zh_zero.py
45
46
  tests/test_openjtalk_prosody.py
46
47
  tests/test_phonemizers_base.py
@@ -30,7 +30,8 @@ g2pk
30
30
  [misaki]
31
31
 
32
32
  [misaki:python_version < "3.13"]
33
- misaki[en,ko,zh]
33
+ misaki[en,ko,vi,zh]
34
+ vietnam-number
34
35
  python-mecab-ko
35
36
  fugashi
36
37
  jaconv
@@ -59,7 +60,8 @@ unicode-rbnf>=2.4.0
59
60
 
60
61
  [test:python_version < "3.13"]
61
62
  g2pk
62
- misaki[en,ko,zh]
63
+ misaki[en,ko,vi,zh]
64
+ vietnam-number
63
65
  fugashi
64
66
  jaconv
65
67
  mojimoji
@@ -0,0 +1,26 @@
1
+ """The ``misaki`` extra installs what misaki's Vietnamese G2P imports.
2
+
3
+ misaki 0.9.4 ``misaki/vi.py`` imports underthesea, which the ``vi`` extra of
4
+ misaki declares, and ``misaki/vi_cleaner/datestime_vi.py`` imports
5
+ vietnam_number, which misaki does not declare.
6
+
7
+ misaki declares ``Requires-Python <3.13``, so the ``test`` extra installs it
8
+ only below 3.13 and this test runs only there.
9
+ """
10
+ import sys
11
+ import unittest
12
+
13
+ from scriptconv.phonemizers import Phonemizer
14
+ from scriptconv.phonemizers.registry import get_phonemizer
15
+
16
+
17
+ @unittest.skipIf(sys.version_info >= (3, 13), "misaki declares Requires-Python <3.13")
18
+ class TestMisakiVietnamese(unittest.TestCase):
19
+ def test_misaki_vi_gives_the_phonemes_of_misaki(self):
20
+ from misaki.vi import VIG2P
21
+ expected, _ = VIG2P()("xin chào")
22
+ self.assertEqual(get_phonemizer(Phonemizer.MISAKI_VI).phonemize_string("xin chào", "vi"), expected)
23
+
24
+
25
+ if __name__ == "__main__":
26
+ unittest.main()
@@ -1,12 +1,13 @@
1
1
  """``PhonemizerIdentity`` for the wrappers this package holds."""
2
+ import re
2
3
  import sys
3
4
  from importlib import metadata
4
5
  from unittest import mock
5
6
 
6
7
  import espyak.version
7
8
  import pytest
9
+ from scriptconv.phonemizers._revision import FORMAT as REVISION_FORMAT
8
10
 
9
- from scriptconv.phonemizers import PhonemizerIdentity
10
11
  from scriptconv_copyleft.phonemizers.ko import G2PKPhonemizer
11
12
  from scriptconv_copyleft.phonemizers.mul import EspeakPhonemizer
12
13
 
@@ -17,8 +18,18 @@ class TestIdentity:
17
18
  @pytest.mark.skipif(sys.version_info >= (3, 13),
18
19
  reason="python-mecab-ko has no Python 3.13 wheel")
19
20
  def test_g2pk_reports_the_installed_engine(self):
20
- assert G2PKPhonemizer().identity("ko") == PhonemizerIdentity(
21
- backend="g2pk", distribution="g2pk", version=metadata.version("g2pk"), lang="ko")
21
+ identity = G2PKPhonemizer().identity("ko")
22
+ assert (identity.backend, identity.distribution, identity.version, identity.lang, identity.frontend) == \
23
+ ("g2pk", "g2pk", metadata.version("g2pk"), "ko", None)
24
+ # the revision of an in-tree backend is the hash of the code on its path
25
+ assert re.fullmatch(rf"{REVISION_FORMAT}:[0-9a-f]{{64}}", identity.revision)
26
+
27
+ @pytest.mark.skipif(sys.version_info >= (3, 13),
28
+ reason="python-mecab-ko has no Python 3.13 wheel")
29
+ def test_a_g2pk_release_changes_the_revision(self):
30
+ with mock.patch.object(G2PKPhonemizer, "_engine_release", return_value=("g2pk", "0.0.0")):
31
+ other = G2PKPhonemizer().identity("ko")
32
+ assert other.revision != G2PKPhonemizer().identity("ko").revision
22
33
 
23
34
  def test_espeak_reports_the_binary_version(self):
24
35
  banner = "eSpeak NG text-to-speech: 1.52.0 Data at: /usr/share/espeak-ng-data\n"
@@ -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.