Spaces:
Sleeping
Sleeping
Add Ukrainian and Turkish.
Browse files- src/lookups.py +20 -1
src/lookups.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
language_list = ['swh', 'ara','mya', 'eng', 'fra', 'kmr', 'lin','mos','fas', 'por','ron','rus','spa', 'urd'
|
2 |
#'ara','fas','ukr','tur', 'mya', 'rus',
|
3 |
#'kmr-script_latin', 'urd-script_arabic', 'urd-script_devanagari', 'urd-script_latin',
|
4 |
]
|
@@ -18,6 +18,8 @@ placeholders = {
|
|
18 |
'ron': "Fondul Internațional pentru Urgențe ale Copiilor al Națiunilor Unite",
|
19 |
'rus': 'Международного фонда помощи детям',
|
20 |
'spa': "El Fondo de las Naciones Unidas para la Infancia",
|
|
|
|
|
21 |
'urd': "اقوام متحدہ کا فنڈ برائے اطفال"
|
22 |
}
|
23 |
|
@@ -27,81 +29,98 @@ models = {
|
|
27 |
'mms': 'facebook/mms-tts-swh',
|
28 |
'coqui': None,
|
29 |
'espeakng': 'sw',
|
|
|
30 |
},
|
31 |
'ara': {
|
32 |
'mms': 'facebook/mms-tts-ara',
|
33 |
'coqui': None, ################
|
34 |
'espeakng': 'ar',
|
|
|
35 |
},
|
36 |
'mya': {
|
37 |
'mms': 'facebook/mms-tts-mya',
|
38 |
'coqui': None, ################
|
39 |
'espeakng': 'my',
|
|
|
40 |
},
|
41 |
'eng': {
|
42 |
'mms': 'facebook/mms-tts-eng',
|
43 |
'coqui': None,
|
44 |
'espeakng': 'en',
|
|
|
45 |
},
|
46 |
'fas':{
|
47 |
'mms': 'facebook/mms-tts-fas',
|
48 |
'coqui': None, #'tts_models/fa/custom/glow-tts',
|
49 |
'espeakng': 'fa',
|
|
|
50 |
} ,
|
51 |
'fra':{
|
52 |
'mms': 'facebook/mms-tts-fra',
|
53 |
'coqui': 'tts_models/fr/css10/vits', # Sampling rate: 22050
|
54 |
'espeakng': 'fr',
|
|
|
55 |
},
|
56 |
'kmr': {
|
57 |
'mms': 'facebook/mms-tts-kmr-script_arabic',
|
58 |
'coqui': None, ################
|
59 |
'espeakng': 'ku',
|
|
|
60 |
},
|
61 |
'lin':{
|
62 |
'mms': None,
|
63 |
'coqui': 'tts_models/lin/openbible/vits', # Sampling rate: 22050
|
64 |
'espeakng': None,
|
|
|
65 |
},
|
66 |
'mos':{
|
67 |
'mms': 'facebook/mms-tts-mos',
|
68 |
'coqui': None,
|
69 |
'espeakng': None,
|
|
|
70 |
} ,
|
|
|
71 |
'por':{
|
72 |
'mms': 'facebook/mms-tts-por',
|
73 |
'coqui': 'tts_models/pt/cv/vits', # Sampling rate: 22050
|
74 |
'espeakng': 'pt-br',
|
|
|
75 |
},
|
76 |
'ron':{
|
77 |
'mms': 'facebook/mms-tts-ron',
|
78 |
'coqui': 'tts_models/ro/cv/vits', # Sampling rate: 22050
|
79 |
'espeakng': 'ro',
|
|
|
80 |
},
|
81 |
'rus':{
|
82 |
'mms': 'facebook/mms-tts-rus',
|
83 |
'coqui': None,
|
84 |
'espeakng': 'ru',
|
|
|
85 |
} ,
|
86 |
'spa':{
|
87 |
'mms': 'facebook/mms-tts-spa',
|
88 |
'coqui': 'tts_models/es/css10/vits', # Sampling rate: 22050
|
89 |
'espeakng': 'es-419',
|
|
|
90 |
},
|
91 |
'tur': {
|
92 |
'mms': 'facebook/mms-tts-tur',
|
93 |
'coqui': None, ################
|
94 |
'espeakng': 'tr',
|
|
|
95 |
},
|
96 |
'ukr': {
|
97 |
'mms': 'facebook/mms-tts-ukr',
|
98 |
'coqui': None, ################
|
99 |
'espeakng': 'uk',
|
|
|
100 |
},
|
101 |
'urd': {
|
102 |
'mms': 'facebook/mms-tts-urd-script_arabic',
|
103 |
'coqui': None, ################
|
104 |
'espeakng': 'ur',
|
|
|
105 |
},
|
106 |
}
|
107 |
|
|
|
1 |
+
language_list = ['swh', 'ara','mya', 'eng', 'fra', 'kmr', 'lin','mos','fas', 'por','ron','rus','spa', 'tur', 'ukr', 'urd'
|
2 |
#'ara','fas','ukr','tur', 'mya', 'rus',
|
3 |
#'kmr-script_latin', 'urd-script_arabic', 'urd-script_devanagari', 'urd-script_latin',
|
4 |
]
|
|
|
18 |
'ron': "Fondul Internațional pentru Urgențe ale Copiilor al Națiunilor Unite",
|
19 |
'rus': 'Международного фонда помощи детям',
|
20 |
'spa': "El Fondo de las Naciones Unidas para la Infancia",
|
21 |
+
'tur': "Birleşmiş Milletler Çocuklara Yardım Fonu",
|
22 |
+
'ukr': "Дитя́чий фонд Організа́ція Об'є́днаних На́цій",
|
23 |
'urd': "اقوام متحدہ کا فنڈ برائے اطفال"
|
24 |
}
|
25 |
|
|
|
29 |
'mms': 'facebook/mms-tts-swh',
|
30 |
'coqui': None,
|
31 |
'espeakng': 'sw',
|
32 |
+
'toucan': 'Congo Swahili (swc)',
|
33 |
},
|
34 |
'ara': {
|
35 |
'mms': 'facebook/mms-tts-ara',
|
36 |
'coqui': None, ################
|
37 |
'espeakng': 'ar',
|
38 |
+
'toucan': 'Standard Arabic (arb)',
|
39 |
},
|
40 |
'mya': {
|
41 |
'mms': 'facebook/mms-tts-mya',
|
42 |
'coqui': None, ################
|
43 |
'espeakng': 'my',
|
44 |
+
'toucan': 'Burmese (mya)',
|
45 |
},
|
46 |
'eng': {
|
47 |
'mms': 'facebook/mms-tts-eng',
|
48 |
'coqui': None,
|
49 |
'espeakng': 'en',
|
50 |
+
'toucan': 'English (eng)',
|
51 |
},
|
52 |
'fas':{
|
53 |
'mms': 'facebook/mms-tts-fas',
|
54 |
'coqui': None, #'tts_models/fa/custom/glow-tts',
|
55 |
'espeakng': 'fa',
|
56 |
+
'toucan': 'Persian (pes)', #'Dari (prs)'
|
57 |
} ,
|
58 |
'fra':{
|
59 |
'mms': 'facebook/mms-tts-fra',
|
60 |
'coqui': 'tts_models/fr/css10/vits', # Sampling rate: 22050
|
61 |
'espeakng': 'fr',
|
62 |
+
'toucan': 'French (fra)',
|
63 |
},
|
64 |
'kmr': {
|
65 |
'mms': 'facebook/mms-tts-kmr-script_arabic',
|
66 |
'coqui': None, ################
|
67 |
'espeakng': 'ku',
|
68 |
+
'toucan': 'Kurdish (ckb)',
|
69 |
},
|
70 |
'lin':{
|
71 |
'mms': None,
|
72 |
'coqui': 'tts_models/lin/openbible/vits', # Sampling rate: 22050
|
73 |
'espeakng': None,
|
74 |
+
'toucan': 'Lingala (lin)',
|
75 |
},
|
76 |
'mos':{
|
77 |
'mms': 'facebook/mms-tts-mos',
|
78 |
'coqui': None,
|
79 |
'espeakng': None,
|
80 |
+
'toucan': 'Mossi (mos)',
|
81 |
} ,
|
82 |
+
# 'Southern Pashto (pbt)', 'Northern Pashto (pbu)'
|
83 |
'por':{
|
84 |
'mms': 'facebook/mms-tts-por',
|
85 |
'coqui': 'tts_models/pt/cv/vits', # Sampling rate: 22050
|
86 |
'espeakng': 'pt-br',
|
87 |
+
'toucan': 'Brazilian Portuguese (pt-br)',
|
88 |
},
|
89 |
'ron':{
|
90 |
'mms': 'facebook/mms-tts-ron',
|
91 |
'coqui': 'tts_models/ro/cv/vits', # Sampling rate: 22050
|
92 |
'espeakng': 'ro',
|
93 |
+
'toucan': 'Romanian (ron)',
|
94 |
},
|
95 |
'rus':{
|
96 |
'mms': 'facebook/mms-tts-rus',
|
97 |
'coqui': None,
|
98 |
'espeakng': 'ru',
|
99 |
+
'toucan': 'Russian (rus)',
|
100 |
} ,
|
101 |
'spa':{
|
102 |
'mms': 'facebook/mms-tts-spa',
|
103 |
'coqui': 'tts_models/es/css10/vits', # Sampling rate: 22050
|
104 |
'espeakng': 'es-419',
|
105 |
+
'toucan': 'Spanish (spa)',
|
106 |
},
|
107 |
'tur': {
|
108 |
'mms': 'facebook/mms-tts-tur',
|
109 |
'coqui': None, ################
|
110 |
'espeakng': 'tr',
|
111 |
+
'toucan': 'Turkish (tur)',
|
112 |
},
|
113 |
'ukr': {
|
114 |
'mms': 'facebook/mms-tts-ukr',
|
115 |
'coqui': None, ################
|
116 |
'espeakng': 'uk',
|
117 |
+
'toucan': 'Ukrainian (ukr)',
|
118 |
},
|
119 |
'urd': {
|
120 |
'mms': 'facebook/mms-tts-urd-script_arabic',
|
121 |
'coqui': None, ################
|
122 |
'espeakng': 'ur',
|
123 |
+
'toucan': 'Urdu (urd)',
|
124 |
},
|
125 |
}
|
126 |
|