Add support for Rundi language.
Browse files- src/lookups.py +30 -3
src/lookups.py
CHANGED
@@ -1,4 +1,4 @@
|
|
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 |
]
|
@@ -16,6 +16,7 @@ placeholders = {
|
|
16 |
'mya': "ကုလသမဂ္ဂ အပြည်ပြည်ဆိုင်ရာ ကလေးများရန်ပုံငွေအဖွဲ့",
|
17 |
'por': "O Fundo das Nações Unidas para a Infância",
|
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",
|
@@ -30,54 +31,65 @@ models = {
|
|
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':{
|
@@ -85,42 +97,57 @@ models = {
|
|
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 |
|
|
|
1 |
+
language_list = ['swh', 'ara','mya', 'eng', 'fra', 'kmr', 'lin','mos','fas', 'por','ron', 'run','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 |
]
|
|
|
16 |
'mya': "ကုလသမဂ္ဂ အပြည်ပြည်ဆိုင်ရာ ကလေးများရန်ပုံငွေအဖွဲ့",
|
17 |
'por': "O Fundo das Nações Unidas para a Infância",
|
18 |
'ron': "Fondul Internațional pentru Urgențe ale Copiilor al Națiunilor Unite",
|
19 |
+
'run': "Your phrase here",
|
20 |
'rus': 'Международного фонда помощи детям',
|
21 |
'spa': "El Fondo de las Naciones Unidas para la Infancia",
|
22 |
'tur': "Birleşmiş Milletler Çocuklara Yardım Fonu",
|
|
|
31 |
'coqui': None,
|
32 |
'espeakng': 'sw',
|
33 |
'toucan': 'Congo Swahili (swc)',
|
34 |
+
'piper': [['Swahili', 'csukuangfj/vits-piper-sw_CD-lanfrica-medium']],
|
35 |
},
|
36 |
'ara': {
|
37 |
'mms': 'facebook/mms-tts-ara',
|
38 |
'coqui': None, ################
|
39 |
'espeakng': 'ar',
|
40 |
'toucan': 'Standard Arabic (arb)',
|
41 |
+
'piper': [['Arabic','csukuangfj/vits-piper-ar_JO-kareem-low']] # Other variant(s) exist but have been left out
|
42 |
},
|
43 |
'mya': {
|
44 |
'mms': 'facebook/mms-tts-mya',
|
45 |
'coqui': None, ################
|
46 |
'espeakng': 'my',
|
47 |
'toucan': 'Burmese (mya)',
|
48 |
+
'piper': None
|
49 |
},
|
50 |
'eng': {
|
51 |
'mms': 'facebook/mms-tts-eng',
|
52 |
'coqui': None,
|
53 |
'espeakng': 'en',
|
54 |
'toucan': 'English (eng)',
|
55 |
+
'piper': [['English', 'csukuangfj/vits-piper-en_US-glados|1 speaker']] # Other variant(s) exist but have been left out
|
56 |
},
|
57 |
'fas':{
|
58 |
'mms': 'facebook/mms-tts-fas',
|
59 |
'coqui': None, #'tts_models/fa/custom/glow-tts',
|
60 |
'espeakng': 'fa',
|
61 |
'toucan': 'Persian (pes)', #'Dari (prs)'
|
62 |
+
'piper': [['Persian', 'csukuangfj/vits-piper-fa_IR-amir-medium'],
|
63 |
+
['Persian', 'csukuangfj/vits-piper-fa_IR-gyro-medium']],
|
64 |
+
#'mimic3': ['csukuangfj/vits-mimic3-fa-haaniye_low']
|
65 |
} ,
|
66 |
'fra':{
|
67 |
'mms': 'facebook/mms-tts-fra',
|
68 |
+
'coqui': 'tts_models/fr/css10/vits', # Sampling rate: 22050 ## k2-fsa: 'csukuangfj/vits-coqui-fr-css10'
|
69 |
'espeakng': 'fr',
|
70 |
'toucan': 'French (fra)',
|
71 |
+
'piper': [['French', 'csukuangfj/vits-piper-fr_FR-upmc-medium']] # Other variant(s) exist but have been left out
|
72 |
},
|
73 |
'kmr': {
|
74 |
'mms': 'facebook/mms-tts-kmr-script_arabic',
|
75 |
'coqui': None, ################
|
76 |
'espeakng': 'ku',
|
77 |
'toucan': 'Kurdish (ckb)',
|
78 |
+
'piper': None
|
79 |
},
|
80 |
'lin':{
|
81 |
'mms': None,
|
82 |
'coqui': 'tts_models/lin/openbible/vits', # Sampling rate: 22050
|
83 |
'espeakng': None,
|
84 |
'toucan': 'Lingala (lin)',
|
85 |
+
'piper': None
|
86 |
},
|
87 |
'mos':{
|
88 |
'mms': 'facebook/mms-tts-mos',
|
89 |
'coqui': None,
|
90 |
'espeakng': None,
|
91 |
'toucan': 'Mossi (mos)',
|
92 |
+
'piper': None
|
93 |
} ,
|
94 |
# 'Southern Pashto (pbt)', 'Northern Pashto (pbu)'
|
95 |
'por':{
|
|
|
97 |
'coqui': 'tts_models/pt/cv/vits', # Sampling rate: 22050
|
98 |
'espeakng': 'pt-br',
|
99 |
'toucan': 'Brazilian Portuguese (pt-br)',
|
100 |
+
'piper': [['Portuguese', 'csukuangfj/vits-piper-pt_BR-edresson-low'],
|
101 |
+
['Portuguese', 'csukuangfj/csukuangfj/vits-piper-pt_BR-faber-medium']]
|
102 |
},
|
103 |
'ron':{
|
104 |
'mms': 'facebook/mms-tts-ron',
|
105 |
+
'coqui': 'tts_models/ro/cv/vits', # Sampling rate: 22050 # csukuangfj/vits-coqui-ro-cv
|
106 |
'espeakng': 'ro',
|
107 |
'toucan': 'Romanian (ron)',
|
108 |
+
'piper': [['Romanian', 'csukuangfj/vits-piper-ro_RO-mihai-medium']]
|
109 |
+
},
|
110 |
+
'run':{
|
111 |
+
'mms': 'facebook/mms-tts-run',
|
112 |
+
'coqui': None,
|
113 |
+
'espeakng': None,
|
114 |
+
'toucan': 'Rundi (run)',
|
115 |
+
'piper': None
|
116 |
},
|
117 |
'rus':{
|
118 |
'mms': 'facebook/mms-tts-rus',
|
119 |
'coqui': None,
|
120 |
'espeakng': 'ru',
|
121 |
'toucan': 'Russian (rus)',
|
122 |
+
'piper': [['Russian', 'csukuangfj/vits-piper-ru_RU-irina-medium']] # Other variant(s) exist but have been left out
|
123 |
} ,
|
124 |
'spa':{
|
125 |
'mms': 'facebook/mms-tts-spa',
|
126 |
'coqui': 'tts_models/es/css10/vits', # Sampling rate: 22050
|
127 |
'espeakng': 'es-419',
|
128 |
'toucan': 'Spanish (spa)',
|
129 |
+
'piper': [['Spanish', 'csukuangfj/vits-piper-es-glados-medium']] # Other variant(s) exist but have been left out
|
130 |
},
|
131 |
'tur': {
|
132 |
'mms': 'facebook/mms-tts-tur',
|
133 |
'coqui': None, ################
|
134 |
'espeakng': 'tr',
|
135 |
'toucan': 'Turkish (tur)',
|
136 |
+
'piper': [['Turkish', 'csukuangfj/vits-piper-tr_TR-dfki-medium']] # Other variant(s) exist but have been left out
|
137 |
},
|
138 |
'ukr': {
|
139 |
'mms': 'facebook/mms-tts-ukr',
|
140 |
'coqui': None, ################
|
141 |
'espeakng': 'uk',
|
142 |
'toucan': 'Ukrainian (ukr)',
|
143 |
+
'piper': [['Ukrainian', 'csukuangfj/vits-piper-uk_UA-lada-x_low']] # Other variant(s) exist but have been left out
|
144 |
},
|
145 |
'urd': {
|
146 |
'mms': 'facebook/mms-tts-urd-script_arabic',
|
147 |
'coqui': None, ################
|
148 |
'espeakng': 'ur',
|
149 |
'toucan': 'Urdu (urd)',
|
150 |
+
'piper': None
|
151 |
},
|
152 |
}
|
153 |
|