ahegao 1.69.270 → 1.69.272

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -135,3 +135,259 @@ export interface FfmpegResult extends BooleanSuccessAndStringResult {
135
135
  command: string;
136
136
  }
137
137
  export type FetchMethod = "POST" | "GET" | "PUT";
138
+ export declare enum SupportedLanguageGoogle {
139
+ 'Detect language' = "auto",
140
+ 'Automatic' = "auto",
141
+ 'Abkhaz' = "ab",
142
+ 'Acehnese' = "ace",
143
+ 'Acholi' = "ach",
144
+ 'Afar' = "aa",
145
+ 'Afrikaans' = "af",
146
+ 'Albanian' = "sq",
147
+ 'Alur' = "alz",
148
+ 'Amharic' = "am",
149
+ 'Arabic' = "ar",
150
+ 'Armenian' = "hy",
151
+ 'Assamese' = "as",
152
+ 'Avar' = "av",
153
+ 'Awadhi' = "awa",
154
+ 'Aymara' = "ay",
155
+ 'Azerbaijani' = "az",
156
+ 'Balinese' = "ban",
157
+ 'Baluchi' = "bal",
158
+ 'Bambara' = "bm",
159
+ 'Baoulé' = "bci",
160
+ 'Bashkir' = "ba",
161
+ 'Basque' = "eu",
162
+ 'Batak Karo' = "btx",
163
+ 'Batak Simalungun' = "bts",
164
+ 'Batak Toba' = "bbc",
165
+ 'Belarusian' = "be",
166
+ 'Bemba' = "bem",
167
+ 'Bengali' = "bn",
168
+ 'Betawi' = "bew",
169
+ 'Bhojpuri' = "bho",
170
+ 'Bikol' = "bik",
171
+ 'Bosnian' = "bs",
172
+ 'Breton' = "br",
173
+ 'Bulgarian' = "bg",
174
+ 'Buryat' = "bua",
175
+ 'Cantonese' = "yue",
176
+ 'Catalan' = "ca",
177
+ 'Cebuano' = "ceb",
178
+ 'Chamorro' = "ch",
179
+ 'Chechen' = "ce",
180
+ 'Chichewa' = "ny",
181
+ 'Chinese (Simplified)' = "zh-CN",
182
+ 'Chinese (Traditional)' = "zh-TW",
183
+ 'Chuukese' = "chk",
184
+ 'Chuvash' = "cv",
185
+ 'Corsican' = "co",
186
+ 'Crimean Tatar (Cyrillic)' = "crh",
187
+ 'Crimean Tatar (Latin)' = "crh-Latn",
188
+ 'Croatian' = "hr",
189
+ 'Czech' = "cs",
190
+ 'Danish' = "da",
191
+ 'Dari' = "fa-AF",
192
+ 'Dhivehi' = "dv",
193
+ 'Dinka' = "din",
194
+ 'Dogri' = "doi",
195
+ 'Dombe' = "dov",
196
+ 'Dutch' = "nl",
197
+ 'Dyula' = "dyu",
198
+ 'Dzongkha' = "dz",
199
+ 'English' = "en",
200
+ 'Esperanto' = "eo",
201
+ 'Estonian' = "et",
202
+ 'Ewe' = "ee",
203
+ 'Faroese' = "fo",
204
+ 'Fijian' = "fj",
205
+ 'Filipino' = "tl",
206
+ 'Finnish' = "fi",
207
+ 'Fon' = "fon",
208
+ 'French' = "fr",
209
+ 'French (Canada)' = "fr-CA",
210
+ 'Frisian' = "fy",
211
+ 'Friulian' = "fur",
212
+ 'Fulani' = "ff",
213
+ 'Ga' = "gaa",
214
+ 'Galician' = "gl",
215
+ 'Georgian' = "ka",
216
+ 'German' = "de",
217
+ 'Greek' = "el",
218
+ 'Guarani' = "gn",
219
+ 'Gujarati' = "gu",
220
+ 'Haitian Creole' = "ht",
221
+ 'Hakha Chin' = "cnh",
222
+ 'Hausa' = "ha",
223
+ 'Hawaiian' = "haw",
224
+ 'Hebrew' = "he",
225
+ 'Hiligaynon' = "hil",
226
+ 'Hindi' = "hi",
227
+ 'Hmong' = "hmn",
228
+ 'Hungarian' = "hu",
229
+ 'Hunsrik' = "hrx",
230
+ 'Iban' = "iba",
231
+ 'Icelandic' = "is",
232
+ 'Igbo' = "ig",
233
+ 'Ilocano' = "ilo",
234
+ 'Indonesian' = "id",
235
+ 'Inuktut (Latin)' = "iu-Latn",
236
+ 'Inuktut (Syllabics)' = "iu",
237
+ 'Irish' = "ga",
238
+ 'Italian' = "it",
239
+ 'Jamaican Patois' = "jam",
240
+ 'Japanese' = "ja",
241
+ 'Javanese' = "jw",
242
+ 'Jingpo' = "kac",
243
+ 'Kalaallisut' = "kl",
244
+ 'Kannada' = "kn",
245
+ 'Kanuri' = "kr",
246
+ 'Kapampangan' = "pam",
247
+ 'Kazakh' = "kk",
248
+ 'Khasi' = "kha",
249
+ 'Khmer' = "km",
250
+ 'Kiga' = "cgg",
251
+ 'Kikongo' = "kg",
252
+ 'Kinyarwanda' = "rw",
253
+ 'Kituba' = "ktu",
254
+ 'Kokborok' = "trp",
255
+ 'Komi' = "kv",
256
+ 'Konkani' = "gom",
257
+ 'Korean' = "ko",
258
+ 'Krio' = "kri",
259
+ 'Kurdish (Kurmanji)' = "ku",
260
+ 'Kurdish (Sorani)' = "ckb",
261
+ 'Kyrgyz' = "ky",
262
+ 'Lao' = "lo",
263
+ 'Latgalian' = "ltg",
264
+ 'Latin' = "la",
265
+ 'Latvian' = "lv",
266
+ 'Ligurian' = "lij",
267
+ 'Limburgish' = "li",
268
+ 'Lingala' = "ln",
269
+ 'Lithuanian' = "lt",
270
+ 'Lombard' = "lmo",
271
+ 'Luganda' = "lg",
272
+ 'Luo' = "luo",
273
+ 'Luxembourgish' = "lb",
274
+ 'Macedonian' = "mk",
275
+ 'Madurese' = "mad",
276
+ 'Maithili' = "mai",
277
+ 'Makassar' = "mak",
278
+ 'Malagasy' = "mg",
279
+ 'Malay' = "ms",
280
+ 'Malay (Jawi)' = "ms-Arab",
281
+ 'Malayalam' = "ml",
282
+ 'Maltese' = "mt",
283
+ 'Mam' = "mam",
284
+ 'Manx' = "gv",
285
+ 'Maori' = "mi",
286
+ 'Marathi' = "mr",
287
+ 'Marshallese' = "mh",
288
+ 'Marwadi' = "mwr",
289
+ 'Mauritian Creole' = "mfe",
290
+ 'Meadow Mari' = "chm",
291
+ 'Meiteilon (Manipuri)' = "mni-Mtei",
292
+ 'Minang' = "min",
293
+ 'Mizo' = "lus",
294
+ 'Mongolian' = "mn",
295
+ 'Myanmar (Burmese)' = "my",
296
+ 'Nahuatl (Eastern Huasteca)' = "nhe",
297
+ 'Ndau' = "ndc-ZW",
298
+ 'Ndebele (South)' = "nr",
299
+ 'Nepalbhasa (Newari)' = "new",
300
+ 'Nepali' = "ne",
301
+ 'NKo' = "bm-Nkoo",
302
+ 'Norwegian' = "no",
303
+ 'Nuer' = "nus",
304
+ 'Occitan' = "oc",
305
+ 'Odia (Oriya)' = "or",
306
+ 'Oromo' = "om",
307
+ 'Ossetian' = "os",
308
+ 'Pangasinan' = "pag",
309
+ 'Papiamento' = "pap",
310
+ 'Pashto' = "ps",
311
+ 'Persian' = "fa",
312
+ 'Polish' = "pl",
313
+ 'Portuguese' = "pt",
314
+ 'Portuguese (Brazil)' = "pt",
315
+ 'Portuguese (Portugal)' = "pt-PT",
316
+ 'Punjabi' = "pa",
317
+ 'Punjabi (Gurmukhi)' = "pa",
318
+ 'Punjabi (Shahmukhi)' = "pa-Arab",
319
+ 'Quechua' = "qu",
320
+ 'Qʼeqchiʼ' = "kek",
321
+ 'Romani' = "rom",
322
+ 'Romanian' = "ro",
323
+ 'Rundi' = "rn",
324
+ 'Russian' = "ru",
325
+ 'Sami (North)' = "se",
326
+ 'Samoan' = "sm",
327
+ 'Sango' = "sg",
328
+ 'Sanskrit' = "sa",
329
+ 'Santali (Latin)' = "sat-Latn",
330
+ 'Santali (Ol Chiki)' = "sat",
331
+ 'Scots Gaelic' = "gd",
332
+ 'Sepedi' = "nso",
333
+ 'Serbian' = "sr",
334
+ 'Sesotho' = "st",
335
+ 'Seychellois Creole' = "crs",
336
+ 'Shan' = "shn",
337
+ 'Shona' = "sn",
338
+ 'Sicilian' = "scn",
339
+ 'Silesian' = "szl",
340
+ 'Sindhi' = "sd",
341
+ 'Sinhala' = "si",
342
+ 'Slovak' = "sk",
343
+ 'Slovenian' = "sl",
344
+ 'Somali' = "so",
345
+ 'Spanish' = "es",
346
+ 'Sundanese' = "su",
347
+ 'Susu' = "sus",
348
+ 'Swahili' = "sw",
349
+ 'Swati' = "ss",
350
+ 'Swedish' = "sv",
351
+ 'Tahitian' = "ty",
352
+ 'Tajik' = "tg",
353
+ 'Tamazight' = "ber-Latn",
354
+ 'Tamazight (Tifinagh)' = "ber",
355
+ 'Tamil' = "ta",
356
+ 'Tatar' = "tt",
357
+ 'Telugu' = "te",
358
+ 'Tetum' = "tet",
359
+ 'Thai' = "th",
360
+ 'Tibetan' = "bo",
361
+ 'Tigrinya' = "ti",
362
+ 'Tiv' = "tiv",
363
+ 'Tok Pisin' = "tpi",
364
+ 'Tongan' = "to",
365
+ 'Tshiluba' = "lua",
366
+ 'Tsonga' = "ts",
367
+ 'Tswana' = "tn",
368
+ 'Tulu' = "tcy",
369
+ 'Tumbuka' = "tum",
370
+ 'Turkish' = "tr",
371
+ 'Turkmen' = "tk",
372
+ 'Tuvan' = "tyv",
373
+ 'Twi' = "ak",
374
+ 'Udmurt' = "udm",
375
+ 'Ukrainian' = "uk",
376
+ 'Urdu' = "ur",
377
+ 'Uyghur' = "ug",
378
+ 'Uzbek' = "uz",
379
+ 'Venda' = "ve",
380
+ 'Venetian' = "vec",
381
+ 'Vietnamese' = "vi",
382
+ 'Waray' = "war",
383
+ 'Welsh' = "cy",
384
+ 'Wolof' = "wo",
385
+ 'Xhosa' = "xh",
386
+ 'Yakut' = "sah",
387
+ 'Yiddish' = "yi",
388
+ 'Yoruba' = "yo",
389
+ 'Yucatec Maya' = "yua",
390
+ 'Zapotec' = "zap",
391
+ 'Zulu' = "zu"
392
+ }
393
+ export declare const supportedLanguageGoogleArray: SupportedLanguageGoogle[];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  ////////////////////////////////////////////////////////////////////////////////////
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.GitSyncStatus = exports.DEFAULT_MIC_INFO = void 0;
4
+ exports.supportedLanguageGoogleArray = exports.SupportedLanguageGoogle = exports.GitSyncStatus = exports.DEFAULT_MIC_INFO = void 0;
5
5
  exports.DEFAULT_MIC_INFO = {
6
6
  bitrate: 48000,
7
7
  exitIfSilentForS: 0,
@@ -16,4 +16,261 @@ var GitSyncStatus;
16
16
  GitSyncStatus["SYNCED"] = "synced";
17
17
  GitSyncStatus["FAILED"] = "failed";
18
18
  })(GitSyncStatus || (exports.GitSyncStatus = GitSyncStatus = {}));
19
+ var SupportedLanguageGoogle;
20
+ (function (SupportedLanguageGoogle) {
21
+ SupportedLanguageGoogle["Detect language"] = "auto";
22
+ SupportedLanguageGoogle["Automatic"] = "auto";
23
+ SupportedLanguageGoogle["Abkhaz"] = "ab";
24
+ SupportedLanguageGoogle["Acehnese"] = "ace";
25
+ SupportedLanguageGoogle["Acholi"] = "ach";
26
+ SupportedLanguageGoogle["Afar"] = "aa";
27
+ SupportedLanguageGoogle["Afrikaans"] = "af";
28
+ SupportedLanguageGoogle["Albanian"] = "sq";
29
+ SupportedLanguageGoogle["Alur"] = "alz";
30
+ SupportedLanguageGoogle["Amharic"] = "am";
31
+ SupportedLanguageGoogle["Arabic"] = "ar";
32
+ SupportedLanguageGoogle["Armenian"] = "hy";
33
+ SupportedLanguageGoogle["Assamese"] = "as";
34
+ SupportedLanguageGoogle["Avar"] = "av";
35
+ SupportedLanguageGoogle["Awadhi"] = "awa";
36
+ SupportedLanguageGoogle["Aymara"] = "ay";
37
+ SupportedLanguageGoogle["Azerbaijani"] = "az";
38
+ SupportedLanguageGoogle["Balinese"] = "ban";
39
+ SupportedLanguageGoogle["Baluchi"] = "bal";
40
+ SupportedLanguageGoogle["Bambara"] = "bm";
41
+ SupportedLanguageGoogle["Baoul\u00E9"] = "bci";
42
+ SupportedLanguageGoogle["Bashkir"] = "ba";
43
+ SupportedLanguageGoogle["Basque"] = "eu";
44
+ SupportedLanguageGoogle["Batak Karo"] = "btx";
45
+ SupportedLanguageGoogle["Batak Simalungun"] = "bts";
46
+ SupportedLanguageGoogle["Batak Toba"] = "bbc";
47
+ SupportedLanguageGoogle["Belarusian"] = "be";
48
+ SupportedLanguageGoogle["Bemba"] = "bem";
49
+ SupportedLanguageGoogle["Bengali"] = "bn";
50
+ SupportedLanguageGoogle["Betawi"] = "bew";
51
+ SupportedLanguageGoogle["Bhojpuri"] = "bho";
52
+ SupportedLanguageGoogle["Bikol"] = "bik";
53
+ SupportedLanguageGoogle["Bosnian"] = "bs";
54
+ SupportedLanguageGoogle["Breton"] = "br";
55
+ SupportedLanguageGoogle["Bulgarian"] = "bg";
56
+ SupportedLanguageGoogle["Buryat"] = "bua";
57
+ SupportedLanguageGoogle["Cantonese"] = "yue";
58
+ SupportedLanguageGoogle["Catalan"] = "ca";
59
+ SupportedLanguageGoogle["Cebuano"] = "ceb";
60
+ SupportedLanguageGoogle["Chamorro"] = "ch";
61
+ SupportedLanguageGoogle["Chechen"] = "ce";
62
+ SupportedLanguageGoogle["Chichewa"] = "ny";
63
+ SupportedLanguageGoogle["Chinese (Simplified)"] = "zh-CN";
64
+ SupportedLanguageGoogle["Chinese (Traditional)"] = "zh-TW";
65
+ SupportedLanguageGoogle["Chuukese"] = "chk";
66
+ SupportedLanguageGoogle["Chuvash"] = "cv";
67
+ SupportedLanguageGoogle["Corsican"] = "co";
68
+ SupportedLanguageGoogle["Crimean Tatar (Cyrillic)"] = "crh";
69
+ SupportedLanguageGoogle["Crimean Tatar (Latin)"] = "crh-Latn";
70
+ SupportedLanguageGoogle["Croatian"] = "hr";
71
+ SupportedLanguageGoogle["Czech"] = "cs";
72
+ SupportedLanguageGoogle["Danish"] = "da";
73
+ SupportedLanguageGoogle["Dari"] = "fa-AF";
74
+ SupportedLanguageGoogle["Dhivehi"] = "dv";
75
+ SupportedLanguageGoogle["Dinka"] = "din";
76
+ SupportedLanguageGoogle["Dogri"] = "doi";
77
+ SupportedLanguageGoogle["Dombe"] = "dov";
78
+ SupportedLanguageGoogle["Dutch"] = "nl";
79
+ SupportedLanguageGoogle["Dyula"] = "dyu";
80
+ SupportedLanguageGoogle["Dzongkha"] = "dz";
81
+ SupportedLanguageGoogle["English"] = "en";
82
+ SupportedLanguageGoogle["Esperanto"] = "eo";
83
+ SupportedLanguageGoogle["Estonian"] = "et";
84
+ SupportedLanguageGoogle["Ewe"] = "ee";
85
+ SupportedLanguageGoogle["Faroese"] = "fo";
86
+ SupportedLanguageGoogle["Fijian"] = "fj";
87
+ SupportedLanguageGoogle["Filipino"] = "tl";
88
+ SupportedLanguageGoogle["Finnish"] = "fi";
89
+ SupportedLanguageGoogle["Fon"] = "fon";
90
+ SupportedLanguageGoogle["French"] = "fr";
91
+ SupportedLanguageGoogle["French (Canada)"] = "fr-CA";
92
+ SupportedLanguageGoogle["Frisian"] = "fy";
93
+ SupportedLanguageGoogle["Friulian"] = "fur";
94
+ SupportedLanguageGoogle["Fulani"] = "ff";
95
+ SupportedLanguageGoogle["Ga"] = "gaa";
96
+ SupportedLanguageGoogle["Galician"] = "gl";
97
+ SupportedLanguageGoogle["Georgian"] = "ka";
98
+ SupportedLanguageGoogle["German"] = "de";
99
+ SupportedLanguageGoogle["Greek"] = "el";
100
+ SupportedLanguageGoogle["Guarani"] = "gn";
101
+ SupportedLanguageGoogle["Gujarati"] = "gu";
102
+ SupportedLanguageGoogle["Haitian Creole"] = "ht";
103
+ SupportedLanguageGoogle["Hakha Chin"] = "cnh";
104
+ SupportedLanguageGoogle["Hausa"] = "ha";
105
+ SupportedLanguageGoogle["Hawaiian"] = "haw";
106
+ SupportedLanguageGoogle["Hebrew"] = "he";
107
+ SupportedLanguageGoogle["Hiligaynon"] = "hil";
108
+ SupportedLanguageGoogle["Hindi"] = "hi";
109
+ SupportedLanguageGoogle["Hmong"] = "hmn";
110
+ SupportedLanguageGoogle["Hungarian"] = "hu";
111
+ SupportedLanguageGoogle["Hunsrik"] = "hrx";
112
+ SupportedLanguageGoogle["Iban"] = "iba";
113
+ SupportedLanguageGoogle["Icelandic"] = "is";
114
+ SupportedLanguageGoogle["Igbo"] = "ig";
115
+ SupportedLanguageGoogle["Ilocano"] = "ilo";
116
+ SupportedLanguageGoogle["Indonesian"] = "id";
117
+ SupportedLanguageGoogle["Inuktut (Latin)"] = "iu-Latn";
118
+ SupportedLanguageGoogle["Inuktut (Syllabics)"] = "iu";
119
+ SupportedLanguageGoogle["Irish"] = "ga";
120
+ SupportedLanguageGoogle["Italian"] = "it";
121
+ SupportedLanguageGoogle["Jamaican Patois"] = "jam";
122
+ SupportedLanguageGoogle["Japanese"] = "ja";
123
+ SupportedLanguageGoogle["Javanese"] = "jw";
124
+ SupportedLanguageGoogle["Jingpo"] = "kac";
125
+ SupportedLanguageGoogle["Kalaallisut"] = "kl";
126
+ SupportedLanguageGoogle["Kannada"] = "kn";
127
+ SupportedLanguageGoogle["Kanuri"] = "kr";
128
+ SupportedLanguageGoogle["Kapampangan"] = "pam";
129
+ SupportedLanguageGoogle["Kazakh"] = "kk";
130
+ SupportedLanguageGoogle["Khasi"] = "kha";
131
+ SupportedLanguageGoogle["Khmer"] = "km";
132
+ SupportedLanguageGoogle["Kiga"] = "cgg";
133
+ SupportedLanguageGoogle["Kikongo"] = "kg";
134
+ SupportedLanguageGoogle["Kinyarwanda"] = "rw";
135
+ SupportedLanguageGoogle["Kituba"] = "ktu";
136
+ SupportedLanguageGoogle["Kokborok"] = "trp";
137
+ SupportedLanguageGoogle["Komi"] = "kv";
138
+ SupportedLanguageGoogle["Konkani"] = "gom";
139
+ SupportedLanguageGoogle["Korean"] = "ko";
140
+ SupportedLanguageGoogle["Krio"] = "kri";
141
+ SupportedLanguageGoogle["Kurdish (Kurmanji)"] = "ku";
142
+ SupportedLanguageGoogle["Kurdish (Sorani)"] = "ckb";
143
+ SupportedLanguageGoogle["Kyrgyz"] = "ky";
144
+ SupportedLanguageGoogle["Lao"] = "lo";
145
+ SupportedLanguageGoogle["Latgalian"] = "ltg";
146
+ SupportedLanguageGoogle["Latin"] = "la";
147
+ SupportedLanguageGoogle["Latvian"] = "lv";
148
+ SupportedLanguageGoogle["Ligurian"] = "lij";
149
+ SupportedLanguageGoogle["Limburgish"] = "li";
150
+ SupportedLanguageGoogle["Lingala"] = "ln";
151
+ SupportedLanguageGoogle["Lithuanian"] = "lt";
152
+ SupportedLanguageGoogle["Lombard"] = "lmo";
153
+ SupportedLanguageGoogle["Luganda"] = "lg";
154
+ SupportedLanguageGoogle["Luo"] = "luo";
155
+ SupportedLanguageGoogle["Luxembourgish"] = "lb";
156
+ SupportedLanguageGoogle["Macedonian"] = "mk";
157
+ SupportedLanguageGoogle["Madurese"] = "mad";
158
+ SupportedLanguageGoogle["Maithili"] = "mai";
159
+ SupportedLanguageGoogle["Makassar"] = "mak";
160
+ SupportedLanguageGoogle["Malagasy"] = "mg";
161
+ SupportedLanguageGoogle["Malay"] = "ms";
162
+ SupportedLanguageGoogle["Malay (Jawi)"] = "ms-Arab";
163
+ SupportedLanguageGoogle["Malayalam"] = "ml";
164
+ SupportedLanguageGoogle["Maltese"] = "mt";
165
+ SupportedLanguageGoogle["Mam"] = "mam";
166
+ SupportedLanguageGoogle["Manx"] = "gv";
167
+ SupportedLanguageGoogle["Maori"] = "mi";
168
+ SupportedLanguageGoogle["Marathi"] = "mr";
169
+ SupportedLanguageGoogle["Marshallese"] = "mh";
170
+ SupportedLanguageGoogle["Marwadi"] = "mwr";
171
+ SupportedLanguageGoogle["Mauritian Creole"] = "mfe";
172
+ SupportedLanguageGoogle["Meadow Mari"] = "chm";
173
+ SupportedLanguageGoogle["Meiteilon (Manipuri)"] = "mni-Mtei";
174
+ SupportedLanguageGoogle["Minang"] = "min";
175
+ SupportedLanguageGoogle["Mizo"] = "lus";
176
+ SupportedLanguageGoogle["Mongolian"] = "mn";
177
+ SupportedLanguageGoogle["Myanmar (Burmese)"] = "my";
178
+ SupportedLanguageGoogle["Nahuatl (Eastern Huasteca)"] = "nhe";
179
+ SupportedLanguageGoogle["Ndau"] = "ndc-ZW";
180
+ SupportedLanguageGoogle["Ndebele (South)"] = "nr";
181
+ SupportedLanguageGoogle["Nepalbhasa (Newari)"] = "new";
182
+ SupportedLanguageGoogle["Nepali"] = "ne";
183
+ SupportedLanguageGoogle["NKo"] = "bm-Nkoo";
184
+ SupportedLanguageGoogle["Norwegian"] = "no";
185
+ SupportedLanguageGoogle["Nuer"] = "nus";
186
+ SupportedLanguageGoogle["Occitan"] = "oc";
187
+ SupportedLanguageGoogle["Odia (Oriya)"] = "or";
188
+ SupportedLanguageGoogle["Oromo"] = "om";
189
+ SupportedLanguageGoogle["Ossetian"] = "os";
190
+ SupportedLanguageGoogle["Pangasinan"] = "pag";
191
+ SupportedLanguageGoogle["Papiamento"] = "pap";
192
+ SupportedLanguageGoogle["Pashto"] = "ps";
193
+ SupportedLanguageGoogle["Persian"] = "fa";
194
+ SupportedLanguageGoogle["Polish"] = "pl";
195
+ SupportedLanguageGoogle["Portuguese"] = "pt";
196
+ SupportedLanguageGoogle["Portuguese (Brazil)"] = "pt";
197
+ SupportedLanguageGoogle["Portuguese (Portugal)"] = "pt-PT";
198
+ SupportedLanguageGoogle["Punjabi"] = "pa";
199
+ SupportedLanguageGoogle["Punjabi (Gurmukhi)"] = "pa";
200
+ SupportedLanguageGoogle["Punjabi (Shahmukhi)"] = "pa-Arab";
201
+ SupportedLanguageGoogle["Quechua"] = "qu";
202
+ SupportedLanguageGoogle["Q\u02BCeqchi\u02BC"] = "kek";
203
+ SupportedLanguageGoogle["Romani"] = "rom";
204
+ SupportedLanguageGoogle["Romanian"] = "ro";
205
+ SupportedLanguageGoogle["Rundi"] = "rn";
206
+ SupportedLanguageGoogle["Russian"] = "ru";
207
+ SupportedLanguageGoogle["Sami (North)"] = "se";
208
+ SupportedLanguageGoogle["Samoan"] = "sm";
209
+ SupportedLanguageGoogle["Sango"] = "sg";
210
+ SupportedLanguageGoogle["Sanskrit"] = "sa";
211
+ SupportedLanguageGoogle["Santali (Latin)"] = "sat-Latn";
212
+ SupportedLanguageGoogle["Santali (Ol Chiki)"] = "sat";
213
+ SupportedLanguageGoogle["Scots Gaelic"] = "gd";
214
+ SupportedLanguageGoogle["Sepedi"] = "nso";
215
+ SupportedLanguageGoogle["Serbian"] = "sr";
216
+ SupportedLanguageGoogle["Sesotho"] = "st";
217
+ SupportedLanguageGoogle["Seychellois Creole"] = "crs";
218
+ SupportedLanguageGoogle["Shan"] = "shn";
219
+ SupportedLanguageGoogle["Shona"] = "sn";
220
+ SupportedLanguageGoogle["Sicilian"] = "scn";
221
+ SupportedLanguageGoogle["Silesian"] = "szl";
222
+ SupportedLanguageGoogle["Sindhi"] = "sd";
223
+ SupportedLanguageGoogle["Sinhala"] = "si";
224
+ SupportedLanguageGoogle["Slovak"] = "sk";
225
+ SupportedLanguageGoogle["Slovenian"] = "sl";
226
+ SupportedLanguageGoogle["Somali"] = "so";
227
+ SupportedLanguageGoogle["Spanish"] = "es";
228
+ SupportedLanguageGoogle["Sundanese"] = "su";
229
+ SupportedLanguageGoogle["Susu"] = "sus";
230
+ SupportedLanguageGoogle["Swahili"] = "sw";
231
+ SupportedLanguageGoogle["Swati"] = "ss";
232
+ SupportedLanguageGoogle["Swedish"] = "sv";
233
+ SupportedLanguageGoogle["Tahitian"] = "ty";
234
+ SupportedLanguageGoogle["Tajik"] = "tg";
235
+ SupportedLanguageGoogle["Tamazight"] = "ber-Latn";
236
+ SupportedLanguageGoogle["Tamazight (Tifinagh)"] = "ber";
237
+ SupportedLanguageGoogle["Tamil"] = "ta";
238
+ SupportedLanguageGoogle["Tatar"] = "tt";
239
+ SupportedLanguageGoogle["Telugu"] = "te";
240
+ SupportedLanguageGoogle["Tetum"] = "tet";
241
+ SupportedLanguageGoogle["Thai"] = "th";
242
+ SupportedLanguageGoogle["Tibetan"] = "bo";
243
+ SupportedLanguageGoogle["Tigrinya"] = "ti";
244
+ SupportedLanguageGoogle["Tiv"] = "tiv";
245
+ SupportedLanguageGoogle["Tok Pisin"] = "tpi";
246
+ SupportedLanguageGoogle["Tongan"] = "to";
247
+ SupportedLanguageGoogle["Tshiluba"] = "lua";
248
+ SupportedLanguageGoogle["Tsonga"] = "ts";
249
+ SupportedLanguageGoogle["Tswana"] = "tn";
250
+ SupportedLanguageGoogle["Tulu"] = "tcy";
251
+ SupportedLanguageGoogle["Tumbuka"] = "tum";
252
+ SupportedLanguageGoogle["Turkish"] = "tr";
253
+ SupportedLanguageGoogle["Turkmen"] = "tk";
254
+ SupportedLanguageGoogle["Tuvan"] = "tyv";
255
+ SupportedLanguageGoogle["Twi"] = "ak";
256
+ SupportedLanguageGoogle["Udmurt"] = "udm";
257
+ SupportedLanguageGoogle["Ukrainian"] = "uk";
258
+ SupportedLanguageGoogle["Urdu"] = "ur";
259
+ SupportedLanguageGoogle["Uyghur"] = "ug";
260
+ SupportedLanguageGoogle["Uzbek"] = "uz";
261
+ SupportedLanguageGoogle["Venda"] = "ve";
262
+ SupportedLanguageGoogle["Venetian"] = "vec";
263
+ SupportedLanguageGoogle["Vietnamese"] = "vi";
264
+ SupportedLanguageGoogle["Waray"] = "war";
265
+ SupportedLanguageGoogle["Welsh"] = "cy";
266
+ SupportedLanguageGoogle["Wolof"] = "wo";
267
+ SupportedLanguageGoogle["Xhosa"] = "xh";
268
+ SupportedLanguageGoogle["Yakut"] = "sah";
269
+ SupportedLanguageGoogle["Yiddish"] = "yi";
270
+ SupportedLanguageGoogle["Yoruba"] = "yo";
271
+ SupportedLanguageGoogle["Yucatec Maya"] = "yua";
272
+ SupportedLanguageGoogle["Zapotec"] = "zap";
273
+ SupportedLanguageGoogle["Zulu"] = "zu";
274
+ })(SupportedLanguageGoogle || (exports.SupportedLanguageGoogle = SupportedLanguageGoogle = {}));
275
+ exports.supportedLanguageGoogleArray = Object.values(SupportedLanguageGoogle);
19
276
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":";AAAA,oFAAoF;;;AAkJvE,QAAA,gBAAgB,GAC7B;IACI,OAAO,EAAE,KAAK;IACd,gBAAgB,EAAE,CAAC;IACnB,mBAAmB,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,KAAK;IACZ,4BAA4B,EAAE,CAAC;CAClC,CAAA;AAID,IAAY,aAKX;AALD,WAAY,aAAa;IAErB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACrB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":";AAAA,oFAAoF;;;AAkJvE,QAAA,gBAAgB,GAC7B;IACI,OAAO,EAAE,KAAK;IACd,gBAAgB,EAAE,CAAC;IACnB,mBAAmB,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,KAAK;IACZ,4BAA4B,EAAE,CAAC;CAClC,CAAA;AAID,IAAY,aAKX;AALD,WAAY,aAAa;IAErB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACrB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AA4CD,IAAY,uBA+PX;AA/PD,WAAY,uBAAuB;IAElC,mDAA0B,CAAA;IAC1B,6CAAoB,CAAA;IACpB,wCAAe,CAAA;IACf,2CAAkB,CAAA;IAClB,yCAAgB,CAAA;IAChB,sCAAa,CAAA;IACb,2CAAkB,CAAA;IAClB,0CAAiB,CAAA;IACjB,uCAAc,CAAA;IACd,yCAAgB,CAAA;IAChB,wCAAe,CAAA;IACf,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;IACjB,sCAAa,CAAA;IACb,yCAAgB,CAAA;IAChB,wCAAe,CAAA;IACf,6CAAoB,CAAA;IACpB,2CAAkB,CAAA;IAClB,0CAAiB,CAAA;IACjB,yCAAgB,CAAA;IAChB,8CAAgB,CAAA;IAChB,yCAAgB,CAAA;IAChB,wCAAe,CAAA;IACf,6CAAoB,CAAA;IACpB,mDAA0B,CAAA;IAC1B,6CAAoB,CAAA;IACpB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,yCAAgB,CAAA;IAChB,yCAAgB,CAAA;IAChB,2CAAkB,CAAA;IAClB,wCAAe,CAAA;IACf,yCAAg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f,wCAAe,CAAA;IACf,sCAAa,CAAA;IACb,yCAAgB,CAAA;IAChB,0CAAiB,CAAA;IACjB,sCAAa,CAAA;IACb,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,2CAAkB,CAAA;IAClB,wCAAe,CAAA;IACf,wCAAe,CAAA;IACf,uCAAc,CAAA;IACd,0CAAiB,CAAA;IACjB,yCAAgB,CAAA;IAChB,yCAAgB,CAAA;IAChB,wCAAe,CAAA;IACf,qCAAY,CAAA;IACZ,yCAAgB,CAAA;IAChB,2CAAkB,CAAA;IAClB,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,uCAAc,CAAA;IACd,uCAAc,CAAA;IACd,2CAAkB,CAAA;IAClB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,uCAAc,CAAA;IACd,uCAAc,CAAA;IACd,uCAAc,CAAA;IACd,wCAAe,CAAA;IACf,yCAAgB,CAAA;IAChB,wCAAe,CAAA;IACf,+CAAsB,CAAA;IACtB,0CAAiB,CAAA;IACjB,sCAAa,CAAA;AACd,CAAC,EA/PW,uBAAuB,uCAAvB,uBAAuB,QA+PlC;AAEY,QAAA,4BAA4B,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAA"}
@@ -4,7 +4,7 @@ import { PathLike, WriteFileOptions } from "fs";
4
4
  import { RequestOptions } from "https";
5
5
  import { GoToOptions } from "puppeteer";
6
6
  import { Cell, FileInfo, Grid, Pos, RangedNumber } from "../structures/structs";
7
- import { Addable, ArrayAnyMatchResult, DatesInfo, gitSyncResult, JSONObject, JSONValue, MicOptions, StdinInfo, StringCount, StringNumberMap, StringStringMap, subtitlesStreamInfo, TextModification, FfmpegResult } from "../types/types";
7
+ import { Addable, ArrayAnyMatchResult, DatesInfo, gitSyncResult, JSONObject, JSONValue, MicOptions, StdinInfo, StringCount, StringNumberMap, StringStringMap, subtitlesStreamInfo, TextModification, FfmpegResult, SupportedLanguageGoogle } from "../types/types";
8
8
  import chalkImport from 'chalk';
9
9
  import { ExecSyncOptionsWithBufferEncoding } from "child_process";
10
10
  import { Client as GeniusClient, Song } from "genius-lyrics";
@@ -567,3 +567,4 @@ export declare function getNextMazePos(doneMaze: Grid<boolean>, pos: Pos): Pos[]
567
567
  export declare function generateMazeMsg(maze: Grid<Cell>, path?: Pos[]): string;
568
568
  export declare function getCornerChar(up: boolean, right: boolean, down: boolean, left: boolean): string;
569
569
  export declare function playSound(filePath: string, delayS?: number): Promise<string>;
570
+ export declare function translateToRandomAndBackToOriginalRecursive(text: string, from: SupportedLanguageGoogle, depth: number, verbose?: boolean, individualTranslationTimeoutS?: number, maxQueries?: number): Promise<string>;
@@ -489,6 +489,7 @@ exports.getNextMazePos = getNextMazePos;
489
489
  exports.generateMazeMsg = generateMazeMsg;
490
490
  exports.getCornerChar = getCornerChar;
491
491
  exports.playSound = playSound;
492
+ exports.translateToRandomAndBackToOriginalRecursive = translateToRandomAndBackToOriginalRecursive;
492
493
  const cheerio = __importStar(require("cheerio"));
493
494
  const fs_1 = require("fs");
494
495
  const https_1 = require("https");
@@ -507,6 +508,7 @@ const os_1 = require("os");
507
508
  const mic_1 = __importDefault(require("mic"));
508
509
  const mathjs_1 = require("mathjs");
509
510
  const discord_util_1 = require("./discord-util");
511
+ const google_translate_api_x_1 = __importDefault(require("google-translate-api-x"));
510
512
  var music_metadata_1 = require("music-metadata");
511
513
  Object.defineProperty(exports, "musicMetadata", { enumerable: true, get: function () { return __importDefault(music_metadata_1).default; } });
512
514
  const ncp = require('node-clipboardy');
@@ -4967,4 +4969,58 @@ async function playSound(filePath, delayS = 0) {
4967
4969
  return runCommand(`ffplay -nodisp -autoexit ${filePath}`);
4968
4970
  }
4969
4971
  }
4972
+ async function translateToRandomAndBackToOriginalRecursive(text, from, depth, verbose = false, individualTranslationTimeoutS = 5, maxQueries = depth * 3) {
4973
+ let lastTo = from;
4974
+ let translations = 0;
4975
+ let output = text;
4976
+ const counter = new classes_1.Timer();
4977
+ counter.startLoadingBarUntilDone(depth);
4978
+ for (let i = 0; i < maxQueries; ++i) {
4979
+ counter.increment();
4980
+ if (depth < translations)
4981
+ break;
4982
+ const to = depth == translations ? from : randomFromArrayButNot(types_1.supportedLanguageGoogleArray, lastTo);
4983
+ if (verbose) {
4984
+ print(`Translating from ${lastTo} to ${to}`);
4985
+ }
4986
+ const result = await new Promise((resolve) => {
4987
+ let aborted = false;
4988
+ const onEnd = (output) => {
4989
+ if (!aborted) {
4990
+ aborted = true;
4991
+ resolve(output);
4992
+ }
4993
+ };
4994
+ (0, google_translate_api_x_1.default)(output, { from: lastTo, to }).then(output => {
4995
+ onEnd(output);
4996
+ });
4997
+ if (individualTranslationTimeoutS > 0) {
4998
+ setTimeout(() => {
4999
+ if (!aborted) {
5000
+ if (verbose) {
5001
+ print(`Timeout!`);
5002
+ }
5003
+ onEnd(null);
5004
+ }
5005
+ }, individualTranslationTimeoutS * 1000);
5006
+ }
5007
+ });
5008
+ if (result == null)
5009
+ continue;
5010
+ if (result.text.length == 0)
5011
+ continue;
5012
+ if (output.toLowerCase() == result.text.toLowerCase())
5013
+ continue;
5014
+ if (verbose) {
5015
+ print(`From: ${exports.chalk.yellowBright(lastTo)}\nTo: ${exports.chalk.magentaBright(to)}`);
5016
+ }
5017
+ output = result.text;
5018
+ ++translations;
5019
+ lastTo = to;
5020
+ // const waitFor = random(1, 8)
5021
+ // print(`Waiting for ${softToFixed(waitFor)}s...`)
5022
+ // await waitS(waitFor)
5023
+ }
5024
+ return output;
5025
+ }
4970
5026
  //# sourceMappingURL=util.js.map