Add support for Arabic, Kurdish, Burmese and Urdu.
Browse files- src/lookups.py +60 -26
src/lookups.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
language_list = ['swh', '
|
| 2 |
#'ara','fas','ukr','tur', 'mya', 'rus',
|
| 3 |
#'kmr-script_latin', 'urd-script_arabic', 'urd-script_devanagari', 'urd-script_latin',
|
| 4 |
]
|
|
@@ -6,15 +6,19 @@ language_list = ['swh', 'eng', 'spa','fra','por','ron', 'fas', 'lin', 'mos','ru
|
|
| 6 |
#####################################
|
| 7 |
placeholders = {
|
| 8 |
'swh': "Mfuko wa Kimataifa wa Watoto",
|
|
|
|
| 9 |
'eng': "the United Nations International Children's Emergency Fund",
|
| 10 |
-
'spa': "El Fondo de las Naciones Unidas para la Infancia",
|
| 11 |
'fra': "Le Fonds des Nations unies pour l'enfance",
|
| 12 |
-
'
|
| 13 |
-
'
|
| 14 |
-
'fas': "صندوق کودکان ملل متحد",
|
| 15 |
'lin': 'Your phrase here',
|
| 16 |
'mos': 'Your phrase here',
|
| 17 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
#####################################
|
|
@@ -24,36 +28,36 @@ models = {
|
|
| 24 |
'coqui': None,
|
| 25 |
'espeakng': 'sw',
|
| 26 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
'eng': {
|
| 28 |
'mms': 'facebook/mms-tts-eng',
|
| 29 |
'coqui': None,
|
| 30 |
'espeakng': 'en',
|
| 31 |
},
|
| 32 |
-
'
|
| 33 |
-
'mms': 'facebook/mms-tts-
|
| 34 |
-
'coqui': 'tts_models/
|
| 35 |
-
'espeakng': '
|
| 36 |
-
},
|
| 37 |
'fra':{
|
| 38 |
'mms': 'facebook/mms-tts-fra',
|
| 39 |
'coqui': 'tts_models/fr/css10/vits', # Sampling rate: 22050
|
| 40 |
'espeakng': 'fr',
|
| 41 |
},
|
| 42 |
-
'
|
| 43 |
-
'mms': 'facebook/mms-tts-
|
| 44 |
-
'coqui':
|
| 45 |
-
'espeakng': '
|
| 46 |
},
|
| 47 |
-
'ron':{
|
| 48 |
-
'mms': 'facebook/mms-tts-ron',
|
| 49 |
-
'coqui': 'tts_models/ro/cv/vits', # Sampling rate: 22050
|
| 50 |
-
'espeakng': 'ro',
|
| 51 |
-
},
|
| 52 |
-
'fas':{
|
| 53 |
-
'mms': 'facebook/mms-tts-fas',
|
| 54 |
-
'coqui': None, #'tts_models/fa/custom/glow-tts',
|
| 55 |
-
'espeakng': 'fa',
|
| 56 |
-
} ,
|
| 57 |
'lin':{
|
| 58 |
'mms': None,
|
| 59 |
'coqui': 'tts_models/lin/openbible/vits', # Sampling rate: 22050
|
|
@@ -64,10 +68,40 @@ models = {
|
|
| 64 |
'coqui': None,
|
| 65 |
'espeakng': None,
|
| 66 |
} ,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
'rus':{
|
| 68 |
'mms': 'facebook/mms-tts-rus',
|
| 69 |
'coqui': None,
|
| 70 |
'espeakng': 'ru',
|
| 71 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
}
|
| 73 |
|
|
|
|
| 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 |
]
|
|
|
|
| 6 |
#####################################
|
| 7 |
placeholders = {
|
| 8 |
'swh': "Mfuko wa Kimataifa wa Watoto",
|
| 9 |
+
'ara': "منظمة الأمم المتحدة للطفولة",
|
| 10 |
'eng': "the United Nations International Children's Emergency Fund",
|
|
|
|
| 11 |
'fra': "Le Fonds des Nations unies pour l'enfance",
|
| 12 |
+
'fas': "صندوق کودکان ملل متحد",
|
| 13 |
+
'kmr': "سندووقی مناڵانی نەتەوە یەکگرتووەکان",
|
|
|
|
| 14 |
'lin': 'Your phrase here',
|
| 15 |
'mos': 'Your phrase here',
|
| 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 |
+
'urd': "اقوام متحدہ کا فنڈ برائے اطفال"
|
| 22 |
}
|
| 23 |
|
| 24 |
#####################################
|
|
|
|
| 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
|
|
|
|
| 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 |
|