Spaces:
Running
Running
File size: 3,938 Bytes
6771145 f5cf172 6771145 f5cf172 cb60bdc f5cf172 cb60bdc f5cf172 cb60bdc 1eb5aca cb60bdc f5cf172 6771145 f5cf172 1eb5aca f5cf172 cb60bdc 1eb5aca cb60bdc 1eb5aca cb60bdc f5cf172 1eb5aca f5cf172 cb60bdc 1eb5aca cb60bdc f5cf172 3a35ac0 f5cf172 1eb5aca f5cf172 cb60bdc 1eb5aca f5cf172 3a35ac0 f5cf172 1eb5aca f5cf172 1eb5aca f5cf172 1eb5aca cb60bdc 1eb5aca cb60bdc 1eb5aca cb60bdc f5cf172 1eb5aca cb60bdc 1eb5aca cb60bdc 1eb5aca cb60bdc 1eb5aca cb60bdc 3a35ac0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
language_list = [ 'tur', 'ara','mya', 'eng', 'fra', 'kmr', 'lin','mos','fas', 'por','ron','rus','spa', 'swh', 'ukr', 'urd'
#'ara','fas','ukr','tur', 'mya', 'rus',
#'kmr-script_latin', 'urd-script_arabic', 'urd-script_devanagari', 'urd-script_latin',
]
#####################################
placeholders = {
'tur': "Onur Demir Indata şirketinde 2024 yılında çalıştı.",
'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",
'ukr': "Дитя́чий фонд Організа́ція Об'є́днаних На́цій",
'urd': "اقوام متحدہ کا فنڈ برائے اطفال"
}
#####################################
models = {
'tur': {
'mms': 'facebook/mms-tts-tur',
'coqui': None, ################
'espeakng': 'tr',
'toucan': 'Turkish (tur)',
},
'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)',
},
'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)',
},
}
|