Hev832 commited on
Commit
9311069
1 Parent(s): af8d1a5

Create language_tts.py

Browse files
Files changed (1) hide show
  1. lib/language_tts.py +235 -0
lib/language_tts.py ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+
4
+ language_dict = {
5
+ 'English-Jenny (Female)': 'en-US-JennyNeural',
6
+ 'English-Guy (Male)': 'en-US-GuyNeural',
7
+ 'English-Ana (Female)': 'en-US-AnaNeural',
8
+ 'English-Aria (Female)': 'en-US-AriaNeural',
9
+ 'English-Christopher (Male)': 'en-US-ChristopherNeural',
10
+ 'English-Eric (Male)': 'en-US-EricNeural',
11
+ 'English-Michelle (Female)': 'en-US-MichelleNeural',
12
+ 'English-Roger (Male)': 'en-US-RogerNeural',
13
+ 'Spanish (Mexican)-Dalia (Female)': 'es-MX-DaliaNeural',
14
+ 'Spanish (Mexican)-Jorge- (Male)': 'es-MX-JorgeNeural',
15
+ 'Korean-Sun-Hi- (Female)': 'ko-KR-SunHiNeural',
16
+ 'Korean-InJoon- (Male)': 'ko-KR-InJoonNeural',
17
+ 'Thai-Premwadee- (Female)': 'th-TH-PremwadeeNeural',
18
+ 'Thai-Niwat- (Male)': 'th-TH-NiwatNeural',
19
+ 'Vietnamese-HoaiMy- (Female)': 'vi-VN-HoaiMyNeural',
20
+ 'Vietnamese-NamMinh- (Male)': 'vi-VN-NamMinhNeural',
21
+ 'Japanese-Nanami- (Female)': 'ja-JP-NanamiNeural',
22
+ 'Japanese-Keita- (Male)': 'ja-JP-KeitaNeural',
23
+ 'French-Denise- (Female)': 'fr-FR-DeniseNeural',
24
+ 'French-Eloise- (Female)': 'fr-FR-EloiseNeural',
25
+ 'French-Henri- (Male)': 'fr-FR-HenriNeural',
26
+ 'Brazilian-Francisca- (Female)': 'pt-BR-FranciscaNeural',
27
+ 'Brazilian-Antonio- (Male)': 'pt-BR-AntonioNeural',
28
+ 'Indonesian-Ardi- (Male)': 'id-ID-ArdiNeural',
29
+ 'Indonesian-Gadis- (Female)': 'id-ID-GadisNeural',
30
+ 'Hebrew-Avri- (Male)': 'he-IL-AvriNeural',
31
+ 'Hebrew-Hila- (Female)': 'he-IL-HilaNeural',
32
+ 'Italian-Isabella- (Female)': 'it-IT-IsabellaNeural',
33
+ 'Italian-Diego- (Male)': 'it-IT-DiegoNeural',
34
+ 'Italian-Elsa- (Female)': 'it-IT-ElsaNeural',
35
+ 'Dutch-Colette- (Female)': 'nl-NL-ColetteNeural',
36
+ 'Dutch-Fenna- (Female)': 'nl-NL-FennaNeural',
37
+ 'Dutch-Maarten- (Male)': 'nl-NL-MaartenNeural',
38
+ 'Malese-Osman- (Male)': 'ms-MY-OsmanNeural',
39
+ 'Malese-Yasmin- (Female)': 'ms-MY-YasminNeural',
40
+ 'Norwegian-Pernille- (Female)': 'nb-NO-PernilleNeural',
41
+ 'Norwegian-Finn- (Male)': 'nb-NO-FinnNeural',
42
+ 'Swedish-Sofie- (Female)': 'sv-SE-SofieNeural',
43
+ 'ArabicSwedish-Mattias- (Male)': 'sv-SE-MattiasNeural',
44
+ 'Arabic-Hamed- (Male)': 'ar-SA-HamedNeural',
45
+ 'Arabic-Zariyah- (Female)': 'ar-SA-ZariyahNeural',
46
+ 'Greek-Athina- (Female)': 'el-GR-AthinaNeural',
47
+ 'Greek-Nestoras- (Male)': 'el-GR-NestorasNeural',
48
+ 'German-Katja- (Female)': 'de-DE-KatjaNeural',
49
+ 'German-Amala- (Female)': 'de-DE-AmalaNeural',
50
+ 'German-Conrad- (Male)': 'de-DE-ConradNeural',
51
+ 'German-Killian- (Male)': 'de-DE-KillianNeural',
52
+ 'Afrikaans-Adri- (Female)': 'af-ZA-AdriNeural',
53
+ 'Afrikaans-Willem- (Male)': 'af-ZA-WillemNeural',
54
+ 'Ethiopian-Ameha- (Male)': 'am-ET-AmehaNeural',
55
+ 'Ethiopian-Mekdes- (Female)': 'am-ET-MekdesNeural',
56
+ 'Arabic (UAD)-Fatima- (Female)': 'ar-AE-FatimaNeural',
57
+ 'Arabic (UAD)-Hamdan- (Male)': 'ar-AE-HamdanNeural',
58
+ 'Arabic (Bahrain)-Ali- (Male)': 'ar-BH-AliNeural',
59
+ 'Arabic (Bahrain)-Laila- (Female)': 'ar-BH-LailaNeural',
60
+ 'Arabic (Algeria)-Ismael- (Male)': 'ar-DZ-IsmaelNeural',
61
+ 'Arabic (Egypt)-Salma- (Female)': 'ar-EG-SalmaNeural',
62
+ 'Arabic (Egypt)-Shakir- (Male)': 'ar-EG-ShakirNeural',
63
+ 'Arabic (Iraq)-Bassel- (Male)': 'ar-IQ-BasselNeural',
64
+ 'Arabic (Iraq)-Rana- (Female)': 'ar-IQ-RanaNeural',
65
+ 'Arabic (Jordan)-Sana- (Female)': 'ar-JO-SanaNeural',
66
+ 'Arabic (Jordan)-Taim- (Male)': 'ar-JO-TaimNeural',
67
+ 'Arabic (Kuwait)-Fahed- (Male)': 'ar-KW-FahedNeural',
68
+ 'Arabic (Kuwait)-Noura- (Female)': 'ar-KW-NouraNeural',
69
+ 'Arabic (Lebanon)-Layla- (Female)': 'ar-LB-LaylaNeural',
70
+ 'Arabic (Lebanon)-Rami- (Male)': 'ar-LB-RamiNeural',
71
+ 'Arabic (Libya)-Iman- (Female)': 'ar-LY-ImanNeural',
72
+ 'Arabic (Libya)-Omar- (Male)': 'ar-LY-OmarNeural',
73
+ 'Arabic (Morocco)-Jamal- (Male)': 'ar-MA-JamalNeural',
74
+ 'Arabic (Morocco)-Mouna- (Female)': 'ar-MA-MounaNeural',
75
+ 'Arabic (Oman)-Abdullah- (Male)': 'ar-OM-AbdullahNeural',
76
+ 'Arabic (Oman)-Aysha- (Female)': 'ar-OM-AyshaNeural',
77
+ 'Arabic (Qatar)-Amal- (Female)': 'ar-QA-AmalNeural',
78
+ 'Arabic (Qatar)-Moaz- (Male)': 'ar-QA-MoazNeural',
79
+ 'Arabic (Syrian Arab Republic)-Amany- (Female)': 'ar-SY-AmanyNeural',
80
+ 'Arabic (Syrian Arab Republic)-Laith- (Male)': 'ar-SY-LaithNeural',
81
+ 'Arabic (Tunisia)-Hedi- (Male)': 'ar-TN-HediNeural',
82
+ 'Arabic (Tunisia)-Reem- (Female)': 'ar-TN-ReemNeural',
83
+ 'Arabic (Yemen )-Maryam- (Female)': 'ar-YE-MaryamNeural',
84
+ 'Arabic (Yemen )-Saleh- (Male)': 'ar-YE-SalehNeural',
85
+ 'Azerbaijani-Babek- (Male)': 'az-AZ-BabekNeural',
86
+ 'Azerbaijani-Banu- (Female)': 'az-AZ-BanuNeural',
87
+ 'Bulgarian-Borislav- (Male)': 'bg-BG-BorislavNeural',
88
+ 'Bulgarian-Kalina- (Female)': 'bg-BG-KalinaNeural',
89
+ 'Bengali (Bangladesh)-Nabanita- (Female)': 'bn-BD-NabanitaNeural',
90
+ 'Bengali (Bangladesh)-Pradeep- (Male)': 'bn-BD-PradeepNeural',
91
+ 'Bengali (India)-Bashkar- (Male)': 'bn-IN-BashkarNeural',
92
+ 'Bengali (India)-Tanishaa- (Female)': 'bn-IN-TanishaaNeural',
93
+ 'Bosniak (Bosnia and Herzegovina)-Goran- (Male)': 'bs-BA-GoranNeural',
94
+ 'Bosniak (Bosnia and Herzegovina)-Vesna- (Female)': 'bs-BA-VesnaNeural',
95
+ 'Catalan (Spain)-Joana- (Female)': 'ca-ES-JoanaNeural',
96
+ 'Catalan (Spain)-Enric- (Male)': 'ca-ES-EnricNeural',
97
+ 'Czech (Czech Republic)-Antonin- (Male)': 'cs-CZ-AntoninNeural',
98
+ 'Czech (Czech Republic)-Vlasta- (Female)': 'cs-CZ-VlastaNeural',
99
+ 'Welsh (UK)-Aled- (Male)': 'cy-GB-AledNeural',
100
+ 'Welsh (UK)-Nia- (Female)': 'cy-GB-NiaNeural',
101
+ 'Danish (Denmark)-Christel- (Female)': 'da-DK-ChristelNeural',
102
+ 'Danish (Denmark)-Jeppe- (Male)': 'da-DK-JeppeNeural',
103
+ 'German (Austria)-Ingrid- (Female)': 'de-AT-IngridNeural',
104
+ 'German (Austria)-Jonas- (Male)': 'de-AT-JonasNeural',
105
+ 'German (Switzerland)-Jan- (Male)': 'de-CH-JanNeural',
106
+ 'German (Switzerland)-Leni- (Female)': 'de-CH-LeniNeural',
107
+ 'English (Australia)-Natasha- (Female)': 'en-AU-NatashaNeural',
108
+ 'English (Australia)-William- (Male)': 'en-AU-WilliamNeural',
109
+ 'English (Canada)-Clara- (Female)': 'en-CA-ClaraNeural',
110
+ 'English (Canada)-Liam- (Male)': 'en-CA-LiamNeural',
111
+ 'English (UK)-Libby- (Female)': 'en-GB-LibbyNeural',
112
+ 'English (UK)-Maisie- (Female)': 'en-GB-MaisieNeural',
113
+ 'English (UK)-Ryan- (Male)': 'en-GB-RyanNeural',
114
+ 'English (UK)-Sonia- (Female)': 'en-GB-SoniaNeural',
115
+ 'English (UK)-Thomas- (Male)': 'en-GB-ThomasNeural',
116
+ 'English (Hong Kong)-Sam- (Male)': 'en-HK-SamNeural',
117
+ 'English (Hong Kong)-Yan- (Female)': 'en-HK-YanNeural',
118
+ 'English (Ireland)-Connor- (Male)': 'en-IE-ConnorNeural',
119
+ 'English (Ireland)-Emily- (Female)': 'en-IE-EmilyNeural',
120
+ 'English (India)-Neerja- (Female)': 'en-IN-NeerjaNeural',
121
+ 'English (India)-Prabhat- (Male)': 'en-IN-PrabhatNeural',
122
+ 'English (Kenya)-Asilia- (Female)': 'en-KE-AsiliaNeural',
123
+ 'English (Kenya)-Chilemba- (Male)': 'en-KE-ChilembaNeural',
124
+ 'English (Nigeria)-Abeo- (Male)': 'en-NG-AbeoNeural',
125
+ 'English (Nigeria)-Ezinne- (Female)': 'en-NG-EzinneNeural',
126
+ 'English (New Zealand)-Mitchell- (Male)': 'en-NZ-MitchellNeural',
127
+ 'English (Philippines)-James- (Male)': 'en-PH-JamesNeural',
128
+ 'English (Philippines)-Rosa- (Female)': 'en-PH-RosaNeural',
129
+ 'English (Singapore)-Luna- (Female)': 'en-SG-LunaNeural',
130
+ 'English (Singapore)-Wayne- (Male)': 'en-SG-WayneNeural',
131
+ 'English (Tanzania)-Elimu- (Male)': 'en-TZ-ElimuNeural',
132
+ 'English (Tanzania)-Imani- (Female)': 'en-TZ-ImaniNeural',
133
+ 'English (South Africa)-Leah- (Female)': 'en-ZA-LeahNeural',
134
+ 'English (South Africa)-Luke- (Male)': 'en-ZA-LukeNeural',
135
+ 'Spanish (Argentina)-Elena- (Female)': 'es-AR-ElenaNeural',
136
+ 'Spanish (Argentina)-Tomas- (Male)': 'es-AR-TomasNeural',
137
+ 'Spanish (Bolivia)-Marcelo- (Male)': 'es-BO-MarceloNeural',
138
+ 'Spanish (Bolivia)-Sofia- (Female)': 'es-BO-SofiaNeural',
139
+ 'Spanish (Colombia)-Gonzalo- (Male)': 'es-CO-GonzaloNeural',
140
+ 'Spanish (Colombia)-Salome- (Female)': 'es-CO-SalomeNeural',
141
+ 'Spanish (Costa Rica)-Juan- (Male)': 'es-CR-JuanNeural',
142
+ 'Spanish (Costa Rica)-Maria- (Female)': 'es-CR-MariaNeural',
143
+ 'Spanish (Cuba)-Belkys- (Female)': 'es-CU-BelkysNeural',
144
+ 'Spanish (Dominican Republic)-Emilio- (Male)': 'es-DO-EmilioNeural',
145
+ 'Spanish (Dominican Republic)-Ramona- (Female)': 'es-DO-RamonaNeural',
146
+ 'Spanish (Ecuador)-Andrea- (Female)': 'es-EC-AndreaNeural',
147
+ 'Spanish (Ecuador)-Luis- (Male)': 'es-EC-LuisNeural',
148
+ 'Spanish (Spain)-Alvaro- (Male)': 'es-ES-AlvaroNeural',
149
+ 'Spanish (Spain)-Elvira- (Female)': 'es-ES-ElviraNeural',
150
+ 'Spanish (Equatorial Guinea)-Teresa- (Female)': 'es-GQ-TeresaNeural',
151
+ 'Spanish (Guatemala)-Andres- (Male)': 'es-GT-AndresNeural',
152
+ 'Spanish (Guatemala)-Marta- (Female)': 'es-GT-MartaNeural',
153
+ 'Spanish (Honduras)-Carlos- (Male)': 'es-HN-CarlosNeural',
154
+ 'Spanish (Honduras)-Karla- (Female)': 'es-HN-KarlaNeural',
155
+ 'Spanish (Nicaragua)-Federico- (Male)': 'es-NI-FedericoNeural',
156
+ 'Spanish (Nicaragua)-Yolanda- (Female)': 'es-NI-YolandaNeural',
157
+ 'Spanish (Panama)-Margarita- (Female)': 'es-PA-MargaritaNeural',
158
+ 'Spanish (Panama)-Roberto- (Male)': 'es-PA-RobertoNeural',
159
+ 'Spanish (Peru)-Alex- (Male)': 'es-PE-AlexNeural',
160
+ 'Spanish (Peru)-Camila- (Female)': 'es-PE-CamilaNeural',
161
+ 'Spanish (Puerto Rico)-Karina- (Female)': 'es-PR-KarinaNeural',
162
+ 'Spanish (Puerto Rico)-Victor- (Male)': 'es-PR-VictorNeural',
163
+ 'Spanish (Paraguay)-Mario- (Male)': 'es-PY-MarioNeural',
164
+ 'Spanish (Paraguay)-Tania- (Female)': 'es-PY-TaniaNeural',
165
+ 'Spanish (El Salvador)-Lorena- (Female)': 'es-SV-LorenaNeural',
166
+ 'Spanish (El Salvador)-Rodrigo- (Male)': 'es-SV-RodrigoNeural',
167
+ 'Spanish (United States)-Alonso- (Male)': 'es-US-AlonsoNeural',
168
+ 'Spanish (United States)-Paloma- (Female)': 'es-US-PalomaNeural',
169
+ 'Spanish (Uruguay)-Mateo- (Male)': 'es-UY-MateoNeural',
170
+ 'Spanish (Uruguay)-Valentina- (Female)': 'es-UY-ValentinaNeural',
171
+ 'Spanish (Venezuela)-Paola- (Female)': 'es-VE-PaolaNeural',
172
+ 'Spanish (Venezuela)-Sebastian- (Male)': 'es-VE-SebastianNeural',
173
+ 'Estonian (Estonia)-Anu- (Female)': 'et-EE-AnuNeural',
174
+ 'Estonian (Estonia)-Kert- (Male)': 'et-EE-KertNeural',
175
+ 'Persian (Iran)-Dilara- (Female)': 'fa-IR-DilaraNeural',
176
+ 'Persian (Iran)-Farid- (Male)': 'fa-IR-FaridNeural',
177
+ 'Finnish (Finland)-Harri- (Male)': 'fi-FI-HarriNeural',
178
+ 'Finnish (Finland)-Noora- (Female)': 'fi-FI-NooraNeural',
179
+ 'French (Belgium)-Charline- (Female)': 'fr-BE-CharlineNeural',
180
+ 'French (Belgium)-Gerard- (Male)': 'fr-BE-GerardNeural',
181
+ 'French (Canada)-Sylvie- (Female)': 'fr-CA-SylvieNeural',
182
+ 'French (Canada)-Antoine- (Male)': 'fr-CA-AntoineNeural',
183
+ 'French (Canada)-Jean- (Male)': 'fr-CA-JeanNeural',
184
+ 'French (Switzerland)-Ariane- (Female)': 'fr-CH-ArianeNeural',
185
+ 'French (Switzerland)-Fabrice- (Male)': 'fr-CH-FabriceNeural',
186
+ 'Irish (Ireland)-Colm- (Male)': 'ga-IE-ColmNeural',
187
+ 'Irish (Ireland)-Orla- (Female)': 'ga-IE-OrlaNeural',
188
+ 'Galician (Spain)-Roi- (Male)': 'gl-ES-RoiNeural',
189
+ 'Galician (Spain)-Sabela- (Female)': 'gl-ES-SabelaNeural',
190
+ 'Gujarati (India)-Dhwani- (Female)': 'gu-IN-DhwaniNeural',
191
+ 'Gujarati (India)-Niranjan- (Male)': 'gu-IN-NiranjanNeural',
192
+ 'Hindi (India)-Madhur- (Male)': 'hi-IN-MadhurNeural',
193
+ 'Hindi (India)-Swara- (Female)': 'hi-IN-SwaraNeural',
194
+ 'Croatian (Croatia)-Gabrijela- (Female)': 'hr-HR-GabrijelaNeural',
195
+ 'Croatian (Croatia)-Srecko- (Male)': 'hr-HR-SreckoNeural',
196
+ 'Hungarian (Hungary)-Noemi- (Female)': 'hu-HU-NoemiNeural',
197
+ 'Hungarian (Hungary)-Tamas- (Male)': 'hu-HU-TamasNeural',
198
+ 'Icelandic (Iceland)-Gudrun- (Female)': 'is-IS-GudrunNeural',
199
+ 'Icelandic (Iceland)-Gunnar- (Male)': 'is-IS-GunnarNeural',
200
+ 'Javanese (Indonesia)-Dimas- (Male)': 'jv-ID-DimasNeural',
201
+ 'Javanese (Indonesia)-Siti- (Female)': 'jv-ID-SitiNeural',
202
+ 'Georgian (Georgia)-Eka- (Female)': 'ka-GE-EkaNeural',
203
+ 'Georgian (Georgia)-Giorgi- (Male)': 'ka-GE-GiorgiNeural',
204
+ 'Kazakh (Kazakhstan)-Aigul- (Female)': 'kk-KZ-AigulNeural',
205
+ 'Kazakh (Kazakhstan)-Daulet- (Male)': 'kk-KZ-DauletNeural',
206
+ 'Khmer (Cambodia)-Piseth- (Male)': 'km-KH-PisethNeural',
207
+ 'Khmer (Cambodia)-Sreymom- (Female)': 'km-KH-SreymomNeural',
208
+ 'Kannada (India)-Gagan- (Male)': 'kn-IN-GaganNeural',
209
+ 'Kannada (India)-Sapna- (Female)': 'kn-IN-SapnaNeural',
210
+ 'Lao (Laos)-Chanthavong- (Male)': 'lo-LA-ChanthavongNeural',
211
+ 'Lao (Laos)-Keomany- (Female)': 'lo-LA-KeomanyNeural',
212
+ 'Lithuanian (Lithuania)-Leonas- (Male)': 'lt-LT-LeonasNeural',
213
+ 'Lithuanian (Lithuania)-Ona- (Female)': 'lt-LT-OnaNeural',
214
+ 'Latvian (Latvia)-Everita- (Female)': 'lv-LV-EveritaNeural',
215
+ 'Latvian (Latvia)-Nils- (Male)': 'lv-LV-NilsNeural',
216
+ 'Macedonian (North Macedonia)-Aleksandar- (Male)': 'mk-MK-AleksandarNeural',
217
+ 'Macedonian (North Macedonia)-Marija- (Female)': 'mk-MK-MarijaNeural',
218
+ 'Malayalam (India)-Midhun- (Male)': 'ml-IN-MidhunNeural',
219
+ 'Malayalam (India)-Sobhana- (Female)': 'ml-IN-SobhanaNeural',
220
+ 'Mongolian (Mongolia)-Bataa- (Male)': 'mn-MN-BataaNeural',
221
+ 'Mongolian (Mongolia)-Yesui- (Female)': 'mn-MN-YesuiNeural',
222
+ 'Marathi (India)-Aarohi- (Female)': 'mr-IN-AarohiNeural',
223
+ 'Marathi (India)-Manohar- (Male)': 'mr-IN-ManoharNeural',
224
+ 'Maltese (Malta)-Grace- (Female)': 'mt-MT-GraceNeural',
225
+ 'Maltese (Malta)-Joseph- (Male)': 'mt-MT-JosephNeural',
226
+ 'Burmese (Myanmar)-Nilar- (Female)': 'my-MM-NilarNeural',
227
+ 'Burmese (Myanmar)-Thiha- (Male)': 'my-MM-ThihaNeural',
228
+ 'Nepali (Nepal)-Hemkala- (Female)': 'ne-NP-HemkalaNeural',
229
+ 'Nepali (Nepal)-Sagar- (Male)': 'ne-NP-SagarNeural',
230
+ 'Dutch (Belgium)-Arnaud- (Male)': 'nl-BE-ArnaudNeural',
231
+ 'Dutch (Belgium)-Dena- (Female)': 'nl-BE-DenaNeural',
232
+ 'Polish (Poland)-Marek- (Male)': 'pl-PL-MarekNeural',
233
+ 'Polish (Poland)-Zofia- (Female)': 'pl-PL-ZofiaNeural',
234
+ 'Pashto (Afghanistan)-Gul Nawaz- (Male)': 'ps-AF-Gul',
235
+ }