Commit
·
9f1c059
0
Parent(s):
updated large files with lfs
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +35 -0
- .gitignore +4 -0
- LICENSE +395 -0
- __pycache__/text_preprocess_for_inference.cpython-310.pyc +0 -0
- access.log +0 -0
- api.py +52 -0
- app.py +171 -0
- charmap/Text_Cleaning.ipynb +332 -0
- charmap/Text_Cleaning.py +76 -0
- charmap/charmap_Bengali.txt +62 -0
- charmap/charmap_Hindi.txt +81 -0
- charmap/charmap_Hindi.xlsx +0 -0
- charmap/charmap_Malayalam.txt +81 -0
- charmap/charmap_Malayalam.xlsx +0 -0
- charmap/charmap_Marathi.txt +81 -0
- charmap/charmap_Marathi.xlsx +0 -0
- charmap/charmap_Tamil.disabled +76 -0
- charmap/charmap_Tamil.xlsx +0 -0
- charmap/charmap_Telugu.txt +81 -0
- charmap/charmap_Telugu.xlsx +0 -0
- get_phone_mapped_python.py +43 -0
- hifigan/LICENSE +21 -0
- hifigan/LJSpeech-1.1/training.txt +0 -0
- hifigan/LJSpeech-1.1/validation.txt +150 -0
- hifigan/__init__.py +0 -0
- hifigan/__pycache__/__init__.cpython-37.pyc +0 -0
- hifigan/__pycache__/env.cpython-310.pyc +0 -0
- hifigan/__pycache__/env.cpython-37.pyc +0 -0
- hifigan/__pycache__/env.cpython-38.pyc +0 -0
- hifigan/__pycache__/env.cpython-39.pyc +0 -0
- hifigan/__pycache__/meldataset.cpython-310.pyc +0 -0
- hifigan/__pycache__/meldataset.cpython-37.pyc +0 -0
- hifigan/__pycache__/meldataset.cpython-38.pyc +0 -0
- hifigan/__pycache__/meldataset.cpython-39.pyc +0 -0
- hifigan/__pycache__/models.cpython-310.pyc +0 -0
- hifigan/__pycache__/models.cpython-37.pyc +0 -0
- hifigan/__pycache__/models.cpython-38.pyc +0 -0
- hifigan/__pycache__/models.cpython-39.pyc +0 -0
- hifigan/__pycache__/utils.cpython-310.pyc +0 -0
- hifigan/__pycache__/utils.cpython-37.pyc +0 -0
- hifigan/__pycache__/utils.cpython-38.pyc +0 -0
- hifigan/__pycache__/utils.cpython-39.pyc +0 -0
- hifigan/config.yaml +270 -0
- hifigan/config_v1.json +37 -0
- hifigan/config_v2.json +37 -0
- hifigan/config_v3.json +37 -0
- hifigan/denorm/test_243.npy.pt +0 -0
- hifigan/env.py +15 -0
- hifigan/fs2_speed.txt +24 -0
- hifigan/gen.wav +0 -0
.gitattributes
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vocoder/female/aryan/hifigan/generator filter=lfs diff=lfs merge=lfs -text
|
2 |
+
vocoder/male/aryan/hifigan/generator filter=lfs diff=lfs merge=lfs -text
|
3 |
+
vocoder/male/dravidian/hifigan/generator filter=lfs diff=lfs merge=lfs -text
|
4 |
+
vocoder/female/dravidian/hifigan/generator filter=lfs diff=lfs merge=lfs -text
|
5 |
+
models/hindi/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
6 |
+
models/malayalam/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
7 |
+
models/manipuri/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
8 |
+
models/marathi/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
9 |
+
models/kannada/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
10 |
+
models/bodo/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
11 |
+
models/english/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
12 |
+
models/assamese/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
13 |
+
models/tamil/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
14 |
+
models/odia/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
15 |
+
models/rajasthani/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
16 |
+
models/telugu/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
17 |
+
models/bengali/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
18 |
+
models/gujarati/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
+
models/hindi/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
20 |
+
models/malayalam/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
21 |
+
models/manipuri/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
22 |
+
models/marathi/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
23 |
+
models/kannada/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
models/english/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
25 |
+
models/assamese/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
26 |
+
models/tamil/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
27 |
+
models/odia/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
28 |
+
models/rajasthani/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
29 |
+
models/telugu/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
30 |
+
models/bengali/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
31 |
+
models/gujarati/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
32 |
+
models/punjabi/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
33 |
+
models/punjabi/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
34 |
+
models/urdu/female/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
35 |
+
models/urdu/male/model/model.pth filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
tts-hs-hifigan
|
2 |
+
README.md
|
3 |
+
test.py
|
4 |
+
steps.txt
|
LICENSE
ADDED
@@ -0,0 +1,395 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Attribution 4.0 International
|
2 |
+
|
3 |
+
=======================================================================
|
4 |
+
|
5 |
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
6 |
+
does not provide legal services or legal advice. Distribution of
|
7 |
+
Creative Commons public licenses does not create a lawyer-client or
|
8 |
+
other relationship. Creative Commons makes its licenses and related
|
9 |
+
information available on an "as-is" basis. Creative Commons gives no
|
10 |
+
warranties regarding its licenses, any material licensed under their
|
11 |
+
terms and conditions, or any related information. Creative Commons
|
12 |
+
disclaims all liability for damages resulting from their use to the
|
13 |
+
fullest extent possible.
|
14 |
+
|
15 |
+
Using Creative Commons Public Licenses
|
16 |
+
|
17 |
+
Creative Commons public licenses provide a standard set of terms and
|
18 |
+
conditions that creators and other rights holders may use to share
|
19 |
+
original works of authorship and other material subject to copyright
|
20 |
+
and certain other rights specified in the public license below. The
|
21 |
+
following considerations are for informational purposes only, are not
|
22 |
+
exhaustive, and do not form part of our licenses.
|
23 |
+
|
24 |
+
Considerations for licensors: Our public licenses are
|
25 |
+
intended for use by those authorized to give the public
|
26 |
+
permission to use material in ways otherwise restricted by
|
27 |
+
copyright and certain other rights. Our licenses are
|
28 |
+
irrevocable. Licensors should read and understand the terms
|
29 |
+
and conditions of the license they choose before applying it.
|
30 |
+
Licensors should also secure all rights necessary before
|
31 |
+
applying our licenses so that the public can reuse the
|
32 |
+
material as expected. Licensors should clearly mark any
|
33 |
+
material not subject to the license. This includes other CC-
|
34 |
+
licensed material, or material used under an exception or
|
35 |
+
limitation to copyright. More considerations for licensors:
|
36 |
+
wiki.creativecommons.org/Considerations_for_licensors
|
37 |
+
|
38 |
+
Considerations for the public: By using one of our public
|
39 |
+
licenses, a licensor grants the public permission to use the
|
40 |
+
licensed material under specified terms and conditions. If
|
41 |
+
the licensor's permission is not necessary for any reason--for
|
42 |
+
example, because of any applicable exception or limitation to
|
43 |
+
copyright--then that use is not regulated by the license. Our
|
44 |
+
licenses grant only permissions under copyright and certain
|
45 |
+
other rights that a licensor has authority to grant. Use of
|
46 |
+
the licensed material may still be restricted for other
|
47 |
+
reasons, including because others have copyright or other
|
48 |
+
rights in the material. A licensor may make special requests,
|
49 |
+
such as asking that all changes be marked or described.
|
50 |
+
Although not required by our licenses, you are encouraged to
|
51 |
+
respect those requests where reasonable. More_considerations
|
52 |
+
for the public:
|
53 |
+
wiki.creativecommons.org/Considerations_for_licensees
|
54 |
+
|
55 |
+
=======================================================================
|
56 |
+
|
57 |
+
Creative Commons Attribution 4.0 International Public License
|
58 |
+
|
59 |
+
By exercising the Licensed Rights (defined below), You accept and agree
|
60 |
+
to be bound by the terms and conditions of this Creative Commons
|
61 |
+
Attribution 4.0 International Public License ("Public License"). To the
|
62 |
+
extent this Public License may be interpreted as a contract, You are
|
63 |
+
granted the Licensed Rights in consideration of Your acceptance of
|
64 |
+
these terms and conditions, and the Licensor grants You such rights in
|
65 |
+
consideration of benefits the Licensor receives from making the
|
66 |
+
Licensed Material available under these terms and conditions.
|
67 |
+
|
68 |
+
|
69 |
+
Section 1 -- Definitions.
|
70 |
+
|
71 |
+
a. Adapted Material means material subject to Copyright and Similar
|
72 |
+
Rights that is derived from or based upon the Licensed Material
|
73 |
+
and in which the Licensed Material is translated, altered,
|
74 |
+
arranged, transformed, or otherwise modified in a manner requiring
|
75 |
+
permission under the Copyright and Similar Rights held by the
|
76 |
+
Licensor. For purposes of this Public License, where the Licensed
|
77 |
+
Material is a musical work, performance, or sound recording,
|
78 |
+
Adapted Material is always produced where the Licensed Material is
|
79 |
+
synched in timed relation with a moving image.
|
80 |
+
|
81 |
+
b. Adapter's License means the license You apply to Your Copyright
|
82 |
+
and Similar Rights in Your contributions to Adapted Material in
|
83 |
+
accordance with the terms and conditions of this Public License.
|
84 |
+
|
85 |
+
c. Copyright and Similar Rights means copyright and/or similar rights
|
86 |
+
closely related to copyright including, without limitation,
|
87 |
+
performance, broadcast, sound recording, and Sui Generis Database
|
88 |
+
Rights, without regard to how the rights are labeled or
|
89 |
+
categorized. For purposes of this Public License, the rights
|
90 |
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
91 |
+
Rights.
|
92 |
+
|
93 |
+
d. Effective Technological Measures means those measures that, in the
|
94 |
+
absence of proper authority, may not be circumvented under laws
|
95 |
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
96 |
+
Treaty adopted on December 20, 1996, and/or similar international
|
97 |
+
agreements.
|
98 |
+
|
99 |
+
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
100 |
+
any other exception or limitation to Copyright and Similar Rights
|
101 |
+
that applies to Your use of the Licensed Material.
|
102 |
+
|
103 |
+
f. Licensed Material means the artistic or literary work, database,
|
104 |
+
or other material to which the Licensor applied this Public
|
105 |
+
License.
|
106 |
+
|
107 |
+
g. Licensed Rights means the rights granted to You subject to the
|
108 |
+
terms and conditions of this Public License, which are limited to
|
109 |
+
all Copyright and Similar Rights that apply to Your use of the
|
110 |
+
Licensed Material and that the Licensor has authority to license.
|
111 |
+
|
112 |
+
h. Licensor means the individual(s) or entity(ies) granting rights
|
113 |
+
under this Public License.
|
114 |
+
|
115 |
+
i. Share means to provide material to the public by any means or
|
116 |
+
process that requires permission under the Licensed Rights, such
|
117 |
+
as reproduction, public display, public performance, distribution,
|
118 |
+
dissemination, communication, or importation, and to make material
|
119 |
+
available to the public including in ways that members of the
|
120 |
+
public may access the material from a place and at a time
|
121 |
+
individually chosen by them.
|
122 |
+
|
123 |
+
j. Sui Generis Database Rights means rights other than copyright
|
124 |
+
resulting from Directive 96/9/EC of the European Parliament and of
|
125 |
+
the Council of 11 March 1996 on the legal protection of databases,
|
126 |
+
as amended and/or succeeded, as well as other essentially
|
127 |
+
equivalent rights anywhere in the world.
|
128 |
+
|
129 |
+
k. You means the individual or entity exercising the Licensed Rights
|
130 |
+
under this Public License. Your has a corresponding meaning.
|
131 |
+
|
132 |
+
|
133 |
+
Section 2 -- Scope.
|
134 |
+
|
135 |
+
a. License grant.
|
136 |
+
|
137 |
+
1. Subject to the terms and conditions of this Public License,
|
138 |
+
the Licensor hereby grants You a worldwide, royalty-free,
|
139 |
+
non-sublicensable, non-exclusive, irrevocable license to
|
140 |
+
exercise the Licensed Rights in the Licensed Material to:
|
141 |
+
|
142 |
+
a. reproduce and Share the Licensed Material, in whole or
|
143 |
+
in part; and
|
144 |
+
|
145 |
+
b. produce, reproduce, and Share Adapted Material.
|
146 |
+
|
147 |
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
148 |
+
Exceptions and Limitations apply to Your use, this Public
|
149 |
+
License does not apply, and You do not need to comply with
|
150 |
+
its terms and conditions.
|
151 |
+
|
152 |
+
3. Term. The term of this Public License is specified in Section
|
153 |
+
6(a).
|
154 |
+
|
155 |
+
4. Media and formats; technical modifications allowed. The
|
156 |
+
Licensor authorizes You to exercise the Licensed Rights in
|
157 |
+
all media and formats whether now known or hereafter created,
|
158 |
+
and to make technical modifications necessary to do so. The
|
159 |
+
Licensor waives and/or agrees not to assert any right or
|
160 |
+
authority to forbid You from making technical modifications
|
161 |
+
necessary to exercise the Licensed Rights, including
|
162 |
+
technical modifications necessary to circumvent Effective
|
163 |
+
Technological Measures. For purposes of this Public License,
|
164 |
+
simply making modifications authorized by this Section 2(a)
|
165 |
+
(4) never produces Adapted Material.
|
166 |
+
|
167 |
+
5. Downstream recipients.
|
168 |
+
|
169 |
+
a. Offer from the Licensor -- Licensed Material. Every
|
170 |
+
recipient of the Licensed Material automatically
|
171 |
+
receives an offer from the Licensor to exercise the
|
172 |
+
Licensed Rights under the terms and conditions of this
|
173 |
+
Public License.
|
174 |
+
|
175 |
+
b. No downstream restrictions. You may not offer or impose
|
176 |
+
any additional or different terms or conditions on, or
|
177 |
+
apply any Effective Technological Measures to, the
|
178 |
+
Licensed Material if doing so restricts exercise of the
|
179 |
+
Licensed Rights by any recipient of the Licensed
|
180 |
+
Material.
|
181 |
+
|
182 |
+
6. No endorsement. Nothing in this Public License constitutes or
|
183 |
+
may be construed as permission to assert or imply that You
|
184 |
+
are, or that Your use of the Licensed Material is, connected
|
185 |
+
with, or sponsored, endorsed, or granted official status by,
|
186 |
+
the Licensor or others designated to receive attribution as
|
187 |
+
provided in Section 3(a)(1)(A)(i).
|
188 |
+
|
189 |
+
b. Other rights.
|
190 |
+
|
191 |
+
1. Moral rights, such as the right of integrity, are not
|
192 |
+
licensed under this Public License, nor are publicity,
|
193 |
+
privacy, and/or other similar personality rights; however, to
|
194 |
+
the extent possible, the Licensor waives and/or agrees not to
|
195 |
+
assert any such rights held by the Licensor to the limited
|
196 |
+
extent necessary to allow You to exercise the Licensed
|
197 |
+
Rights, but not otherwise.
|
198 |
+
|
199 |
+
2. Patent and trademark rights are not licensed under this
|
200 |
+
Public License.
|
201 |
+
|
202 |
+
3. To the extent possible, the Licensor waives any right to
|
203 |
+
collect royalties from You for the exercise of the Licensed
|
204 |
+
Rights, whether directly or through a collecting society
|
205 |
+
under any voluntary or waivable statutory or compulsory
|
206 |
+
licensing scheme. In all other cases the Licensor expressly
|
207 |
+
reserves any right to collect such royalties.
|
208 |
+
|
209 |
+
|
210 |
+
Section 3 -- License Conditions.
|
211 |
+
|
212 |
+
Your exercise of the Licensed Rights is expressly made subject to the
|
213 |
+
following conditions.
|
214 |
+
|
215 |
+
a. Attribution.
|
216 |
+
|
217 |
+
1. If You Share the Licensed Material (including in modified
|
218 |
+
form), You must:
|
219 |
+
|
220 |
+
a. retain the following if it is supplied by the Licensor
|
221 |
+
with the Licensed Material:
|
222 |
+
|
223 |
+
i. identification of the creator(s) of the Licensed
|
224 |
+
Material and any others designated to receive
|
225 |
+
attribution, in any reasonable manner requested by
|
226 |
+
the Licensor (including by pseudonym if
|
227 |
+
designated);
|
228 |
+
|
229 |
+
ii. a copyright notice;
|
230 |
+
|
231 |
+
iii. a notice that refers to this Public License;
|
232 |
+
|
233 |
+
iv. a notice that refers to the disclaimer of
|
234 |
+
warranties;
|
235 |
+
|
236 |
+
v. a URI or hyperlink to the Licensed Material to the
|
237 |
+
extent reasonably practicable;
|
238 |
+
|
239 |
+
b. indicate if You modified the Licensed Material and
|
240 |
+
retain an indication of any previous modifications; and
|
241 |
+
|
242 |
+
c. indicate the Licensed Material is licensed under this
|
243 |
+
Public License, and include the text of, or the URI or
|
244 |
+
hyperlink to, this Public License.
|
245 |
+
|
246 |
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
247 |
+
reasonable manner based on the medium, means, and context in
|
248 |
+
which You Share the Licensed Material. For example, it may be
|
249 |
+
reasonable to satisfy the conditions by providing a URI or
|
250 |
+
hyperlink to a resource that includes the required
|
251 |
+
information.
|
252 |
+
|
253 |
+
3. If requested by the Licensor, You must remove any of the
|
254 |
+
information required by Section 3(a)(1)(A) to the extent
|
255 |
+
reasonably practicable.
|
256 |
+
|
257 |
+
4. If You Share Adapted Material You produce, the Adapter's
|
258 |
+
License You apply must not prevent recipients of the Adapted
|
259 |
+
Material from complying with this Public License.
|
260 |
+
|
261 |
+
|
262 |
+
Section 4 -- Sui Generis Database Rights.
|
263 |
+
|
264 |
+
Where the Licensed Rights include Sui Generis Database Rights that
|
265 |
+
apply to Your use of the Licensed Material:
|
266 |
+
|
267 |
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
268 |
+
to extract, reuse, reproduce, and Share all or a substantial
|
269 |
+
portion of the contents of the database;
|
270 |
+
|
271 |
+
b. if You include all or a substantial portion of the database
|
272 |
+
contents in a database in which You have Sui Generis Database
|
273 |
+
Rights, then the database in which You have Sui Generis Database
|
274 |
+
Rights (but not its individual contents) is Adapted Material; and
|
275 |
+
|
276 |
+
c. You must comply with the conditions in Section 3(a) if You Share
|
277 |
+
all or a substantial portion of the contents of the database.
|
278 |
+
|
279 |
+
For the avoidance of doubt, this Section 4 supplements and does not
|
280 |
+
replace Your obligations under this Public License where the Licensed
|
281 |
+
Rights include other Copyright and Similar Rights.
|
282 |
+
|
283 |
+
|
284 |
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
285 |
+
|
286 |
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
287 |
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
288 |
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
289 |
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
290 |
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
291 |
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
292 |
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
293 |
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
294 |
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
295 |
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
296 |
+
|
297 |
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
298 |
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
299 |
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
300 |
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
301 |
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
302 |
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
303 |
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
304 |
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
305 |
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
306 |
+
|
307 |
+
c. The disclaimer of warranties and limitation of liability provided
|
308 |
+
above shall be interpreted in a manner that, to the extent
|
309 |
+
possible, most closely approximates an absolute disclaimer and
|
310 |
+
waiver of all liability.
|
311 |
+
|
312 |
+
|
313 |
+
Section 6 -- Term and Termination.
|
314 |
+
|
315 |
+
a. This Public License applies for the term of the Copyright and
|
316 |
+
Similar Rights licensed here. However, if You fail to comply with
|
317 |
+
this Public License, then Your rights under this Public License
|
318 |
+
terminate automatically.
|
319 |
+
|
320 |
+
b. Where Your right to use the Licensed Material has terminated under
|
321 |
+
Section 6(a), it reinstates:
|
322 |
+
|
323 |
+
1. automatically as of the date the violation is cured, provided
|
324 |
+
it is cured within 30 days of Your discovery of the
|
325 |
+
violation; or
|
326 |
+
|
327 |
+
2. upon express reinstatement by the Licensor.
|
328 |
+
|
329 |
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
330 |
+
right the Licensor may have to seek remedies for Your violations
|
331 |
+
of this Public License.
|
332 |
+
|
333 |
+
c. For the avoidance of doubt, the Licensor may also offer the
|
334 |
+
Licensed Material under separate terms or conditions or stop
|
335 |
+
distributing the Licensed Material at any time; however, doing so
|
336 |
+
will not terminate this Public License.
|
337 |
+
|
338 |
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
339 |
+
License.
|
340 |
+
|
341 |
+
|
342 |
+
Section 7 -- Other Terms and Conditions.
|
343 |
+
|
344 |
+
a. The Licensor shall not be bound by any additional or different
|
345 |
+
terms or conditions communicated by You unless expressly agreed.
|
346 |
+
|
347 |
+
b. Any arrangements, understandings, or agreements regarding the
|
348 |
+
Licensed Material not stated herein are separate from and
|
349 |
+
independent of the terms and conditions of this Public License.
|
350 |
+
|
351 |
+
|
352 |
+
Section 8 -- Interpretation.
|
353 |
+
|
354 |
+
a. For the avoidance of doubt, this Public License does not, and
|
355 |
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
356 |
+
conditions on any use of the Licensed Material that could lawfully
|
357 |
+
be made without permission under this Public License.
|
358 |
+
|
359 |
+
b. To the extent possible, if any provision of this Public License is
|
360 |
+
deemed unenforceable, it shall be automatically reformed to the
|
361 |
+
minimum extent necessary to make it enforceable. If the provision
|
362 |
+
cannot be reformed, it shall be severed from this Public License
|
363 |
+
without affecting the enforceability of the remaining terms and
|
364 |
+
conditions.
|
365 |
+
|
366 |
+
c. No term or condition of this Public License will be waived and no
|
367 |
+
failure to comply consented to unless expressly agreed to by the
|
368 |
+
Licensor.
|
369 |
+
|
370 |
+
d. Nothing in this Public License constitutes or may be interpreted
|
371 |
+
as a limitation upon, or waiver of, any privileges and immunities
|
372 |
+
that apply to the Licensor or You, including from the legal
|
373 |
+
processes of any jurisdiction or authority.
|
374 |
+
|
375 |
+
|
376 |
+
=======================================================================
|
377 |
+
|
378 |
+
Creative Commons is not a party to its public
|
379 |
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
380 |
+
its public licenses to material it publishes and in those instances
|
381 |
+
will be considered the “Licensor.” The text of the Creative Commons
|
382 |
+
public licenses is dedicated to the public domain under the CC0 Public
|
383 |
+
Domain Dedication. Except for the limited purpose of indicating that
|
384 |
+
material is shared under a Creative Commons public license or as
|
385 |
+
otherwise permitted by the Creative Commons policies published at
|
386 |
+
creativecommons.org/policies, Creative Commons does not authorize the
|
387 |
+
use of the trademark "Creative Commons" or any other trademark or logo
|
388 |
+
of Creative Commons without its prior written consent including,
|
389 |
+
without limitation, in connection with any unauthorized modifications
|
390 |
+
to any of its public licenses or any other arrangements,
|
391 |
+
understandings, or agreements concerning use of licensed material. For
|
392 |
+
the avoidance of doubt, this paragraph does not form part of the
|
393 |
+
public licenses.
|
394 |
+
|
395 |
+
Creative Commons may be contacted at creativecommons.org.
|
__pycache__/text_preprocess_for_inference.cpython-310.pyc
ADDED
Binary file (20.5 kB). View file
|
|
access.log
ADDED
The diff for this file is too large to render.
See raw diff
|
|
api.py
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
This is a sample API code to send a text to the server and recieve speech
|
3 |
+
for the given text.
|
4 |
+
|
5 |
+
Supported languages:
|
6 |
+
|
7 |
+
Assamese, Bengali, Bodo, Gujarati, Hindi, Kannada, Malayalam, Manipuri
|
8 |
+
Marathi, Odia, Punjabi, Rajasthani, Tamil, Telugu, Urdu
|
9 |
+
|
10 |
+
"""
|
11 |
+
import requests
|
12 |
+
import json
|
13 |
+
import base64
|
14 |
+
|
15 |
+
# endpoint
|
16 |
+
url = "http://localhost:5000/tts"
|
17 |
+
|
18 |
+
lang = 'hindi'
|
19 |
+
gender = 'female'
|
20 |
+
text = "सुप्रभात, आप कैसे हैं?" # hindi
|
21 |
+
# text = "സുപ്രഭാതം, സുഖമാ?" # malayalam
|
22 |
+
# text = "সুপ্ৰভাত, তুমি কেনে?" # manipuri
|
23 |
+
# text = "सुप्रभात, तुम्ही कसे आहात?" # marathi
|
24 |
+
# text = "ಶುಭೋದಯ, ನೀವು ಹೇಗಿದ್ದೀರಿ?" # kannada
|
25 |
+
# text = "बसु म्विथ्बो, बरि दिबाबो?" # bodo male yet to be added <---
|
26 |
+
# text = "Good morning, how are you?" # english
|
27 |
+
# text = "সুপ্ৰভাত, আপুনি কেমন আছে?" # assamese
|
28 |
+
# text = "காலை வணக்கம், நீங்கள் எப்படி இருக்கின்றீர்கள்?" # tamil
|
29 |
+
# text = "ସୁପ୍ରଭାତ, ଆପଣ କେମିତି ଅଛନ୍ତି?"
|
30 |
+
# text = "सुप्रभात, आप कैसे छो?" # rajasthani
|
31 |
+
# text = "శుభోదయం, మీరు ఎలా ఉన్నారు?" # telugu
|
32 |
+
# text = "সুপ্রভাত, আপনি কেমন আছেন?" # bengali
|
33 |
+
# text = "સુપ્રભાત, તમે કેમ છો?" # gujarati
|
34 |
+
|
35 |
+
payload = json.dumps(
|
36 |
+
{
|
37 |
+
"input": text,
|
38 |
+
"gender": gender,
|
39 |
+
"lang": lang,
|
40 |
+
"alpha": 1 # to control speed
|
41 |
+
})
|
42 |
+
|
43 |
+
headers = {'Content-Type': 'application/json'}
|
44 |
+
response = requests.request("POST", url, headers=headers, data=payload).json()
|
45 |
+
|
46 |
+
# save the received encoded audio
|
47 |
+
audio = response['audio']
|
48 |
+
file_name = "tts.wav"
|
49 |
+
wav_file = open(file_name,'wb')
|
50 |
+
decode_string = base64.b64decode(audio)
|
51 |
+
wav_file.write(decode_string)
|
52 |
+
wav_file.close()
|
app.py
ADDED
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from flask import Flask, render_template, request, send_file, jsonify
|
2 |
+
import requests
|
3 |
+
import json
|
4 |
+
import ssl
|
5 |
+
import logging
|
6 |
+
import sys
|
7 |
+
import os
|
8 |
+
import base64
|
9 |
+
import io
|
10 |
+
|
11 |
+
#replace the path with your hifigan path to import Generator from models.py
|
12 |
+
sys.path.append("hifigan")
|
13 |
+
|
14 |
+
import torch
|
15 |
+
from espnet2.bin.tts_inference import Text2Speech
|
16 |
+
from models import Generator
|
17 |
+
from scipy.io.wavfile import write
|
18 |
+
from meldataset import MAX_WAV_VALUE
|
19 |
+
from env import AttrDict
|
20 |
+
import json
|
21 |
+
import yaml
|
22 |
+
from text_preprocess_for_inference import TTSDurAlignPreprocessor
|
23 |
+
# import time
|
24 |
+
|
25 |
+
logging.basicConfig(filename='access.log', level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
26 |
+
|
27 |
+
SAMPLING_RATE = 22050
|
28 |
+
if torch.cuda.is_available():
|
29 |
+
device = "cuda"
|
30 |
+
else:
|
31 |
+
device = "cpu"
|
32 |
+
|
33 |
+
preprocessor = TTSDurAlignPreprocessor()
|
34 |
+
|
35 |
+
app = Flask(__name__)
|
36 |
+
|
37 |
+
def load_hifigan_vocoder(language, gender, device):
|
38 |
+
# Load HiFi-GAN vocoder configuration file and generator model for the specified language and gender
|
39 |
+
vocoder_config = f"vocoder/{gender}/aryan/hifigan/config.json"
|
40 |
+
vocoder_generator = f"vocoder/{gender}/aryan/hifigan/generator"
|
41 |
+
# Read the contents of the vocoder configuration file
|
42 |
+
with open(vocoder_config, 'r') as f:
|
43 |
+
data = f.read()
|
44 |
+
json_config = json.loads(data)
|
45 |
+
h = AttrDict(json_config)
|
46 |
+
torch.manual_seed(h.seed)
|
47 |
+
# Move the generator model to the specified device (CPU or GPU)
|
48 |
+
device = torch.device(device)
|
49 |
+
generator = Generator(h).to(device)
|
50 |
+
state_dict_g = torch.load(vocoder_generator, device)
|
51 |
+
generator.load_state_dict(state_dict_g['generator'])
|
52 |
+
generator.eval()
|
53 |
+
generator.remove_weight_norm()
|
54 |
+
|
55 |
+
# Return the loaded and prepared HiFi-GAN generator model
|
56 |
+
return generator
|
57 |
+
|
58 |
+
def load_fastspeech2_model(language, gender, device):
|
59 |
+
models_directory = "./models"
|
60 |
+
# updating the config.yaml fiel based on language and gender
|
61 |
+
with open(f"{models_directory}/{language}/{gender}/model/config.yaml", "r") as file:
|
62 |
+
config = yaml.safe_load(file)
|
63 |
+
|
64 |
+
# current_working_directory = os.getcwd()
|
65 |
+
|
66 |
+
feat="model/feats_stats.npz"
|
67 |
+
pitch="model/pitch_stats.npz"
|
68 |
+
energy="model/energy_stats.npz"
|
69 |
+
|
70 |
+
feat_path=os.path.join(models_directory,language,gender,feat)
|
71 |
+
pitch_path=os.path.join(models_directory,language,gender,pitch)
|
72 |
+
energy_path=os.path.join(models_directory,language,gender,energy)
|
73 |
+
|
74 |
+
|
75 |
+
config["normalize_conf"]["stats_file"] = feat_path
|
76 |
+
config["pitch_normalize_conf"]["stats_file"] = pitch_path
|
77 |
+
config["energy_normalize_conf"]["stats_file"] = energy_path
|
78 |
+
|
79 |
+
with open(f"{models_directory}/{language}/{gender}/model/config.yaml", "w") as file:
|
80 |
+
yaml.dump(config, file)
|
81 |
+
|
82 |
+
tts_model = f"{models_directory}/{language}/{gender}/model/model.pth"
|
83 |
+
tts_config = f"{models_directory}/{language}/{gender}/model/config.yaml"
|
84 |
+
|
85 |
+
return Text2Speech(train_config=tts_config, model_file=tts_model, device=device)
|
86 |
+
|
87 |
+
def text_synthesis(language, gender, sample_text, vocoder, MAX_WAV_VALUE, device, alpha=1):
|
88 |
+
# Perform Text-to-Speech synthesis
|
89 |
+
with torch.no_grad():
|
90 |
+
# Load the FastSpeech2 model for the specified language and gender
|
91 |
+
|
92 |
+
model = load_fastspeech2_model(language, gender, device)
|
93 |
+
|
94 |
+
# Generate mel-spectrograms from the input text using the FastSpeech2 model
|
95 |
+
out = model(sample_text, decode_conf={"alpha": alpha})
|
96 |
+
print("TTS Done")
|
97 |
+
x = out["feat_gen_denorm"].T.unsqueeze(0) * 2.3262
|
98 |
+
x = x.to(device)
|
99 |
+
|
100 |
+
# Use the HiFi-GAN vocoder to convert mel-spectrograms to raw audio waveforms
|
101 |
+
y_g_hat = vocoder(x)
|
102 |
+
audio = y_g_hat.squeeze()
|
103 |
+
audio = audio * MAX_WAV_VALUE
|
104 |
+
audio = audio.cpu().numpy().astype('int16')
|
105 |
+
|
106 |
+
# Return the synthesized audio
|
107 |
+
return audio
|
108 |
+
|
109 |
+
def setup_app():
|
110 |
+
genders = ['male','female']
|
111 |
+
# to make dummy calls in all languages available
|
112 |
+
languages = {'hindi': "नमस्ते",'malayalam': "ഹലോ",'manipuri': "হ্যালো",'marathi': "हॅलो",'kannada': "ಹಲೋ",'bodo': "हॅलो",'english': "Hello",'assamese': "হ্যালো",'tamil': "ஹலோ",'odia': "ହେଲୋ",'rajasthani': "हॅलो",'telugu': "హలో",'bengali': "হ্যালো",'gujarati': "હલો","punjabi":"ਸਤ ਸ੍ਰੀ ਅਕਾਲ","urdu":"ہیلو"}
|
113 |
+
|
114 |
+
vocoders = {}
|
115 |
+
for gender in genders:
|
116 |
+
vocoders[gender]={}
|
117 |
+
for language,text in languages.items():
|
118 |
+
# Load the HiFi-GAN vocoder with dynamic language and gender
|
119 |
+
vocoder = load_hifigan_vocoder(language, gender, device)
|
120 |
+
vocoders[gender][language] = vocoder
|
121 |
+
# dummy calls
|
122 |
+
print(f"making dummy call for {language} - {gender}")
|
123 |
+
try:
|
124 |
+
out = text_synthesis(language, gender, text, vocoder, MAX_WAV_VALUE, device)
|
125 |
+
except:
|
126 |
+
message = f"cannot make dummy call for {gender} - {language} <==================="
|
127 |
+
print(message.upper())
|
128 |
+
|
129 |
+
print("Server Started...")
|
130 |
+
return vocoders
|
131 |
+
|
132 |
+
vocoders = setup_app()
|
133 |
+
|
134 |
+
@app.route('/', methods=['GET'])
|
135 |
+
def main():
|
136 |
+
return "IITM_TTS_V2"
|
137 |
+
|
138 |
+
@app.route('/tts', methods=['GET', 'POST'], strict_slashes=False)
|
139 |
+
def tts():
|
140 |
+
try:
|
141 |
+
json_data = request.get_json()
|
142 |
+
text = json_data["input"]
|
143 |
+
if not isinstance(text,str):
|
144 |
+
input_type = type(text)
|
145 |
+
ret = jsonify(status='failure', reason=f"Unsupported input type {input_type}. Input text should be in string format.")
|
146 |
+
gender = json_data["gender"]
|
147 |
+
language = json_data["lang"].lower()
|
148 |
+
alpha = json_data["alpha"]
|
149 |
+
# Preprocess the sample text
|
150 |
+
preprocessed_text, phrases = preprocessor.preprocess(text, language, gender)
|
151 |
+
preprocessed_text = " ".join(preprocessed_text)
|
152 |
+
vocoder = vocoders[gender][language]
|
153 |
+
out = text_synthesis(language, gender, preprocessed_text, vocoder, MAX_WAV_VALUE, device, alpha=alpha)
|
154 |
+
|
155 |
+
# output_file = f"{language}_{gender}_output.wav"
|
156 |
+
# write(output_file, SAMPLING_RATE, out)
|
157 |
+
# audio_wav_bytes = base64.b64encode(open(output_file, "rb").read())
|
158 |
+
|
159 |
+
# avoid saving file on disk
|
160 |
+
output_stream = io.BytesIO()
|
161 |
+
write(output_stream, SAMPLING_RATE, out)
|
162 |
+
audio_wav_bytes = base64.b64encode(output_stream.getvalue())
|
163 |
+
|
164 |
+
ret = jsonify(status="success",audio=audio_wav_bytes.decode('utf-8'))
|
165 |
+
|
166 |
+
except Exception as err:
|
167 |
+
ret = jsonify(status="failure", reason=str(err))
|
168 |
+
return ret
|
169 |
+
|
170 |
+
if __name__ == '__main__':
|
171 |
+
app.run(host='0.0.0.0', port=5000, debug=True)
|
charmap/Text_Cleaning.ipynb
ADDED
@@ -0,0 +1,332 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": 2,
|
6 |
+
"metadata": {
|
7 |
+
"collapsed": true
|
8 |
+
},
|
9 |
+
"outputs": [],
|
10 |
+
"source": [
|
11 |
+
"############################################################\n",
|
12 |
+
"#Author : Bhagyashree\n",
|
13 |
+
"#Date : 1st Sept, 2020\n",
|
14 |
+
"#Purpose : Text Cleaning\n",
|
15 |
+
"#Input : Text file after timestamp removal\n",
|
16 |
+
"#Output : Text file after cleaning data\n",
|
17 |
+
"############################################################"
|
18 |
+
]
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"cell_type": "code",
|
22 |
+
"execution_count": 3,
|
23 |
+
"metadata": {
|
24 |
+
"collapsed": true
|
25 |
+
},
|
26 |
+
"outputs": [],
|
27 |
+
"source": [
|
28 |
+
"import nltk\n",
|
29 |
+
"import numpy\n",
|
30 |
+
"import xlrd\n",
|
31 |
+
"import openpyxl \n",
|
32 |
+
"import re"
|
33 |
+
]
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"cell_type": "code",
|
37 |
+
"execution_count": 21,
|
38 |
+
"metadata": {},
|
39 |
+
"outputs": [
|
40 |
+
{
|
41 |
+
"name": "stdout",
|
42 |
+
"output_type": "stream",
|
43 |
+
"text": [
|
44 |
+
"अब हम ऑलट्रेशन ऑफ मेमोरेंडम के बारे में बात करेंगे।\n",
|
45 |
+
" मेमोरेंडम के विषयों को बदल दिया जा सकता है।\n",
|
46 |
+
"कंपनी अधिनियम 1956 के तहत\n",
|
47 |
+
"निम्नलिखित प्रक्रिया के अनुसार\n",
|
48 |
+
"यदि कोई कंपनी अपना नाम बदलना चाहती है,\n",
|
49 |
+
"तो वे विशेष संकल्प में ऐसा कर सकती है।\n",
|
50 |
+
"और केंद्र सरकार की मंजूरी के साथ\n",
|
51 |
+
"लिखित में\n",
|
52 |
+
"हालाँकि, ऐसी किसी भी मंजूरी की आवश्यकता नहीं होती है\n",
|
53 |
+
"केवल कंपनी के नाम में परिवर्तन के लिए\n",
|
54 |
+
"बल्कि यह प्रक्रिया\n",
|
55 |
+
"पूरी तरह से निजी शब्द को हटाने के लिए होती है।\n",
|
56 |
+
"तो इस मामले में\n",
|
57 |
+
"एक सार्वजनिक कंपनी को एक निजी कंपनी के संबंध में,\n",
|
58 |
+
"या एक निजी कंपनी को एक सार्वजनिक कंपनी में परिवर्तित करने\n",
|
59 |
+
"दूसरी जगह पर पंजीकृत कार्यालय का दोबारा परिवर्तन किया जाना है\n",
|
60 |
+
"अगर एक ही शहर, कस्बे\n",
|
61 |
+
"या गाँव में एक जगह से\n",
|
62 |
+
"30 दिनों का नोटिस दिया जाना होता है।\n",
|
63 |
+
"यह रजिस्ट्रार द्वारा परिवर्तन की तिथि के बाद\n",
|
64 |
+
"होगा जो उसी को दर्ज करेगा।\n",
|
65 |
+
"पंजीकृत कार्यालय के परिवर्तन के मामले में\n",
|
66 |
+
"जबकि एक ही राज्य में 1 शहर से दूसरे शहर में,\n",
|
67 |
+
"विशेष प्रस्ताव पारित किया जाना आवश्यक है।\n",
|
68 |
+
"शेयरधारकों की आम बैठक में\n",
|
69 |
+
"और इसकी एक प्रति रजिस्ट्रार के पास कार्यालय को\n",
|
70 |
+
"30 दिनों के भीतर बदलने के दाखिल करनी होगी।\n",
|
71 |
+
"नोटिस देना होगा।\n",
|
72 |
+
"रजिस्ट्रार को कार्यालय के नये पते का\n",
|
73 |
+
"तब तक परिवर्तन प्रभावी नहीं होगा।\n",
|
74 |
+
"जब तक केंद्र सरकार द्वारा प्रस्ताव की पुष्टि नहीं हो जाती\n",
|
75 |
+
"कंपनी किसी भी आधार पर\n",
|
76 |
+
"उपधारा 1 से\n",
|
77 |
+
"उपधारा 7 में धारा 17 तक उल्लेखित है।\n",
|
78 |
+
"जैसा कि अधिनियम के बाद ही परिवर्तन प्रभावी होगा।\n",
|
79 |
+
"अपने उद्देश्यों में बदलाव कर सकती है\n",
|
80 |
+
"सामान्य बैठक में सदस्यों द्वारा\n",
|
81 |
+
"कंपनी संशोधन अधिनियम 1996 को मेमोरेंडम ऑफ एसोसिएशन के\n",
|
82 |
+
"केंद्र सरकार के प्रतिबंध के ��ाथ समाप्त कर दिया गया है।\n",
|
83 |
+
"विशेष संकल्प के अनुरूप अनुमोदित किए जाने\n",
|
84 |
+
"ऑब्जेक्ट क्लॉज में परिवर्तन के प्रति शेयर पूंजी में\n",
|
85 |
+
"परिवर्तन की प्रक्रिया और ऐसे परिवर्तन करने के अधिकार।\n",
|
86 |
+
"समान्य पहलु को आर्टीकल ऑफ एसोसिएशन में रखा गया है।\n",
|
87 |
+
"यदि संबंधित विषय के\n",
|
88 |
+
" आर्टीकल ऑफ एसोसिएशन में पीछे की प्रक्रिया नहीं दी गई है।\n",
|
89 |
+
"कंपनी को पारित करके आर्टीकल ऑफ एसोसिएशन को बदलना होगा।\n",
|
90 |
+
"एक विशेष प्रस्ताव\n",
|
91 |
+
"अब, हम ऑलट्रेशन ऑफ पर चर्चा करेंगे।\n",
|
92 |
+
"कंपनी अधिनियम 2013 के तहत मेमोरेंडम\n",
|
93 |
+
"अधिनियम की धारा 16, 17, 18, 19,\n",
|
94 |
+
"1956 के कंपनी 21, 23 और 37 के अनुरूप।\n",
|
95 |
+
"कंपनी अधिनियम, 2013 की धारा 13 ने\n",
|
96 |
+
" ऑलट्रेशन ऑफ मेमोरेंडम के लिए मानदंड निर्धारित किए हैं।\n",
|
97 |
+
"यह वही वर्णन करता है कि जैसा कि धारा 61 में दिया गया है।\n",
|
98 |
+
"एक कंपनी विशेष संकल्प द्वारा\n",
|
99 |
+
"और प्रावधानों को बदल सकती है।\n",
|
100 |
+
"निर्दिष्ट प्रक्रिया के अनुपालन से मेमोरेंडम\n",
|
101 |
+
"नाम खंड के परिवर्तन के संबंध में,\n",
|
102 |
+
"कंपनी अपना नाम बदल सकती है।\n",
|
103 |
+
"अनुमोदन के बाद लिखित रूप में केंद्र सरकार द्वारा\n",
|
104 |
+
"इसलिए जब कंपनी के नाम में कोई बदलाव किया जाता है,\n",
|
105 |
+
"रजिस्टर में दर्ज करेगा।\n",
|
106 |
+
" तो रजिस्ट्रार कंपनी के नया नाम\n",
|
107 |
+
"पुराने नाम के स्थान पर\n",
|
108 |
+
"निगमन का एक नया प्रमाणपत्र जारी करेगा।\n",
|
109 |
+
"कंपनी के पंजीकृत कार्यालय के बारे में\n",
|
110 |
+
"जैसा कि पहले उल्लेख किया गया है,\n",
|
111 |
+
"तब तक कोई प्रभाव नहीं पड़ेगा जब तक कि वह केंद्र सरकार द्वारा अनुमोदित नहीं हो जाता।\n",
|
112 |
+
"ऑब्जेक्ट क्लॉज के किसी भी परिवर्तन के संबंध में,\n",
|
113 |
+
"किसी कंपनी के मेमोरेंडम के\n",
|
114 |
+
"रजिस्ट्रार को दाखिल करने की\n",
|
115 |
+
"30 दिनों की अवधि के भीतर\n",
|
116 |
+
"तारीख से पंजीकरण को प्रमाणित करना होता है।\n",
|
117 |
+
"इस विशेष प्रस्ताव खंड के उप खंड 6 के खंड A के अनुसार\n",
|
118 |
+
"चलिए फिर से संक्षेप में\n",
|
119 |
+
" ऑलट्रेशन ऑफ मेमोरेंडम के महत्व के बारे में चर्चा करते हैं\n",
|
120 |
+
" क्योंकि ये इस मॉड्यूल के अध्ययन का एक बहुत महत्वपूर्ण हिस्सा है।\n",
|
121 |
+
"पहला महत्व यह है\n",
|
122 |
+
"कि यह एक बहुत ही आवश्यक दस्तावेज है।\n",
|
123 |
+
"एक कंपनी के निगमन के लिए\n",
|
124 |
+
"दूसरा, यह कंपनी के पंजीकृत कार्यालय को निर्दिष्ट करते हुए\n",
|
125 |
+
"रजिस्ट्रार और अदालत के अधिकार क्षेत्र को निर्धारित करता है।\n",
|
126 |
+
"तीसरा, यह कंपनी के अधिकारों में उद्देश्यों को\n",
|
127 |
+
"जनता की जानकारी के लिए दर्ज करता है।\n",
|
128 |
+
"अगला, यह कंपनी को केवल उन कृत्यों को करने के लिए\n",
|
129 |
+
"बाध्य करता है जो कंपनी के ऑब्जेक्ट क्लॉज में शामिल हैं।\n",
|
130 |
+
"यह कंपनी की अधिकृत कैपिटल\n",
|
131 |
+
"और उसके विभाजन को निश्चित राशि के शेयरों में निर्दिष्ट करता है।\n",
|
132 |
+
"पर प्रकाश डालता है।\n",
|
133 |
+
"यह कंपनी के सदस्यों के लायबिलिटी\n",
|
134 |
+
"अंत में, संघ के नियमों को\n",
|
135 |
+
"यह एक कंपनी के भी नियंत्रित करता है।\n"
|
136 |
+
]
|
137 |
+
}
|
138 |
+
],
|
139 |
+
"source": [
|
140 |
+
"file1 = open(\"recent_deliverables_dec2020/Corporate_Law/Hindi/ankita objects 02_Hindi_new.txt\",\"r+\",encoding='utf-8') \n",
|
141 |
+
"data = file1.read()\n",
|
142 |
+
"print(data)\n",
|
143 |
+
"file1.close()"
|
144 |
+
]
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"cell_type": "code",
|
148 |
+
"execution_count": 22,
|
149 |
+
"metadata": {},
|
150 |
+
"outputs": [
|
151 |
+
{
|
152 |
+
"name": "stdout",
|
153 |
+
"output_type": "stream",
|
154 |
+
"text": [
|
155 |
+
"अब हम ऑलट्रेशन ऑफ मेमोरेंडम के बारे में बात करेंगे\n",
|
156 |
+
" मेमोरेंडम के विषयों को बदल दिया जा सकता है\n",
|
157 |
+
"कंपनी अधिनियम वन नाइन फाइव सिक्स के तहत\n",
|
158 |
+
"निम्नलिखित प्रक्रिया के अनुसार\n",
|
159 |
+
"यदि कोई कंपनी अपना नाम बदलना चाहती है\n",
|
160 |
+
"तो वे विशेष संकल्प में ऐसा कर सकती है\n",
|
161 |
+
"और केंद्र सरकार की मंजूरी के साथ\n",
|
162 |
+
"लिखित में\n",
|
163 |
+
"हालाँकि ऐसी किसी भी मंजूरी की आवश्यकता नहीं होती है\n",
|
164 |
+
"केवल कंपनी के नाम में परिवर्तन के लिए\n",
|
165 |
+
"बल्कि यह प्रक्रिया\n",
|
166 |
+
"पूरी तरह से निजी शब्द को हटाने के लिए होती है\n",
|
167 |
+
"तो इस मामले में\n",
|
168 |
+
"एक सार्वजनिक कंपनी को एक निजी कंपनी के संबंध में\n",
|
169 |
+
"या एक निजी कंपनी को एक सार्वजनिक कंपनी में परिवर्तित करने\n",
|
170 |
+
"दूसरी जगह पर पंजीकृत कार्यालय का दोबारा परिवर्तन किया जाना है\n",
|
171 |
+
"अगर एक ही शहर कस्बे\n",
|
172 |
+
"या गाँव में एक जगह से\n",
|
173 |
+
" थ्री ज़ीरो दिनों का नोटिस दिया जाना होता है\n",
|
174 |
+
"यह रजिस्ट्रार द्वारा परिवर्तन की तिथि के बाद\n",
|
175 |
+
"होगा जो उसी को दर्ज करेगा\n",
|
176 |
+
"पंजीकृत कार्यालय के परिवर्तन के मामले में\n",
|
177 |
+
"जबकि एक ही राज्य में वन शहर से दूसरे शहर में\n",
|
178 |
+
"विशेष प्रस्ताव पारित किया जाना आवश्यक है\n",
|
179 |
+
"शेयरधारकों की आम बैठक में\n",
|
180 |
+
"और इसकी एक प्रति रजिस्ट्रार के पास कार्यालय को\n",
|
181 |
+
" थ्री ज़ीरो दिनों के भीतर बदलने के दाखिल करनी होगी\n",
|
182 |
+
"नोटिस देना होगा\n",
|
183 |
+
"रजिस्ट्रार को कार्यालय के नये पते का\n",
|
184 |
+
"तब तक परिवर्तन प्रभावी नहीं होगा\n",
|
185 |
+
"जब तक केंद्र सरकार द्वारा प्रस्ताव की पुष्टि नहीं हो जाती\n",
|
186 |
+
"कंपनी किसी भी आधार पर\n",
|
187 |
+
"उपधारा वन से\n",
|
188 |
+
"उपधारा सेवेन में ध���रा वन सेवेन तक उल्लेखित है\n",
|
189 |
+
"जैसा कि अधिनियम के बाद ही परिवर्तन प्रभावी होगा\n",
|
190 |
+
"अपने उद्देश्यों में बदलाव कर सकती है\n",
|
191 |
+
"सामान्य बैठक में सदस्यों द्वारा\n",
|
192 |
+
"कंपनी संशोधन अधिनियम वन नाइन नाइन सिक्स को मेमोरेंडम ऑफ एसोसिएशन के\n",
|
193 |
+
"केंद्र सरकार के प्रतिबंध के साथ समाप्त कर दिया गया है\n",
|
194 |
+
"विशेष संकल्प के अनुरूप अनुमोदित किए जाने\n",
|
195 |
+
"ऑब्जेक्ट क्लॉज में परिवर्तन के प्रति शेयर पूंजी में\n",
|
196 |
+
"परिवर्तन की प्रक्रिया और ऐसे परिवर्तन करने के अधिकार\n",
|
197 |
+
"समान्य पहलु को आर्टीकल ऑफ एसोसिएशन में रखा गया है\n",
|
198 |
+
"यदि संबंधित विषय के\n",
|
199 |
+
" आर्टीकल ऑफ एसोसिएशन में पीछे की प्रक्रिया नहीं दी गई है\n",
|
200 |
+
"कंपनी को पारित करके आर्टीकल ऑफ एसोसिएशन को बदलना होगा\n",
|
201 |
+
"एक विशेष प्रस्ताव\n",
|
202 |
+
"अब हम ऑलट्रेशन ऑफ पर चर्चा करेंगे\n",
|
203 |
+
"कंपनी अधिनियम टू ज़ीरो वन थ्री के तहत मेमोरेंडम\n",
|
204 |
+
"अधिनियम की धारा वन सिक्स वन सेवेन वन ऐइट वन नाइन \n",
|
205 |
+
" वन नाइन फाइव सिक्स के कंपनी टू वन टू थ्री और थ्री सेवेन के अनुरूप\n",
|
206 |
+
"कंपनी अधिनियम टू ज़ीरो वन थ्री की धारा वन थ्री ने\n",
|
207 |
+
" ऑलट्रेशन ऑफ मेमोरेंडम के लिए मानदंड निर्धारित किए हैं\n",
|
208 |
+
"यह वही वर्णन करता है कि जैसा कि धारा सिक्स वन में दिया गया है\n",
|
209 |
+
"एक कंपनी विशेष संकल्प द्वारा\n",
|
210 |
+
"और प्रावधानों को बदल सकती है\n",
|
211 |
+
"निर्दिष्ट प्रक्रिया के अनुपालन से मेमोरेंडम\n",
|
212 |
+
"नाम खंड के परिवर्तन के संबंध में\n",
|
213 |
+
"कंपनी अपना नाम बदल सकती है\n",
|
214 |
+
"अनुमोदन के बाद लिखित रूप में केंद्र सरकार द्वारा\n",
|
215 |
+
"इसलिए जब कंपनी के नाम में कोई बदलाव किया जाता है\n",
|
216 |
+
"रजिस्टर में दर्ज करेगा\n",
|
217 |
+
" तो रजिस्ट्रार कंपनी के नया नाम\n",
|
218 |
+
"पुराने नाम के स्थान पर\n",
|
219 |
+
"निगमन का एक नया प्रमाणपत्र जारी करेगा\n",
|
220 |
+
"कंपनी के पंजीकृत कार्यालय के बारे में\n",
|
221 |
+
"जैसा कि पहले उल्लेख किया गया है\n",
|
222 |
+
"तब तक कोई प्रभाव नहीं पड़ेगा जब तक कि वह केंद्र सरकार द्वारा अनुमोदित नहीं हो जाता\n",
|
223 |
+
"ऑब्जेक्ट क्लॉज के किसी भी परिवर्तन के संबंध में\n",
|
224 |
+
"किसी कंपनी के मेमोरेंडम के\n",
|
225 |
+
"रजिस्ट्रार को दाखिल करने की\n",
|
226 |
+
" थ्री ज़ीरो दिनों की अवधि के भीतर\n",
|
227 |
+
"तारीख से पंजीकरण को प्रमाणित करना होता है\n",
|
228 |
+
"इस विशेष प्रस्ताव खंड के उप खंड सिक्स के खंड ए के अनुसार\n",
|
229 |
+
"चलिए फिर से संक्ष���प में\n",
|
230 |
+
" ऑलट्रेशन ऑफ मेमोरेंडम के महत्व के बारे में चर्चा करते हैं\n",
|
231 |
+
" क्योंकि ये इस मॉड्यूल के अध्ययन का एक बहुत महत्वपूर्ण हिस्सा है\n",
|
232 |
+
"पहला महत्व यह है\n",
|
233 |
+
"कि यह एक बहुत ही आवश्यक दस्तावेज है\n",
|
234 |
+
"एक कंपनी के निगमन के लिए\n",
|
235 |
+
"दूसरा यह कंपनी के पंजीकृत कार्यालय को निर्दिष्ट करते हुए\n",
|
236 |
+
"रजिस्ट्रार और अदालत के अधिकार क्षेत्र को निर्धारित करता है\n",
|
237 |
+
"तीसरा यह कंपनी के अधिकारों में उद्देश्यों को\n",
|
238 |
+
"जनता की जानकारी के लिए दर्ज करता है\n",
|
239 |
+
"अगला यह कंपनी को केवल उन कृत्यों को करने के लिए\n",
|
240 |
+
"बाध्य करता है जो कंपनी के ऑब्जेक्ट क्लॉज में शामिल हैं\n",
|
241 |
+
"यह कंपनी की अधिकृत कैपिटल\n",
|
242 |
+
"और उसके विभाजन को निश्चित राशि के शेयरों में निर्दिष्ट करता है\n",
|
243 |
+
"पर प्रकाश डालता है\n",
|
244 |
+
"यह कंपनी के सदस्यों के लायबिलिटी\n",
|
245 |
+
"अंत में संघ के नियमों को\n",
|
246 |
+
"यह एक कंपनी के भी नियंत्रित करता है\n"
|
247 |
+
]
|
248 |
+
}
|
249 |
+
],
|
250 |
+
"source": [
|
251 |
+
"\n",
|
252 |
+
"wb_obj = openpyxl.load_workbook(\"charmap_v2_new.xlsx\") \n",
|
253 |
+
"sheet_obj = wb_obj.active \n",
|
254 |
+
"\n",
|
255 |
+
"#data = re.sub('[A-Z]*', '',data)\n",
|
256 |
+
"#print(data)\n",
|
257 |
+
"data = data.replace('?','')\n",
|
258 |
+
"data = data.replace(' ',' ')\n",
|
259 |
+
"data = data.replace(';','')\n",
|
260 |
+
"data = data.replace(')','')\n",
|
261 |
+
"data = data.replace('(','')\n",
|
262 |
+
"data = data.replace('!','')\n",
|
263 |
+
"data = data.replace(' – ',' ')\n",
|
264 |
+
"data = data.replace('-',' ')\n",
|
265 |
+
"data = data.replace('।','')\n",
|
266 |
+
"data = data.replace('&','')\n",
|
267 |
+
"data = data.replace('’','')\n",
|
268 |
+
"data = data.replace('‘','')\n",
|
269 |
+
"data = data.replace(':','')\n",
|
270 |
+
"data = data.replace(',','')\n",
|
271 |
+
"data = data.replace('/','')\n",
|
272 |
+
"data = data.replace(',','')\n",
|
273 |
+
"data = data.replace('.','')\n",
|
274 |
+
"data = data.replace('|','')\n",
|
275 |
+
"m_row = sheet_obj.max_row \n",
|
276 |
+
"line = data\n",
|
277 |
+
"\n",
|
278 |
+
"for i in range(1,m_row+1):\n",
|
279 |
+
" num = sheet_obj.cell(row = i, column = 1).value \n",
|
280 |
+
" word = sheet_obj.cell(row = i, column = 2).value\n",
|
281 |
+
" #print(num)\n",
|
282 |
+
" #print(word)\n",
|
283 |
+
" line = line.replace(str(num), word)\n",
|
284 |
+
"#print(line)\n",
|
285 |
+
"#' '.join(line.split())\n",
|
286 |
+
"print(line) \n",
|
287 |
+
"file1 = open(\"recent_deliverables_dec2020/Corporate_Law/Hindi/ankita objects 02_Hindi.txt\",\"w+\",encoding='utf-8') \n",
|
288 |
+
"file1.write(line)\n",
|
289 |
+
"file1.close()"
|
290 |
+
]
|
291 |
+
},
|
292 |
+
{
|
293 |
+
"cell_type": "code",
|
294 |
+
"execution_count": null,
|
295 |
+
"metadata": {
|
296 |
+
"collapsed": true
|
297 |
+
},
|
298 |
+
"outputs": [],
|
299 |
+
"source": []
|
300 |
+
},
|
301 |
+
{
|
302 |
+
"cell_type": "code",
|
303 |
+
"execution_count": null,
|
304 |
+
"metadata": {
|
305 |
+
"collapsed": true
|
306 |
+
},
|
307 |
+
"outputs": [],
|
308 |
+
"source": []
|
309 |
+
}
|
310 |
+
],
|
311 |
+
"metadata": {
|
312 |
+
"kernelspec": {
|
313 |
+
"display_name": "Python 3",
|
314 |
+
"language": "python",
|
315 |
+
"name": "python3"
|
316 |
+
},
|
317 |
+
"language_info": {
|
318 |
+
"codemirror_mode": {
|
319 |
+
"name": "ipython",
|
320 |
+
"version": 3
|
321 |
+
},
|
322 |
+
"file_extension": ".py",
|
323 |
+
"mimetype": "text/x-python",
|
324 |
+
"name": "python",
|
325 |
+
"nbconvert_exporter": "python",
|
326 |
+
"pygments_lexer": "ipython3",
|
327 |
+
"version": "3.6.3"
|
328 |
+
}
|
329 |
+
},
|
330 |
+
"nbformat": 4,
|
331 |
+
"nbformat_minor": 2
|
332 |
+
}
|
charmap/Text_Cleaning.py
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python
|
2 |
+
# coding: utf-8
|
3 |
+
|
4 |
+
# In[2]:
|
5 |
+
|
6 |
+
|
7 |
+
############################################################
|
8 |
+
#Author : Bhagyashree
|
9 |
+
#Date : 1st Sept, 2020
|
10 |
+
#Purpose : Text Cleaning
|
11 |
+
#Input : Text file after timestamp removal
|
12 |
+
#Output : Text file after cleaning data
|
13 |
+
############################################################
|
14 |
+
|
15 |
+
|
16 |
+
# In[3]:
|
17 |
+
|
18 |
+
|
19 |
+
import nltk
|
20 |
+
import numpy
|
21 |
+
import xlrd
|
22 |
+
import openpyxl
|
23 |
+
import re
|
24 |
+
import sys
|
25 |
+
|
26 |
+
# In[21]:
|
27 |
+
|
28 |
+
#file1 = open("recent_deliverables_dec2020/Corporate_Law/Hindi/ankita objects 02_Hindi_new.txt","r+",encoding='utf-8')
|
29 |
+
file1 = open(sys.argv[1],"r+",encoding='utf-8')
|
30 |
+
data = file1.read()
|
31 |
+
#print(data)
|
32 |
+
file1.close()
|
33 |
+
|
34 |
+
|
35 |
+
# In[22]:
|
36 |
+
|
37 |
+
wb_obj = openpyxl.load_workbook(sys.argv[2])
|
38 |
+
sheet_obj = wb_obj.active
|
39 |
+
|
40 |
+
#data = re.sub('[A-Z]*', '',data)
|
41 |
+
#print(data)
|
42 |
+
data = data.replace('?','')
|
43 |
+
data = data.replace(' ',' ')
|
44 |
+
data = data.replace(';','')
|
45 |
+
data = data.replace(')','')
|
46 |
+
data = data.replace('(','')
|
47 |
+
data = data.replace('!','')
|
48 |
+
data = data.replace(' – ',' ')
|
49 |
+
data = data.replace('-',' ')
|
50 |
+
data = data.replace('।','')
|
51 |
+
data = data.replace('&','')
|
52 |
+
data = data.replace('’','')
|
53 |
+
data = data.replace('‘','')
|
54 |
+
data = data.replace(':','')
|
55 |
+
data = data.replace(',','')
|
56 |
+
data = data.replace('/','')
|
57 |
+
data = data.replace(',','')
|
58 |
+
data = data.replace('.','')
|
59 |
+
data = data.replace('|','')
|
60 |
+
m_row = sheet_obj.max_row
|
61 |
+
line = data
|
62 |
+
|
63 |
+
for i in range(1,m_row+1):
|
64 |
+
num = sheet_obj.cell(row = i, column = 1).value
|
65 |
+
word = sheet_obj.cell(row = i, column = 2).value
|
66 |
+
#print(num)
|
67 |
+
#print(word)
|
68 |
+
line = line.replace(str(num), word)
|
69 |
+
#print(line)
|
70 |
+
#' '.join(line.split())
|
71 |
+
#print(line)
|
72 |
+
file1 = open(sys.argv[3],"w+",encoding='utf-8')
|
73 |
+
#file1 = open("recent_deliverables_dec2020/Corporate_Law/Hindi/ankita objects 02_Hindi.txt","w+",encoding='utf-8')
|
74 |
+
file1.write(line)
|
75 |
+
file1.close()
|
76 |
+
|
charmap/charmap_Bengali.txt
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
0 জিরো
|
2 |
+
1 ওয়ান
|
3 |
+
2 টু
|
4 |
+
3 থ্রী
|
5 |
+
4 ফোর
|
6 |
+
5 ফাইভ
|
7 |
+
6 সিক্স
|
8 |
+
7 সেবন
|
9 |
+
8 এইট
|
10 |
+
9 নাইন
|
11 |
+
A এ
|
12 |
+
a এ
|
13 |
+
B বী
|
14 |
+
b বী
|
15 |
+
C সী
|
16 |
+
c সী
|
17 |
+
D ডি
|
18 |
+
d ডি
|
19 |
+
E ই
|
20 |
+
e ই
|
21 |
+
F এফ
|
22 |
+
f এফ
|
23 |
+
G জি
|
24 |
+
g জি
|
25 |
+
H এছ
|
26 |
+
h এছ
|
27 |
+
I আই
|
28 |
+
i আই
|
29 |
+
J জে
|
30 |
+
j জে
|
31 |
+
K কে
|
32 |
+
k কে
|
33 |
+
L এল
|
34 |
+
l এল
|
35 |
+
M এম
|
36 |
+
m এম
|
37 |
+
N এন
|
38 |
+
n এন
|
39 |
+
O ও
|
40 |
+
o ও
|
41 |
+
P পি
|
42 |
+
p পি
|
43 |
+
Q ক্যু
|
44 |
+
q ক্যু
|
45 |
+
R আর
|
46 |
+
r আর
|
47 |
+
S এস
|
48 |
+
s এস
|
49 |
+
T টি
|
50 |
+
t টি
|
51 |
+
U ইউ
|
52 |
+
u ইউ
|
53 |
+
V ভি
|
54 |
+
v ভি
|
55 |
+
W ডাবলু
|
56 |
+
w ডাবলু
|
57 |
+
X এক্স
|
58 |
+
x এক্স
|
59 |
+
Y উহাই
|
60 |
+
y উহাই
|
61 |
+
Z জেডঃ
|
62 |
+
z জেডঃ
|
charmap/charmap_Hindi.txt
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
0 ज़ीरो
|
2 |
+
1 वन
|
3 |
+
2 टू
|
4 |
+
3 थ्री
|
5 |
+
4 फोर
|
6 |
+
5 फाइव
|
7 |
+
6 सिक्स
|
8 |
+
7 सेवेन
|
9 |
+
8 ऐइट
|
10 |
+
9 नाइन
|
11 |
+
० ज़ीरो
|
12 |
+
१ वन
|
13 |
+
२ टू
|
14 |
+
३ थ्री
|
15 |
+
४ फोर
|
16 |
+
५ फाइव
|
17 |
+
६ सिक्स
|
18 |
+
७ सेवेन
|
19 |
+
८ ऐइट
|
20 |
+
९ नाइन
|
21 |
+
A ए
|
22 |
+
a ए
|
23 |
+
B बी
|
24 |
+
b बी
|
25 |
+
C सी
|
26 |
+
c सी
|
27 |
+
D डी
|
28 |
+
d डी
|
29 |
+
E इ
|
30 |
+
e इ
|
31 |
+
F एफ
|
32 |
+
f एफ
|
33 |
+
G जी
|
34 |
+
g जी
|
35 |
+
H एच
|
36 |
+
h एच
|
37 |
+
I आई
|
38 |
+
i आई
|
39 |
+
J जे
|
40 |
+
j जे
|
41 |
+
K के
|
42 |
+
k के
|
43 |
+
L एल
|
44 |
+
l एल
|
45 |
+
M एम
|
46 |
+
m एम
|
47 |
+
N एन
|
48 |
+
n एन
|
49 |
+
O ओ
|
50 |
+
o ओ
|
51 |
+
P पी
|
52 |
+
p पी
|
53 |
+
Q क्यू
|
54 |
+
q क्यू
|
55 |
+
R आर
|
56 |
+
r आर
|
57 |
+
S एस
|
58 |
+
s एस
|
59 |
+
T टी
|
60 |
+
t टी
|
61 |
+
U यू
|
62 |
+
u यू
|
63 |
+
V वी
|
64 |
+
v वी
|
65 |
+
W डबलु
|
66 |
+
w डबलु
|
67 |
+
X एक्स
|
68 |
+
x एक्स
|
69 |
+
Y व्हाई
|
70 |
+
y व्हाई
|
71 |
+
Z ज़ेड
|
72 |
+
z ज़ेड
|
73 |
+
α अल्फा
|
74 |
+
φ फ़ाई
|
75 |
+
+ प्लस
|
76 |
+
= इक्वल
|
77 |
+
λ लैम्ब्डा
|
78 |
+
∅ नॉट
|
79 |
+
ϕ फ़ाई
|
80 |
+
𝝅 पाई
|
81 |
+
⇒ इम्प्लइज
|
charmap/charmap_Hindi.xlsx
ADDED
Binary file (10.8 kB). View file
|
|
charmap/charmap_Malayalam.txt
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
0 സീറോ
|
2 |
+
1 വൺ
|
3 |
+
2 ടു
|
4 |
+
3 ത്രീ
|
5 |
+
4 ഫോർ
|
6 |
+
5 ഫൈവ്
|
7 |
+
6 സിക്സ്
|
8 |
+
7 സെവൻ
|
9 |
+
8 എയ്റ്റ്
|
10 |
+
9 നൈൻ
|
11 |
+
0 സീറോ
|
12 |
+
1 വൺ
|
13 |
+
2 ടു
|
14 |
+
3 ത്രീ
|
15 |
+
4 ഫോർ
|
16 |
+
5 ഫൈവ്
|
17 |
+
6 സിക്സ്
|
18 |
+
7 സെവൻ
|
19 |
+
8 എയ്റ്റ്
|
20 |
+
9 നൈൻ
|
21 |
+
A എ
|
22 |
+
a എ
|
23 |
+
B ബി
|
24 |
+
b ബി
|
25 |
+
C സി
|
26 |
+
c സി
|
27 |
+
D ഡി
|
28 |
+
d ഡി
|
29 |
+
E ഇ
|
30 |
+
e ഇ
|
31 |
+
F എഫ്
|
32 |
+
f എഫ്
|
33 |
+
G ജി
|
34 |
+
g ജി
|
35 |
+
H എഛ്
|
36 |
+
h എഛ്
|
37 |
+
I ഐ
|
38 |
+
i ഐ
|
39 |
+
J ജെ
|
40 |
+
j ജെ
|
41 |
+
K കെ
|
42 |
+
k കെ
|
43 |
+
L എൽ
|
44 |
+
l എൽ
|
45 |
+
M എം
|
46 |
+
m എം
|
47 |
+
N എൻ
|
48 |
+
n എൻ
|
49 |
+
O ഒ
|
50 |
+
o ഒ
|
51 |
+
P പി
|
52 |
+
p പി
|
53 |
+
Q ക്യു
|
54 |
+
q ക്യു
|
55 |
+
R ആർ
|
56 |
+
r ആർ
|
57 |
+
S എസ്
|
58 |
+
s എസ്
|
59 |
+
T ടി
|
60 |
+
t ടി
|
61 |
+
U യു
|
62 |
+
u യു
|
63 |
+
V വി
|
64 |
+
v വി
|
65 |
+
W ഡബ്ല്യൂ
|
66 |
+
w ഡബ്ല്യൂ
|
67 |
+
X എക്സ്
|
68 |
+
x എക്സ്
|
69 |
+
Y വൈ
|
70 |
+
y വൈ
|
71 |
+
Z സെഡ്
|
72 |
+
z സെഡ്
|
73 |
+
α ആൽഫ
|
74 |
+
φ ഫി
|
75 |
+
+ പ്ലസ്
|
76 |
+
= ഈക്വൽ
|
77 |
+
λ ലാംബ്ടാ
|
78 |
+
∅ നോട്ട്
|
79 |
+
ϕ സൈ
|
80 |
+
𝝅 പൈ
|
81 |
+
⇒ ഇമ്പ്ലെയ്സ്
|
charmap/charmap_Malayalam.xlsx
ADDED
Binary file (13.1 kB). View file
|
|
charmap/charmap_Marathi.txt
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
0 ज़ीरो
|
2 |
+
1 वन
|
3 |
+
2 टू
|
4 |
+
3 थ्री
|
5 |
+
4 फोर
|
6 |
+
5 फाइव
|
7 |
+
6 सिक्स
|
8 |
+
7 सेवेन
|
9 |
+
8 ऐइट
|
10 |
+
9 नाइन
|
11 |
+
० ज़ीरो
|
12 |
+
१ वन
|
13 |
+
२ टू
|
14 |
+
३ थ्री
|
15 |
+
४ फोर
|
16 |
+
५ फाइव
|
17 |
+
६ सिक्स
|
18 |
+
७ सेवेन
|
19 |
+
८ ऐइट
|
20 |
+
९ नाइन
|
21 |
+
A ए
|
22 |
+
a ए
|
23 |
+
B बी
|
24 |
+
b बी
|
25 |
+
C सी
|
26 |
+
c सी
|
27 |
+
D डी
|
28 |
+
d डी
|
29 |
+
E इ
|
30 |
+
e इ
|
31 |
+
F एफ
|
32 |
+
f एफ
|
33 |
+
G जी
|
34 |
+
g जी
|
35 |
+
H एच
|
36 |
+
h एच
|
37 |
+
I आई
|
38 |
+
i आई
|
39 |
+
J जे
|
40 |
+
j जे
|
41 |
+
K के
|
42 |
+
k के
|
43 |
+
L एल
|
44 |
+
l एल
|
45 |
+
M एम
|
46 |
+
m एम
|
47 |
+
N एन
|
48 |
+
n एन
|
49 |
+
O ओ
|
50 |
+
o ओ
|
51 |
+
P पी
|
52 |
+
p पी
|
53 |
+
Q क्यू
|
54 |
+
q क्यू
|
55 |
+
R आर
|
56 |
+
r आर
|
57 |
+
S एस
|
58 |
+
s एस
|
59 |
+
T टी
|
60 |
+
t टी
|
61 |
+
U यू
|
62 |
+
u यू
|
63 |
+
V वी
|
64 |
+
v वी
|
65 |
+
W डबलु
|
66 |
+
w डबलु
|
67 |
+
X एक्स
|
68 |
+
x एक्स
|
69 |
+
Y व्हाई
|
70 |
+
y व्हाई
|
71 |
+
Z ज़ेड
|
72 |
+
z ज़ेड
|
73 |
+
α अल्फा
|
74 |
+
φ फ़ाई
|
75 |
+
+ प्लस
|
76 |
+
= इक्वल
|
77 |
+
λ लैम्ब्डा
|
78 |
+
∅ नॉट
|
79 |
+
ϕ फ़ाई
|
80 |
+
𝝅 पाई
|
81 |
+
⇒ इम्प्लइज
|
charmap/charmap_Marathi.xlsx
ADDED
Binary file (10.8 kB). View file
|
|
charmap/charmap_Tamil.disabled
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
0 ஸிரோ
|
2 |
+
1 ஒன்னு
|
3 |
+
2 டூ
|
4 |
+
3 த்ரீ
|
5 |
+
4 போர்
|
6 |
+
5 பைவ்
|
7 |
+
6 சீஸ்
|
8 |
+
7 செவென்
|
9 |
+
8 எயிட்
|
10 |
+
9 நயன்
|
11 |
+
A எ
|
12 |
+
a எ
|
13 |
+
B பி
|
14 |
+
b பி
|
15 |
+
C சி
|
16 |
+
c சி
|
17 |
+
D டி
|
18 |
+
d டி
|
19 |
+
E இ
|
20 |
+
e இ
|
21 |
+
F எப்
|
22 |
+
f எப்
|
23 |
+
G ஜி
|
24 |
+
g ஜி
|
25 |
+
H ஹ்
|
26 |
+
h ஹ்
|
27 |
+
I ஐ
|
28 |
+
i ஐ
|
29 |
+
J ஜே
|
30 |
+
j ஜே
|
31 |
+
K கே
|
32 |
+
k கே
|
33 |
+
L ல்
|
34 |
+
l ல்
|
35 |
+
M ம்
|
36 |
+
m ம்
|
37 |
+
N ன்
|
38 |
+
n ன்
|
39 |
+
O ஓ
|
40 |
+
o ஓ
|
41 |
+
P பி
|
42 |
+
p பி
|
43 |
+
Q கியூ
|
44 |
+
q கியூ
|
45 |
+
R ர்
|
46 |
+
r ர்
|
47 |
+
S ஸ்
|
48 |
+
s ஸ்
|
49 |
+
T டீ
|
50 |
+
t டீ
|
51 |
+
U யூ
|
52 |
+
u யூ
|
53 |
+
V வி
|
54 |
+
v வி
|
55 |
+
W டௌபிள்யூ
|
56 |
+
w டௌபிள்யூ
|
57 |
+
X எஸ்
|
58 |
+
x எஸ்
|
59 |
+
Y யை
|
60 |
+
y யை
|
61 |
+
Z செட்
|
62 |
+
z செட்
|
63 |
+
α ஆல்பா
|
64 |
+
φ பிய்
|
65 |
+
+ பிளஸ்
|
66 |
+
= ஏகுவாள்
|
67 |
+
λ லாம்டா
|
68 |
+
∅ நோட்
|
69 |
+
ϕ பிய்
|
70 |
+
𝝅 பை
|
71 |
+
⇒ இம்ப்ளிஸ்
|
72 |
+
. பாயிண்ட்
|
73 |
+
% பெர்ஸண்டாஜ்
|
74 |
+
°C டிகிரிசெல்சியஸ்
|
75 |
+
θ தீட்டா
|
76 |
+
* இண்டூ
|
charmap/charmap_Tamil.xlsx
ADDED
Binary file (11.1 kB). View file
|
|
charmap/charmap_Telugu.txt
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
0 జీరొ
|
2 |
+
1 వన్
|
3 |
+
2 టు
|
4 |
+
3 త్రీ
|
5 |
+
4 ఫోర్
|
6 |
+
5 ఫైవ్
|
7 |
+
6 సిక్స్
|
8 |
+
7 సెవెన్
|
9 |
+
8 ఎఇట్
|
10 |
+
9 నైన్
|
11 |
+
० జీరొ
|
12 |
+
१ వన్
|
13 |
+
२ టు
|
14 |
+
३ త్రీ
|
15 |
+
४ ఫోర్
|
16 |
+
५ ఫైవ్
|
17 |
+
६ సిక్స్
|
18 |
+
७ సెవెన్
|
19 |
+
८ ఎఇట్
|
20 |
+
९ నైన్
|
21 |
+
A ఎ
|
22 |
+
a ఎ
|
23 |
+
B బి
|
24 |
+
b బి
|
25 |
+
C సి
|
26 |
+
c సి
|
27 |
+
D డి
|
28 |
+
d డి
|
29 |
+
E ఇ
|
30 |
+
e ఇ
|
31 |
+
F ఎఫ్
|
32 |
+
f ఎఫ్
|
33 |
+
G జి
|
34 |
+
g జి
|
35 |
+
H హెచ్
|
36 |
+
h హెచ్
|
37 |
+
I ఐ
|
38 |
+
i ఐ
|
39 |
+
J జె
|
40 |
+
j జె
|
41 |
+
K కె
|
42 |
+
k కె
|
43 |
+
L ఎల్
|
44 |
+
l ఎల్
|
45 |
+
M ఎమ్
|
46 |
+
m ఎమ్
|
47 |
+
N ఎన్
|
48 |
+
n ఎన్
|
49 |
+
O ఒ
|
50 |
+
o ఒ
|
51 |
+
P పి
|
52 |
+
p పి
|
53 |
+
Q క్యు
|
54 |
+
q క్యు
|
55 |
+
R ఆర్
|
56 |
+
r ఆర్
|
57 |
+
S ఎస్
|
58 |
+
s ఎస్
|
59 |
+
T టి
|
60 |
+
t టి
|
61 |
+
U యు
|
62 |
+
u యు
|
63 |
+
V వి
|
64 |
+
v వి
|
65 |
+
W డబ్లు
|
66 |
+
w డబ్లు
|
67 |
+
X ఎక్స్
|
68 |
+
x ఎక్స్
|
69 |
+
Y వై
|
70 |
+
y వై
|
71 |
+
Z జెడ్
|
72 |
+
z జెడ్
|
73 |
+
α ఆల్ఫ
|
74 |
+
φ ఫై
|
75 |
+
+ ప్లస్
|
76 |
+
= ఈక్వల్
|
77 |
+
λ లామ్బ్డ
|
78 |
+
∅ నల్
|
79 |
+
ϕ ఫై
|
80 |
+
𝝅 పై
|
81 |
+
⇒ ఇమ్ప్లైస్
|
charmap/charmap_Telugu.xlsx
ADDED
Binary file (10 kB). View file
|
|
get_phone_mapped_python.py
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
class TextReplacer:
|
2 |
+
def __init__(self):
|
3 |
+
self.replacements = {
|
4 |
+
'aa': 'A',
|
5 |
+
'ii': 'I',
|
6 |
+
'uu': 'U',
|
7 |
+
'ee': 'E',
|
8 |
+
'oo': 'O',
|
9 |
+
'nn': 'N',
|
10 |
+
'ae': 'ऍ',
|
11 |
+
'ag': 'ऽ',
|
12 |
+
'au': 'औ',
|
13 |
+
'axx': 'अ',
|
14 |
+
'ax': 'ऑ',
|
15 |
+
'bh': 'B',
|
16 |
+
'ch': 'C',
|
17 |
+
'dh': 'ध',
|
18 |
+
'dx': 'ड',
|
19 |
+
'dxh': 'ढ',
|
20 |
+
'dxhq': 'T',
|
21 |
+
'dxq': 'D',
|
22 |
+
'ei': 'ऐ',
|
23 |
+
'ai': 'ऐ',
|
24 |
+
'eu': 'உ',
|
25 |
+
'gh': 'घ',
|
26 |
+
'gq': 'G',
|
27 |
+
'hq': 'H',
|
28 |
+
'jh': 'J',
|
29 |
+
'kh': 'ख',
|
30 |
+
'khq': 'K',
|
31 |
+
'kq': 'क',
|
32 |
+
# ... Add more replacements as needed
|
33 |
+
}
|
34 |
+
|
35 |
+
def apply_replacements(self, text):
|
36 |
+
for key, value in self.replacements.items():
|
37 |
+
# print('KEY AND VALUE OF PARSED OUTPUT',key, value)
|
38 |
+
text = text.replace(key, value)
|
39 |
+
text = text.replace(" ", "")
|
40 |
+
|
41 |
+
|
42 |
+
return text
|
43 |
+
|
hifigan/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MIT License
|
2 |
+
|
3 |
+
Copyright (c) 2020 Jungil Kong
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE.
|
hifigan/LJSpeech-1.1/training.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
hifigan/LJSpeech-1.1/validation.txt
ADDED
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
LJ050-0269|The essential terms of such memoranda might well be embodied in an Executive order.|The essential terms of such memoranda might well be embodied in an Executive order.
|
2 |
+
LJ050-0270|This Commission can recommend no procedures for the future protection of our Presidents which will guarantee security.|This Commission can recommend no procedures for the future protection of our Presidents which will guarantee security.
|
3 |
+
LJ050-0271|The demands on the President in the execution of His responsibilities in today's world are so varied and complex|The demands on the President in the execution of His responsibilities in today's world are so varied and complex
|
4 |
+
LJ050-0272|and the traditions of the office in a democracy such as ours are so deep-seated as to preclude absolute security.|and the traditions of the office in a democracy such as ours are so deep-seated as to preclude absolute security.
|
5 |
+
LJ050-0273|The Commission has, however, from its examination of the facts of President Kennedy's assassination|The Commission has, however, from its examination of the facts of President Kennedy's assassination
|
6 |
+
LJ050-0274|made certain recommendations which it believes would, if adopted,|made certain recommendations which it believes would, if adopted,
|
7 |
+
LJ050-0275|materially improve upon the procedures in effect at the time of President Kennedy's assassination and result in a substantial lessening of the danger.|materially improve upon the procedures in effect at the time of President Kennedy's assassination and result in a substantial lessening of the danger.
|
8 |
+
LJ050-0276|As has been pointed out, the Commission has not resolved all the proposals which could be made. The Commission nevertheless is confident that,|As has been pointed out, the Commission has not resolved all the proposals which could be made. The Commission nevertheless is confident that,
|
9 |
+
LJ050-0277|with the active cooperation of the responsible agencies and with the understanding of the people of the United States in their demands upon their President,|with the active cooperation of the responsible agencies and with the understanding of the people of the United States in their demands upon their President,
|
10 |
+
LJ050-0278|the recommendations we have here suggested would greatly advance the security of the office without any impairment of our fundamental liberties.|the recommendations we have here suggested would greatly advance the security of the office without any impairment of our fundamental liberties.
|
11 |
+
LJ001-0028|but by printers in Strasburg, Basle, Paris, Lubeck, and other cities.|but by printers in Strasburg, Basle, Paris, Lubeck, and other cities.
|
12 |
+
LJ001-0068|The characteristic Dutch type, as represented by the excellent printer Gerard Leew, is very pronounced and uncompromising Gothic.|The characteristic Dutch type, as represented by the excellent printer Gerard Leew, is very pronounced and uncompromising Gothic.
|
13 |
+
LJ002-0149|The latter indeed hung like millstones round the neck of the unhappy insolvent wretches who found themselves in limbo.|The latter indeed hung like millstones round the neck of the unhappy insolvent wretches who found themselves in limbo.
|
14 |
+
LJ002-0157|and Susannah Evans, in October the same year, for 2 shillings, with costs of 6 shillings, 8 pence.|and Susannah Evans, in October the same year, for two shillings, with costs of six shillings, eight pence.
|
15 |
+
LJ002-0167|quotes a case which came within his own knowledge of a boy sent to prison for non-payment of one penny.|quotes a case which came within his own knowledge of a boy sent to prison for non-payment of one penny.
|
16 |
+
LJ003-0042|The completion of this very necessary building was, however, much delayed for want of funds,|The completion of this very necessary building was, however, much delayed for want of funds,
|
17 |
+
LJ003-0307|but as yet no suggestion was made to provide prison uniform.|but as yet no suggestion was made to provide prison uniform.
|
18 |
+
LJ004-0169|On the dirty bedstead lay a wretched being in the throes of severe illness.|On the dirty bedstead lay a wretched being in the throes of severe illness.
|
19 |
+
LJ004-0233|Under the new rule visitors were not allowed to pass into the interior of the prison, but were detained between the grating.|Under the new rule visitors were not allowed to pass into the interior of the prison, but were detained between the grating.
|
20 |
+
LJ005-0101|whence it deduced the practice and condition of every prison that replied.|whence it deduced the practice and condition of every prison that replied.
|
21 |
+
LJ005-0108|the prisoners, without firing, bedding, or sufficient food, spent their days "in surveying their grotesque prison,|the prisoners, without firing, bedding, or sufficient food, spent their days "in surveying their grotesque prison,
|
22 |
+
LJ005-0202|An examination of this report shows how even the most insignificant township had its jail.|An examination of this report shows how even the most insignificant township had its jail.
|
23 |
+
LJ005-0234|The visits of friends was once more unreservedly allowed, and these incomers freely brought in extra provisions and beer.|The visits of friends was once more unreservedly allowed, and these incomers freely brought in extra provisions and beer.
|
24 |
+
LJ005-0248|and stated that in his opinion Newgate, as the common jail of Middlesex, was wholly inadequate to the proper confinement of its prisoners.|and stated that in his opinion Newgate, as the common jail of Middlesex, was wholly inadequate to the proper confinement of its prisoners.
|
25 |
+
LJ006-0001|The Chronicles of Newgate, Volume 2. By Arthur Griffiths. Section 9: The first report of the inspector of prisons.|The Chronicles of Newgate, Volume two. By Arthur Griffiths. Section nine: The first report of the inspector of prisons.
|
26 |
+
LJ006-0018|One was Mr. William Crawford, the other the Rev. Whitworth Russell.|One was Mr. William Crawford, the other the Rev. Whitworth Russell.
|
27 |
+
LJ006-0034|They attended early and late; they mustered the prisoners, examined into their condition,|They attended early and late; they mustered the prisoners, examined into their condition,
|
28 |
+
LJ006-0078|A new prisoner's fate, as to location, rested really with a powerful fellow-prisoner.|A new prisoner's fate, as to location, rested really with a powerful fellow-prisoner.
|
29 |
+
LJ007-0217|They go on to say|They go on to say
|
30 |
+
LJ007-0243|It was not till the erection of the new prison at Holloway in 1850, and the entire internal reconstruction of Newgate according to new ideas,|It was not till the erection of the new prison at Holloway in eighteen fifty, and the entire internal reconstruction of Newgate according to new ideas,
|
31 |
+
LJ008-0087|The change from Tyburn to the Old Bailey had worked no improvement as regards the gathering together of the crowd or its demeanor.|The change from Tyburn to the Old Bailey had worked no improvement as regards the gathering together of the crowd or its demeanor.
|
32 |
+
LJ008-0131|the other he kept between his hands.|the other he kept between his hands.
|
33 |
+
LJ008-0140|Whenever the public attention had been specially called to a particular crime, either on account of its atrocity,|Whenever the public attention had been specially called to a particular crime, either on account of its atrocity,
|
34 |
+
LJ008-0158|The pressure soon became so frightful that many would have willingly escaped from the crowd; but their attempts only increased the general confusion.|The pressure soon became so frightful that many would have willingly escaped from the crowd; but their attempts only increased the general confusion.
|
35 |
+
LJ008-0174|One cart-load of spectators having broken down, some of its occupants fell off the vehicle, and were instantly trampled to death.|One cart-load of spectators having broken down, some of its occupants fell off the vehicle, and were instantly trampled to death.
|
36 |
+
LJ010-0047|while in 1850 Her Majesty was the victim of another outrage at the hands of one Pate.|while in eighteen fifty Her Majesty was the victim of another outrage at the hands of one Pate.
|
37 |
+
LJ010-0061|That some thirty or more needy men should hope to revolutionize England is a sufficient proof of the absurdity of their attempt.|That some thirty or more needy men should hope to revolutionize England is a sufficient proof of the absurdity of their attempt.
|
38 |
+
LJ010-0105|Thistlewood was discovered next morning in a mean house in White Street, Moorfields.|Thistlewood was discovered next morning in a mean house in White Street, Moorfields.
|
39 |
+
LJ010-0233|Here again probably it was partly the love of notoriety which was the incentive,|Here again probably it was partly the love of notoriety which was the incentive,
|
40 |
+
LJ010-0234|backed possibly with the hope that, as in a much more recent case,|backed possibly with the hope that, as in a much more recent case,
|
41 |
+
LJ010-0258|As the Queen was driving from Buckingham Palace to the Chapel Royal,|As the Queen was driving from Buckingham Palace to the Chapel Royal,
|
42 |
+
LJ010-0262|charged him with the offense.|charged him with the offense.
|
43 |
+
LJ010-0270|exactly tallied with that of the deformed person "wanted" for the assault on the Queen.|exactly tallied with that of the deformed person "wanted" for the assault on the Queen.
|
44 |
+
LJ010-0293|I have already remarked that as violence was more and more eliminated from crimes against the person,|I have already remarked that as violence was more and more eliminated from crimes against the person,
|
45 |
+
LJ011-0009|Nothing more was heard of the affair, although the lady declared that she had never instructed Fauntleroy to sell.|Nothing more was heard of the affair, although the lady declared that she had never instructed Fauntleroy to sell.
|
46 |
+
LJ011-0256|By this time the neighbors were aroused, and several people came to the scene of the affray.|By this time the neighbors were aroused, and several people came to the scene of the affray.
|
47 |
+
LJ012-0044|When his trade was busiest he set up a second establishment, at the head of which, although he was married,|When his trade was busiest he set up a second establishment, at the head of which, although he was married,
|
48 |
+
LJ012-0145|Solomons was now also admitted as a witness, and his evidence, with that of Moss, secured the transportation of the principal actors in the theft.|Solomons was now also admitted as a witness, and his evidence, with that of Moss, secured the transportation of the principal actors in the theft.
|
49 |
+
LJ013-0020|he acted in a manner which excited the suspicions of the crew.|he acted in a manner which excited the suspicions of the crew.
|
50 |
+
LJ013-0077|Barber and Fletcher were both transported for life, although Fletcher declared that Barber was innocent, and had no guilty knowledge of what was being done.|Barber and Fletcher were both transported for life, although Fletcher declared that Barber was innocent, and had no guilty knowledge of what was being done.
|
51 |
+
LJ013-0228|In the pocket of the coat Mr. Cope, the governor, found a neatly-folded cloth, and asked what it was for.|In the pocket of the coat Mr. Cope, the governor, found a neatly-folded cloth, and asked what it was for.
|
52 |
+
LJ014-0020|He was soon afterwards arrested on suspicion, and a search of his lodgings brought to light several garments saturated with blood;|He was soon afterwards arrested on suspicion, and a search of his lodgings brought to light several garments saturated with blood;
|
53 |
+
LJ014-0054|a maidservant, Sarah Thomas, murdered her mistress, an aged woman, by beating out her brains with a stone.|a maidservant, Sarah Thomas, murdered her mistress, an aged woman, by beating out her brains with a stone.
|
54 |
+
LJ014-0101|he found that it was soft and new, while elsewhere it was set and hard.|he found that it was soft and new, while elsewhere it was set and hard.
|
55 |
+
LJ014-0103|beneath them was a layer of fresh mortar, beneath that a lot of loose earth, amongst which a stocking was turned up, and presently a human toe.|beneath them was a layer of fresh mortar, beneath that a lot of loose earth, amongst which a stocking was turned up, and presently a human toe.
|
56 |
+
LJ014-0263|When other pleasures palled he took a theatre, and posed as a munificent patron of the dramatic art.|When other pleasures palled he took a theatre, and posed as a munificent patron of the dramatic art.
|
57 |
+
LJ014-0272|and 1850 to embezzle and apply to his own purposes some £71,000.|and eighteen fifty to embezzle and apply to his own purposes some seventy-one thousand pounds.
|
58 |
+
LJ014-0311|His extensive business had been carried on by fraud.|His extensive business had been carried on by fraud.
|
59 |
+
LJ015-0197|which at one time spread terror throughout London. Thieves preferred now to use ingenuity rather than brute force.|which at one time spread terror throughout London. Thieves preferred now to use ingenuity rather than brute force.
|
60 |
+
LJ016-0089|He was engaged in whitewashing and cleaning; the officer who had him in charge left him on the stairs leading to the gallery.|He was engaged in whitewashing and cleaning; the officer who had him in charge left him on the stairs leading to the gallery.
|
61 |
+
LJ016-0407|who generally attended the prison services.|who generally attended the prison services.
|
62 |
+
LJ016-0443|He was promptly rescued from his perilous condition, but not before his face and hands were badly scorched.|He was promptly rescued from his perilous condition, but not before his face and hands were badly scorched.
|
63 |
+
LJ017-0033|a medical practitioner, charged with doing to death persons who relied upon his professional skill.|a medical practitioner, charged with doing to death persons who relied upon his professional skill.
|
64 |
+
LJ017-0038|That the administration of justice should never be interfered with by local prejudice or local feeling|That the administration of justice should never be interfered with by local prejudice or local feeling
|
65 |
+
LJ018-0018|he wore gold-rimmed eye-glasses and a gold watch and chain.|he wore gold-rimmed eye-glasses and a gold watch and chain.
|
66 |
+
LJ018-0119|His offer was not, however, accepted.|His offer was not, however, accepted.
|
67 |
+
LJ018-0280|The commercial experience of these clever rogues was cosmopolitan.|The commercial experience of these clever rogues was cosmopolitan.
|
68 |
+
LJ019-0178|and abandoned because of the expense. As to the entire reconstruction of Newgate, nothing had been done as yet.|and abandoned because of the expense. As to the entire reconstruction of Newgate, nothing had been done as yet.
|
69 |
+
LJ019-0240|But no structural alterations were made from the date first quoted until the time of closing the prison in 1881.|But no structural alterations were made from the date first quoted until the time of closing the prison in eighteen eighty-one.
|
70 |
+
LJ021-0049|and the curtailment of rank stock speculation through the Securities Exchange Act.|and the curtailment of rank stock speculation through the Securities Exchange Act.
|
71 |
+
LJ021-0155|both directly on the public works themselves, and indirectly in the industries supplying the materials for these public works.|both directly on the public works themselves, and indirectly in the industries supplying the materials for these public works.
|
72 |
+
LJ022-0046|It is true that while business and industry are definitely better our relief rolls are still too large.|It is true that while business and industry are definitely better our relief rolls are still too large.
|
73 |
+
LJ022-0173|for the regulation of transportation by water, for the strengthening of our Merchant Marine and Air Transport,|for the regulation of transportation by water, for the strengthening of our Merchant Marine and Air Transport,
|
74 |
+
LJ024-0087|I have thus explained to you the reasons that lie behind our efforts to secure results by legislation within the Constitution.|I have thus explained to you the reasons that lie behind our efforts to secure results by legislation within the Constitution.
|
75 |
+
LJ024-0110|And the strategy of that last stand is to suggest the time-consuming process of amendment in order to kill off by delay|And the strategy of that last stand is to suggest the time-consuming process of amendment in order to kill off by delay
|
76 |
+
LJ024-0119|When before have you found them really at your side in your fights for progress?|When before have you found them really at your side in your fights for progress?
|
77 |
+
LJ025-0091|as it was current among contemporary chemists.|as it was current among contemporary chemists.
|
78 |
+
LJ026-0029|so in the case under discussion.|so in the case under discussion.
|
79 |
+
LJ026-0039|the earliest organisms were protists and that from them animals and plants were evolved along divergent lines of descent.|the earliest organisms were protists and that from them animals and plants were evolved along divergent lines of descent.
|
80 |
+
LJ026-0064|but unlike that of the animal, it is not chiefly an income of foods, but only of the raw materials of food.|but unlike that of the animal, it is not chiefly an income of foods, but only of the raw materials of food.
|
81 |
+
LJ026-0105|This is done by diastase, an enzyme of plant cells.|This is done by diastase, an enzyme of plant cells.
|
82 |
+
LJ026-0137|and be laid down as "reserve starch" in the cells of root or stem or elsewhere.|and be laid down as "reserve starch" in the cells of root or stem or elsewhere.
|
83 |
+
LJ027-0006|In all these lines the facts are drawn together by a strong thread of unity.|In all these lines the facts are drawn together by a strong thread of unity.
|
84 |
+
LJ028-0134|He also erected what is called a pensile paradise:|He also erected what is called a pensile paradise:
|
85 |
+
LJ028-0138|perhaps the tales that travelers told him were exaggerated as travelers' tales are likely to be,|perhaps the tales that travelers told him were exaggerated as travelers' tales are likely to be,
|
86 |
+
LJ028-0189|The fall of Babylon with its lofty walls was a most important event in the history of the ancient world.|The fall of Babylon with its lofty walls was a most important event in the history of the ancient world.
|
87 |
+
LJ028-0281|Till mules foal ye shall not take our city, he thought, as he reflected on this speech, that Babylon might now be taken,|Till mules foal ye shall not take our city, he thought, as he reflected on this speech, that Babylon might now be taken,
|
88 |
+
LJ029-0188|Stevenson was jeered, jostled, and spat upon by hostile demonstrators outside the Dallas Memorial Auditorium Theater.|Stevenson was jeered, jostled, and spat upon by hostile demonstrators outside the Dallas Memorial Auditorium Theater.
|
89 |
+
LJ030-0098|The remainder of the motorcade consisted of five cars for other dignitaries, including the mayor of Dallas and Texas Congressmen,|The remainder of the motorcade consisted of five cars for other dignitaries, including the mayor of Dallas and Texas Congressmen,
|
90 |
+
LJ031-0007|Chief of Police Curry and police motorcyclists at the head of the motorcade led the way to the hospital.|Chief of Police Curry and police motorcyclists at the head of the motorcade led the way to the hospital.
|
91 |
+
LJ031-0091|You have to determine which things, which are immediately life threatening and cope with them, before attempting to evaluate the full extent of the injuries.|You have to determine which things, which are immediately life threatening and cope with them, before attempting to evaluate the full extent of the injuries.
|
92 |
+
LJ031-0227|The doctors traced the course of the bullet through the body and, as information was received from Parkland Hospital,|The doctors traced the course of the bullet through the body and, as information was received from Parkland Hospital,
|
93 |
+
LJ032-0100|Marina Oswald|Marina Oswald
|
94 |
+
LJ032-0165|to the exclusion of all others because there are not enough microscopic characteristics present in fibers.|to the exclusion of all others because there are not enough microscopic characteristics present in fibers.
|
95 |
+
LJ032-0198|During the period from March 2, 1963, to April 24, 1963,|During the period from March two, nineteen sixty-three, to April twenty-four, nineteen sixty-three,
|
96 |
+
LJ033-0046|went out to the garage to paint some children's blocks, and worked in the garage for half an hour or so.|went out to the garage to paint some children's blocks, and worked in the garage for half an hour or so.
|
97 |
+
LJ033-0072|I then stepped off of it and the officer picked it up in the middle and it bent so.|I then stepped off of it and the officer picked it up in the middle and it bent so.
|
98 |
+
LJ033-0135|Location of Bag|Location of Bag
|
99 |
+
LJ034-0083|The significance of Givens' observation that Oswald was carrying his clipboard|The significance of Givens' observation that Oswald was carrying his clipboard
|
100 |
+
LJ034-0179|and, quote, seemed to be sitting a little forward, end quote,|and, quote, seemed to be sitting a little forward, end quote,
|
101 |
+
LJ035-0125|Victoria Adams, who worked on the fourth floor of the Depository Building,|Victoria Adams, who worked on the fourth floor of the Depository Building,
|
102 |
+
LJ035-0162|approximately 30 to 45 seconds after Oswald's lunchroom encounter with Baker and Truly.|approximately thirty to forty-five seconds after Oswald's lunchroom encounter with Baker and Truly.
|
103 |
+
LJ035-0189|Special Agent Forrest V. Sorrels of the Secret Service, who had been in the motorcade,|Special Agent Forrest V. Sorrels of the Secret Service, who had been in the motorcade,
|
104 |
+
LJ035-0208|Oswald's known actions in the building immediately after the assassination are consistent with his having been at the southeast corner window of the sixth floor|Oswald's known actions in the building immediately after the assassination are consistent with his having been at the southeast corner window of the sixth floor
|
105 |
+
LJ036-0216|Tippit got out and started to walk around the front of the car|Tippit got out and started to walk around the front of the car
|
106 |
+
LJ037-0093|William Arthur Smith was about a block east of 10th and Patton when he heard shots.|William Arthur Smith was about a block east of tenth and Patton when he heard shots.
|
107 |
+
LJ037-0157|taken from Oswald.|taken from Oswald.
|
108 |
+
LJ037-0178|or one used Remington-Peters cartridge case, which may have been in the revolver before the shooting,|or one used Remington-Peters cartridge case, which may have been in the revolver before the shooting,
|
109 |
+
LJ037-0219|Oswald's Jacket|Oswald's Jacket
|
110 |
+
LJ037-0222|When Oswald was arrested, he did not have a jacket.|When Oswald was arrested, he did not have a jacket.
|
111 |
+
LJ038-0017|Attracted by the sound of the sirens, Mrs. Postal stepped out of the box office and walked to the curb.|Attracted by the sound of the sirens, Mrs. Postal stepped out of the box office and walked to the curb.
|
112 |
+
LJ038-0052|testified regarding the arrest of Oswald, as did the various police officers who participated in the fight.|testified regarding the arrest of Oswald, as did the various police officers who participated in the fight.
|
113 |
+
LJ038-0077|Statements of Oswald during Detention.|Statements of Oswald during Detention.
|
114 |
+
LJ038-0161|and he asked me did I know which way he was coming, and I told him, yes, he probably come down Main and turn on Houston and then back again on Elm.|and he asked me did I know which way he was coming, and I told him, yes, he probably come down Main and turn on Houston and then back again on Elm.
|
115 |
+
LJ038-0212|which appeared to be the work of a man expecting to be killed, or imprisoned, or to disappear.|which appeared to be the work of a man expecting to be killed, or imprisoned, or to disappear.
|
116 |
+
LJ039-0103|Oswald, like all Marine recruits, received training on the rifle range at distances up to 500 yards,|Oswald, like all Marine recruits, received training on the rifle range at distances up to five hundred yards,
|
117 |
+
LJ039-0149|established that they had been previously loaded and ejected from the assassination rifle,|established that they had been previously loaded and ejected from the assassination rifle,
|
118 |
+
LJ040-0107|but apparently was not able to spend as much time with them as he would have liked, because of the age gaps of 5 and 7 years,|but apparently was not able to spend as much time with them as he would have liked, because of the age gaps of five and seven years,
|
119 |
+
LJ040-0119|When Pic returned home, Mrs. Oswald tried to play down the event but Mrs. Pic took a different view and asked the Oswalds to leave.|When Pic returned home, Mrs. Oswald tried to play down the event but Mrs. Pic took a different view and asked the Oswalds to leave.
|
120 |
+
LJ040-0161|Dr. Hartogs recommended that Oswald be placed on probation on condition that he seek help and guidance through a child guidance clinic.|Dr. Hartogs recommended that Oswald be placed on probation on condition that he seek help and guidance through a child guidance clinic.
|
121 |
+
LJ040-0169|She observed that since Lee's mother worked all day, he made his own meals and spent all his time alone|She observed that since Lee's mother worked all day, he made his own meals and spent all his time alone
|
122 |
+
LJ041-0098|All the Marine Corps did was to teach you to kill and after you got out of the Marines you might be good gangsters, end quote.|All the Marine Corps did was to teach you to kill and after you got out of the Marines you might be good gangsters, end quote.
|
123 |
+
LJ042-0017|and see for himself how a revolutionary society operates, a Marxist society.|and see for himself how a revolutionary society operates, a Marxist society.
|
124 |
+
LJ042-0070|Oswald was discovered in time to thwart his attempt at suicide.|Oswald was discovered in time to thwart his attempt at suicide.
|
125 |
+
LJ042-0161|Immediately after serving out his 3 years in the U.S. Marine Corps, he abandoned his American life to seek a new life in the USSR.|Immediately after serving out his three years in the U.S. Marine Corps, he abandoned his American life to seek a new life in the USSR.
|
126 |
+
LJ043-0147|He had left a note for his wife telling her what to do in case he were apprehended, as well as his notebook and the pictures of himself holding the rifle.|He had left a note for his wife telling her what to do in case he were apprehended, as well as his notebook and the pictures of himself holding the rifle.
|
127 |
+
LJ043-0178|as, in fact, one of them did appear after the assassination.|as, in fact, one of them did appear after the assassination.
|
128 |
+
LJ043-0183|Oswald did not lack the determination and other traits required|Oswald did not lack the determination and other traits required
|
129 |
+
LJ043-0185|Some idea of what he thought was sufficient reason for such an act may be found in the nature of the motive that he stated for his attack on General Walker.|Some idea of what he thought was sufficient reason for such an act may be found in the nature of the motive that he stated for his attack on General Walker.
|
130 |
+
LJ044-0057|extensive investigation was not able to connect Oswald with that address, although it did develop the fact|extensive investigation was not able to connect Oswald with that address, although it did develop the fact
|
131 |
+
LJ044-0109|It is good to know that movements in support of fair play for Cuba has developed in New Orleans as well as in other cities.|It is good to know that movements in support of fair play for Cuba has developed in New Orleans as well as in other cities.
|
132 |
+
LJ045-0081|Although she denied it in some of her testimony before the Commission,|Although she denied it in some of her testimony before the Commission,
|
133 |
+
LJ045-0147|She asked Oswald, quote,|She asked Oswald, quote,
|
134 |
+
LJ045-0204|he had never found anything to which he felt he could really belong.|he had never found anything to which he felt he could really belong.
|
135 |
+
LJ046-0193|and 12 to 15 of these cases as highly dangerous risks.|and twelve to fifteen of these cases as highly dangerous risks.
|
136 |
+
LJ046-0244|PRS should have investigated and been prepared to guard against it.|PRS should have investigated and been prepared to guard against it.
|
137 |
+
LJ047-0059|However, pursuant to a regular Bureau practice of interviewing certain immigrants from Iron Curtain countries,|However, pursuant to a regular Bureau practice of interviewing certain immigrants from Iron Curtain countries,
|
138 |
+
LJ047-0142|The Bureau had no earlier information suggesting that Oswald had left the United States.|The Bureau had no earlier information suggesting that Oswald had left the United States.
|
139 |
+
LJ048-0035|It was against this background and consistent with the criteria followed by the FBI prior to November 22|It was against this background and consistent with the criteria followed by the FBI prior to November twenty-two
|
140 |
+
LJ048-0063|The formal FBI instructions to its agents outlining the information to be referred to the Secret Service were too narrow at the time of the assassination.|The formal FBI instructions to its agents outlining the information to be referred to the Secret Service were too narrow at the time of the assassination.
|
141 |
+
LJ048-0104|There were far safer routes via freeways directly to the Trade Mart,|There were far safer routes via freeways directly to the Trade Mart,
|
142 |
+
LJ048-0187|In addition, Secret Service agents riding in the motorcade were trained to scan buildings as part of their general observation of the crowd of spectators.|In addition, Secret Service agents riding in the motorcade were trained to scan buildings as part of their general observation of the crowd of spectators.
|
143 |
+
LJ048-0271|will be cause for removal from the Service, end quote.|will be cause for removal from the Service, end quote.
|
144 |
+
LJ049-0031|The Presidential vehicle in use in Dallas, described in chapter 2,|The Presidential vehicle in use in Dallas, described in chapter two,
|
145 |
+
LJ049-0059|Agents are instructed that it is not their responsibility to investigate or evaluate a present danger,|Agents are instructed that it is not their responsibility to investigate or evaluate a present danger,
|
146 |
+
LJ049-0174|to notify the Secret Service of the substantial information about Lee Harvey Oswald which the FBI had accumulated|to notify the Secret Service of the substantial information about Lee Harvey Oswald which the FBI had accumulated
|
147 |
+
LJ050-0049|and from a specialist in psychiatric prognostication at Walter Reed Hospital.|and from a specialist in psychiatric prognostication at Walter Reed Hospital.
|
148 |
+
LJ050-0113|Such agreements should describe in detail the information which is sought, the manner in which it will be provided to the Secret Service,|Such agreements should describe in detail the information which is sought, the manner in which it will be provided to the Secret Service,
|
149 |
+
LJ050-0150|Its present manual filing system is obsolete;|Its present manual filing system is obsolete;
|
150 |
+
LJ050-0189|that written instructions might come into the hands of local newspapers, to the prejudice of the precautions described.|that written instructions might come into the hands of local newspapers, to the prejudice of the precautions described.
|
hifigan/__init__.py
ADDED
File without changes
|
hifigan/__pycache__/__init__.cpython-37.pyc
ADDED
Binary file (131 Bytes). View file
|
|
hifigan/__pycache__/env.cpython-310.pyc
ADDED
Binary file (825 Bytes). View file
|
|
hifigan/__pycache__/env.cpython-37.pyc
ADDED
Binary file (749 Bytes). View file
|
|
hifigan/__pycache__/env.cpython-38.pyc
ADDED
Binary file (809 Bytes). View file
|
|
hifigan/__pycache__/env.cpython-39.pyc
ADDED
Binary file (785 Bytes). View file
|
|
hifigan/__pycache__/meldataset.cpython-310.pyc
ADDED
Binary file (5.4 kB). View file
|
|
hifigan/__pycache__/meldataset.cpython-37.pyc
ADDED
Binary file (5.38 kB). View file
|
|
hifigan/__pycache__/meldataset.cpython-38.pyc
ADDED
Binary file (5.48 kB). View file
|
|
hifigan/__pycache__/meldataset.cpython-39.pyc
ADDED
Binary file (5.46 kB). View file
|
|
hifigan/__pycache__/models.cpython-310.pyc
ADDED
Binary file (8.67 kB). View file
|
|
hifigan/__pycache__/models.cpython-37.pyc
ADDED
Binary file (8.9 kB). View file
|
|
hifigan/__pycache__/models.cpython-38.pyc
ADDED
Binary file (8.73 kB). View file
|
|
hifigan/__pycache__/models.cpython-39.pyc
ADDED
Binary file (8.7 kB). View file
|
|
hifigan/__pycache__/utils.cpython-310.pyc
ADDED
Binary file (2.04 kB). View file
|
|
hifigan/__pycache__/utils.cpython-37.pyc
ADDED
Binary file (1.97 kB). View file
|
|
hifigan/__pycache__/utils.cpython-38.pyc
ADDED
Binary file (2.04 kB). View file
|
|
hifigan/__pycache__/utils.cpython-39.pyc
ADDED
Binary file (1.99 kB). View file
|
|
hifigan/config.yaml
ADDED
@@ -0,0 +1,270 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
config: conf/tuning/train_fastspeech2.yaml
|
2 |
+
print_config: false
|
3 |
+
log_level: INFO
|
4 |
+
dry_run: false
|
5 |
+
iterator_type: sequence
|
6 |
+
output_dir: exp/tts_train_fastspeech2_raw_char_None
|
7 |
+
ngpu: 1
|
8 |
+
seed: 0
|
9 |
+
num_workers: 1
|
10 |
+
num_att_plot: 3
|
11 |
+
dist_backend: nccl
|
12 |
+
dist_init_method: env://
|
13 |
+
dist_world_size: 3
|
14 |
+
dist_rank: 0
|
15 |
+
local_rank: 0
|
16 |
+
dist_master_addr: localhost
|
17 |
+
dist_master_port: 52297
|
18 |
+
dist_launcher: null
|
19 |
+
multiprocessing_distributed: true
|
20 |
+
unused_parameters: false
|
21 |
+
sharded_ddp: false
|
22 |
+
cudnn_enabled: true
|
23 |
+
cudnn_benchmark: false
|
24 |
+
cudnn_deterministic: true
|
25 |
+
collect_stats: false
|
26 |
+
write_collected_feats: false
|
27 |
+
max_epoch: 1000
|
28 |
+
patience: null
|
29 |
+
val_scheduler_criterion:
|
30 |
+
- valid
|
31 |
+
- loss
|
32 |
+
early_stopping_criterion:
|
33 |
+
- valid
|
34 |
+
- loss
|
35 |
+
- min
|
36 |
+
best_model_criterion:
|
37 |
+
- - valid
|
38 |
+
- loss
|
39 |
+
- min
|
40 |
+
- - train
|
41 |
+
- loss
|
42 |
+
- min
|
43 |
+
keep_nbest_models: 5
|
44 |
+
grad_clip: 1.0
|
45 |
+
grad_clip_type: 2.0
|
46 |
+
grad_noise: false
|
47 |
+
accum_grad: 8
|
48 |
+
no_forward_run: false
|
49 |
+
resume: true
|
50 |
+
train_dtype: float32
|
51 |
+
use_amp: false
|
52 |
+
log_interval: null
|
53 |
+
use_tensorboard: true
|
54 |
+
use_wandb: false
|
55 |
+
wandb_project: null
|
56 |
+
wandb_id: null
|
57 |
+
wandb_entity: null
|
58 |
+
wandb_name: null
|
59 |
+
wandb_model_log_interval: -1
|
60 |
+
detect_anomaly: false
|
61 |
+
pretrain_path: null
|
62 |
+
init_param: []
|
63 |
+
ignore_init_mismatch: false
|
64 |
+
freeze_param: []
|
65 |
+
num_iters_per_epoch: 800
|
66 |
+
batch_size: 20
|
67 |
+
valid_batch_size: null
|
68 |
+
batch_bins: 3000000
|
69 |
+
valid_batch_bins: null
|
70 |
+
train_shape_file:
|
71 |
+
- exp/tts_stats_raw_char_None/train/text_shape.char
|
72 |
+
- exp/tts_stats_raw_char_None/train/speech_shape
|
73 |
+
valid_shape_file:
|
74 |
+
- exp/tts_stats_raw_char_None/valid/text_shape.char
|
75 |
+
- exp/tts_stats_raw_char_None/valid/speech_shape
|
76 |
+
batch_type: numel
|
77 |
+
valid_batch_type: null
|
78 |
+
fold_length:
|
79 |
+
- 150
|
80 |
+
- 204800
|
81 |
+
sort_in_batch: descending
|
82 |
+
sort_batch: descending
|
83 |
+
multiple_iterator: false
|
84 |
+
chunk_length: 500
|
85 |
+
chunk_shift_ratio: 0.5
|
86 |
+
num_cache_chunks: 1024
|
87 |
+
train_data_path_and_name_and_type:
|
88 |
+
- - dump/raw/tr_no_dev/text
|
89 |
+
- text
|
90 |
+
- text
|
91 |
+
- - exp/tts_train_raw_char_None/decode_use_teacher_forcingtrue_train.loss.ave/tr_no_dev/durations
|
92 |
+
- durations
|
93 |
+
- text_int
|
94 |
+
- - dump/raw/tr_no_dev/wav.scp
|
95 |
+
- speech
|
96 |
+
- sound
|
97 |
+
valid_data_path_and_name_and_type:
|
98 |
+
- - dump/raw/dev/text
|
99 |
+
- text
|
100 |
+
- text
|
101 |
+
- - exp/tts_train_raw_char_None/decode_use_teacher_forcingtrue_train.loss.ave/dev/durations
|
102 |
+
- durations
|
103 |
+
- text_int
|
104 |
+
- - dump/raw/dev/wav.scp
|
105 |
+
- speech
|
106 |
+
- sound
|
107 |
+
allow_variable_data_keys: false
|
108 |
+
max_cache_size: 0.0
|
109 |
+
max_cache_fd: 32
|
110 |
+
valid_max_cache_size: null
|
111 |
+
optim: adam
|
112 |
+
optim_conf:
|
113 |
+
lr: 1.0
|
114 |
+
scheduler: noamlr
|
115 |
+
scheduler_conf:
|
116 |
+
model_size: 384
|
117 |
+
warmup_steps: 4000
|
118 |
+
token_list:
|
119 |
+
- <blank>
|
120 |
+
- <unk>
|
121 |
+
- <space>
|
122 |
+
- a
|
123 |
+
- A
|
124 |
+
- E
|
125 |
+
- k
|
126 |
+
- r
|
127 |
+
- I
|
128 |
+
- n
|
129 |
+
- s
|
130 |
+
- h
|
131 |
+
- i
|
132 |
+
- q
|
133 |
+
- t
|
134 |
+
- m
|
135 |
+
- o
|
136 |
+
- l
|
137 |
+
- p
|
138 |
+
- u
|
139 |
+
- y
|
140 |
+
- b
|
141 |
+
- d
|
142 |
+
- w
|
143 |
+
- ऐ
|
144 |
+
- g
|
145 |
+
- j
|
146 |
+
- c
|
147 |
+
- ट
|
148 |
+
- थ
|
149 |
+
- श
|
150 |
+
- U
|
151 |
+
- B
|
152 |
+
- औ
|
153 |
+
- ख
|
154 |
+
- ड
|
155 |
+
- z
|
156 |
+
- ध
|
157 |
+
- D
|
158 |
+
- f
|
159 |
+
- C
|
160 |
+
- M
|
161 |
+
- ष
|
162 |
+
- ण
|
163 |
+
- ठ
|
164 |
+
- J
|
165 |
+
- घ
|
166 |
+
- ऑ
|
167 |
+
- P
|
168 |
+
- क
|
169 |
+
- R
|
170 |
+
- T
|
171 |
+
- K
|
172 |
+
- ढ
|
173 |
+
- G
|
174 |
+
- ञ
|
175 |
+
- H
|
176 |
+
- ङ
|
177 |
+
- Y
|
178 |
+
- ऍ
|
179 |
+
- र
|
180 |
+
- <sos/eos>
|
181 |
+
odim: null
|
182 |
+
model_conf: {}
|
183 |
+
use_preprocessor: true
|
184 |
+
token_type: char
|
185 |
+
bpemodel: null
|
186 |
+
non_linguistic_symbols: null
|
187 |
+
cleaner: null
|
188 |
+
g2p: g2p_en_no_space
|
189 |
+
feats_extract: fbank
|
190 |
+
feats_extract_conf:
|
191 |
+
n_fft: 1024
|
192 |
+
hop_length: 256
|
193 |
+
win_length: 1024
|
194 |
+
fs: 22050
|
195 |
+
fmin: 0
|
196 |
+
fmax: 8000
|
197 |
+
n_mels: 80
|
198 |
+
normalize: global_mvn
|
199 |
+
normalize_conf:
|
200 |
+
stats_file: /var/www/html/IITM_TTS/E2E_TTS_FS2/fastspeech2/models/Hindi_male/feats_stats.npz
|
201 |
+
tts: fastspeech2
|
202 |
+
tts_conf:
|
203 |
+
adim: 384
|
204 |
+
aheads: 2
|
205 |
+
elayers: 4
|
206 |
+
eunits: 1536
|
207 |
+
dlayers: 4
|
208 |
+
dunits: 1536
|
209 |
+
positionwise_layer_type: conv1d
|
210 |
+
positionwise_conv_kernel_size: 3
|
211 |
+
duration_predictor_layers: 2
|
212 |
+
duration_predictor_chans: 256
|
213 |
+
duration_predictor_kernel_size: 3
|
214 |
+
postnet_layers: 5
|
215 |
+
postnet_filts: 5
|
216 |
+
postnet_chans: 256
|
217 |
+
use_masking: true
|
218 |
+
use_scaled_pos_enc: true
|
219 |
+
encoder_normalize_before: true
|
220 |
+
decoder_normalize_before: true
|
221 |
+
reduction_factor: 1
|
222 |
+
init_type: xavier_uniform
|
223 |
+
init_enc_alpha: 1.0
|
224 |
+
init_dec_alpha: 1.0
|
225 |
+
transformer_enc_dropout_rate: 0.2
|
226 |
+
transformer_enc_positional_dropout_rate: 0.2
|
227 |
+
transformer_enc_attn_dropout_rate: 0.2
|
228 |
+
transformer_dec_dropout_rate: 0.2
|
229 |
+
transformer_dec_positional_dropout_rate: 0.2
|
230 |
+
transformer_dec_attn_dropout_rate: 0.2
|
231 |
+
pitch_predictor_layers: 5
|
232 |
+
pitch_predictor_chans: 256
|
233 |
+
pitch_predictor_kernel_size: 5
|
234 |
+
pitch_predictor_dropout: 0.5
|
235 |
+
pitch_embed_kernel_size: 1
|
236 |
+
pitch_embed_dropout: 0.0
|
237 |
+
stop_gradient_from_pitch_predictor: true
|
238 |
+
energy_predictor_layers: 2
|
239 |
+
energy_predictor_chans: 256
|
240 |
+
energy_predictor_kernel_size: 3
|
241 |
+
energy_predictor_dropout: 0.5
|
242 |
+
energy_embed_kernel_size: 1
|
243 |
+
energy_embed_dropout: 0.0
|
244 |
+
stop_gradient_from_energy_predictor: false
|
245 |
+
pitch_extract: dio
|
246 |
+
pitch_extract_conf:
|
247 |
+
fs: 22050
|
248 |
+
n_fft: 1024
|
249 |
+
hop_length: 256
|
250 |
+
f0max: 350
|
251 |
+
f0min: 40
|
252 |
+
reduction_factor: 1
|
253 |
+
pitch_normalize: global_mvn
|
254 |
+
pitch_normalize_conf:
|
255 |
+
stats_file: /var/www/html/IITM_TTS/E2E_TTS_FS2/fastspeech2/models/Hindi_male/pitch_stats.npz
|
256 |
+
energy_extract: energy
|
257 |
+
energy_extract_conf:
|
258 |
+
fs: 22050
|
259 |
+
n_fft: 1024
|
260 |
+
hop_length: 256
|
261 |
+
win_length: 1024
|
262 |
+
reduction_factor: 1
|
263 |
+
energy_normalize: global_mvn
|
264 |
+
energy_normalize_conf:
|
265 |
+
stats_file: /var/www/html/IITM_TTS/E2E_TTS_FS2/fastspeech2/models/Hindi_male/energy_stats.npz
|
266 |
+
required:
|
267 |
+
- output_dir
|
268 |
+
- token_list
|
269 |
+
version: 0.10.3a3
|
270 |
+
distributed: true
|
hifigan/config_v1.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"resblock": "1",
|
3 |
+
"num_gpus": 0,
|
4 |
+
"batch_size": 16,
|
5 |
+
"learning_rate": 0.0002,
|
6 |
+
"adam_b1": 0.8,
|
7 |
+
"adam_b2": 0.99,
|
8 |
+
"lr_decay": 0.999,
|
9 |
+
"seed": 1234,
|
10 |
+
|
11 |
+
"upsample_rates": [8,8,2,2],
|
12 |
+
"upsample_kernel_sizes": [16,16,4,4],
|
13 |
+
"upsample_initial_channel": 512,
|
14 |
+
"resblock_kernel_sizes": [3,7,11],
|
15 |
+
"resblock_dilation_sizes": [[1,3,5], [1,3,5], [1,3,5]],
|
16 |
+
|
17 |
+
"segment_size": 8192,
|
18 |
+
"num_mels": 80,
|
19 |
+
"num_freq": 1025,
|
20 |
+
"n_fft": 1024,
|
21 |
+
"hop_size": 256,
|
22 |
+
"win_size": 1024,
|
23 |
+
|
24 |
+
"sampling_rate": 22050,
|
25 |
+
|
26 |
+
"fmin": 0,
|
27 |
+
"fmax": 8000,
|
28 |
+
"fmax_for_loss": null,
|
29 |
+
|
30 |
+
"num_workers": 4,
|
31 |
+
|
32 |
+
"dist_config": {
|
33 |
+
"dist_backend": "nccl",
|
34 |
+
"dist_url": "tcp://localhost:54321",
|
35 |
+
"world_size": 1
|
36 |
+
}
|
37 |
+
}
|
hifigan/config_v2.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"resblock": "1",
|
3 |
+
"num_gpus": 0,
|
4 |
+
"batch_size": 16,
|
5 |
+
"learning_rate": 0.0002,
|
6 |
+
"adam_b1": 0.8,
|
7 |
+
"adam_b2": 0.99,
|
8 |
+
"lr_decay": 0.999,
|
9 |
+
"seed": 1234,
|
10 |
+
|
11 |
+
"upsample_rates": [8,8,2,2],
|
12 |
+
"upsample_kernel_sizes": [16,16,4,4],
|
13 |
+
"upsample_initial_channel": 128,
|
14 |
+
"resblock_kernel_sizes": [3,7,11],
|
15 |
+
"resblock_dilation_sizes": [[1,3,5], [1,3,5], [1,3,5]],
|
16 |
+
|
17 |
+
"segment_size": 8192,
|
18 |
+
"num_mels": 80,
|
19 |
+
"num_freq": 1025,
|
20 |
+
"n_fft": 1024,
|
21 |
+
"hop_size": 256,
|
22 |
+
"win_size": 1024,
|
23 |
+
|
24 |
+
"sampling_rate": 22050,
|
25 |
+
|
26 |
+
"fmin": 0,
|
27 |
+
"fmax": 8000,
|
28 |
+
"fmax_for_loss": null,
|
29 |
+
|
30 |
+
"num_workers": 4,
|
31 |
+
|
32 |
+
"dist_config": {
|
33 |
+
"dist_backend": "nccl",
|
34 |
+
"dist_url": "tcp://localhost:54321",
|
35 |
+
"world_size": 1
|
36 |
+
}
|
37 |
+
}
|
hifigan/config_v3.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"resblock": "2",
|
3 |
+
"num_gpus": 0,
|
4 |
+
"batch_size": 16,
|
5 |
+
"learning_rate": 0.0002,
|
6 |
+
"adam_b1": 0.8,
|
7 |
+
"adam_b2": 0.99,
|
8 |
+
"lr_decay": 0.999,
|
9 |
+
"seed": 1234,
|
10 |
+
|
11 |
+
"upsample_rates": [8,8,4],
|
12 |
+
"upsample_kernel_sizes": [16,16,8],
|
13 |
+
"upsample_initial_channel": 256,
|
14 |
+
"resblock_kernel_sizes": [3,5,7],
|
15 |
+
"resblock_dilation_sizes": [[1,2], [2,6], [3,12]],
|
16 |
+
|
17 |
+
"segment_size": 8192,
|
18 |
+
"num_mels": 80,
|
19 |
+
"num_freq": 1025,
|
20 |
+
"n_fft": 1024,
|
21 |
+
"hop_size": 256,
|
22 |
+
"win_size": 1024,
|
23 |
+
|
24 |
+
"sampling_rate": 22050,
|
25 |
+
|
26 |
+
"fmin": 0,
|
27 |
+
"fmax": 8000,
|
28 |
+
"fmax_for_loss": null,
|
29 |
+
|
30 |
+
"num_workers": 4,
|
31 |
+
|
32 |
+
"dist_config": {
|
33 |
+
"dist_backend": "nccl",
|
34 |
+
"dist_url": "tcp://localhost:54321",
|
35 |
+
"world_size": 1
|
36 |
+
}
|
37 |
+
}
|
hifigan/denorm/test_243.npy.pt
ADDED
Binary file (70.7 kB). View file
|
|
hifigan/env.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import shutil
|
3 |
+
|
4 |
+
|
5 |
+
class AttrDict(dict):
|
6 |
+
def __init__(self, *args, **kwargs):
|
7 |
+
super(AttrDict, self).__init__(*args, **kwargs)
|
8 |
+
self.__dict__ = self
|
9 |
+
|
10 |
+
|
11 |
+
def build_env(config, config_name, path):
|
12 |
+
t_path = os.path.join(path, config_name)
|
13 |
+
if config != t_path:
|
14 |
+
os.makedirs(path, exist_ok=True)
|
15 |
+
shutil.copyfile(config, os.path.join(path, config_name))
|
hifigan/fs2_speed.txt
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
loading model in cpu
|
2 |
+
Run 0
|
3 |
+
Elapsed time: 0.38950467109680176
|
4 |
+
Run 1
|
5 |
+
Elapsed time: 0.1787424087524414
|
6 |
+
Run 2
|
7 |
+
Elapsed time: 0.18103241920471191
|
8 |
+
Run 3
|
9 |
+
Elapsed time: 0.18195390701293945
|
10 |
+
Run 4
|
11 |
+
Elapsed time: 0.18042469024658203
|
12 |
+
-----------------------------
|
13 |
+
loading model in cuda
|
14 |
+
Run 0
|
15 |
+
Elapsed time: 84.3974118232727
|
16 |
+
Run 1
|
17 |
+
Elapsed time: 0.12549662590026855
|
18 |
+
Run 2
|
19 |
+
Elapsed time: 0.12475895881652832
|
20 |
+
Run 3
|
21 |
+
Elapsed time: 0.12504363059997559
|
22 |
+
Run 4
|
23 |
+
Elapsed time: 0.12546324729919434
|
24 |
+
-----------------------------
|
hifigan/gen.wav
ADDED
Binary file (262 kB). View file
|
|