Spaces:
Running
Running
language_list = ['swh', 'ara','mya', 'eng', 'fra', 'kmr', 'lin','mos','fas', 'por','ron','rus','spa', 'tur', 'ukr', 'urd' | |
#'ara','fas','ukr','tur', 'mya', 'rus', | |
#'kmr-script_latin', 'urd-script_arabic', 'urd-script_devanagari', 'urd-script_latin', | |
] | |
##################################### | |
placeholders = { | |
'swh': "Mfuko wa Kimataifa wa Watoto", | |
'ara': "منظمة الأمم المتحدة للطفولة", | |
'eng': "the United Nations International Children's Emergency Fund", | |
'fra': "Le Fonds des Nations unies pour l'enfance", | |
'fas': "صندوق کودکان ملل متحد", | |
'kmr': "سندووقی مناڵانی نەتەوە یەکگرتووەکان", | |
'lin': 'Your phrase here', | |
'mos': 'Your phrase here', | |
'mya': "ကုလသမဂ္ဂ အပြည်ပြည်ဆိုင်ရာ ကလေးများရန်ပုံငွေအဖွဲ့", | |
'por': "O Fundo das Nações Unidas para a Infância", | |
'ron': "Fondul Internațional pentru Urgențe ale Copiilor al Națiunilor Unite", | |
'rus': 'Международного фонда помощи детям', | |
'spa': "El Fondo de las Naciones Unidas para la Infancia", | |
'tur': "Birleşmiş Milletler Çocuklara Yardım Fonu", | |
'ukr': "Дитя́чий фонд Організа́ція Об'є́днаних На́цій", | |
'urd': "اقوام متحدہ کا فنڈ برائے اطفال" | |
} | |
##################################### | |
models = { | |
'swh': { | |
'mms': 'facebook/mms-tts-swh', | |
'coqui': None, | |
'espeakng': 'sw', | |
'toucan': 'Congo Swahili (swc)', | |
}, | |
'ara': { | |
'mms': 'facebook/mms-tts-ara', | |
'coqui': None, ################ | |
'espeakng': 'ar', | |
'toucan': 'Standard Arabic (arb)', | |
}, | |
'mya': { | |
'mms': 'facebook/mms-tts-mya', | |
'coqui': None, ################ | |
'espeakng': 'my', | |
'toucan': 'Burmese (mya)', | |
}, | |
'eng': { | |
'mms': 'facebook/mms-tts-eng', | |
'coqui': None, | |
'espeakng': 'en', | |
'toucan': 'English (eng)', | |
}, | |
'fas':{ | |
'mms': 'facebook/mms-tts-fas', | |
'coqui': None, #'tts_models/fa/custom/glow-tts', | |
'espeakng': 'fa', | |
'toucan': 'Persian (pes)', #'Dari (prs)' | |
} , | |
'fra':{ | |
'mms': 'facebook/mms-tts-fra', | |
'coqui': 'tts_models/fr/css10/vits', # Sampling rate: 22050 | |
'espeakng': 'fr', | |
'toucan': 'French (fra)', | |
}, | |
'kmr': { | |
'mms': 'facebook/mms-tts-kmr-script_arabic', | |
'coqui': None, ################ | |
'espeakng': 'ku', | |
'toucan': 'Kurdish (ckb)', | |
}, | |
'lin':{ | |
'mms': None, | |
'coqui': 'tts_models/lin/openbible/vits', # Sampling rate: 22050 | |
'espeakng': None, | |
'toucan': 'Lingala (lin)', | |
}, | |
'mos':{ | |
'mms': 'facebook/mms-tts-mos', | |
'coqui': None, | |
'espeakng': None, | |
'toucan': 'Mossi (mos)', | |
} , | |
# 'Southern Pashto (pbt)', 'Northern Pashto (pbu)' | |
'por':{ | |
'mms': 'facebook/mms-tts-por', | |
'coqui': 'tts_models/pt/cv/vits', # Sampling rate: 22050 | |
'espeakng': 'pt-br', | |
'toucan': 'Brazilian Portuguese (pt-br)', | |
}, | |
'ron':{ | |
'mms': 'facebook/mms-tts-ron', | |
'coqui': 'tts_models/ro/cv/vits', # Sampling rate: 22050 | |
'espeakng': 'ro', | |
'toucan': 'Romanian (ron)', | |
}, | |
'rus':{ | |
'mms': 'facebook/mms-tts-rus', | |
'coqui': None, | |
'espeakng': 'ru', | |
'toucan': 'Russian (rus)', | |
} , | |
'spa':{ | |
'mms': 'facebook/mms-tts-spa', | |
'coqui': 'tts_models/es/css10/vits', # Sampling rate: 22050 | |
'espeakng': 'es-419', | |
'toucan': 'Spanish (spa)', | |
}, | |
'tur': { | |
'mms': 'facebook/mms-tts-tur', | |
'coqui': None, ################ | |
'espeakng': 'tr', | |
'toucan': 'Turkish (tur)', | |
}, | |
'ukr': { | |
'mms': 'facebook/mms-tts-ukr', | |
'coqui': None, ################ | |
'espeakng': 'uk', | |
'toucan': 'Ukrainian (ukr)', | |
}, | |
'urd': { | |
'mms': 'facebook/mms-tts-urd-script_arabic', | |
'coqui': None, ################ | |
'espeakng': 'ur', | |
'toucan': 'Urdu (urd)', | |
}, | |
} | |