File size: 1,361 Bytes
960cd20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from contants import ModelType

lang_dict = {
    "english_cleaners": ["en"],
    "english_cleaners2": ["en"],
    "japanese_cleaners": ["ja"],
    "japanese_cleaners2": ["ja"],
    "korean_cleaners": ["ko"],
    "chinese_cleaners": ["zh"],
    "zh_ja_mixture_cleaners": ["zh", "ja"],
    "sanskrit_cleaners": ["sa"],
    "cjks_cleaners": ["zh", "ja", "ko", "sa"],
    "cjke_cleaners": ["zh", "ja", "ko", "en"],
    "cjke_cleaners2": ["zh", "ja", "ko", "en"],
    "cje_cleaners": ["zh", "ja", "en"],
    "cje_cleaners2": ["zh", "ja", "en"],
    "thai_cleaners": ["th"],
    "shanghainese_cleaners": ["sh"],
    "chinese_dialect_cleaners": ["zh", "ja", "sh", "gd", "en", "SZ", "WX", "CZ", "HZ", "SX", "NB", "JJ", "YX", "JD",
                                 "ZR", "PH", "TX", "JS", "HN", "LP", "XS", "FY", "RA", "CX", "SM", "TT", "WZ", "SC",
                                 "YB"],
    "bert_chinese_cleaners": ["zh"],
    ModelType.BERT_VITS2.value: ["zh", "ja"],
    f"{ModelType.BERT_VITS2.value}_v1.0": ["zh"],
    f"{ModelType.BERT_VITS2.value}_v1.0.0": ["zh"],
    f"{ModelType.BERT_VITS2.value}_v1.0.1": ["zh"],
    f"{ModelType.BERT_VITS2.value}_v1.1": ["zh", "ja"],
    f"{ModelType.BERT_VITS2.value}_v1.1.0": ["zh", "ja"],
    f"{ModelType.BERT_VITS2.value}_v1.1.0-transition": ["zh", "ja"],
    f"{ModelType.BERT_VITS2.value}_v1.1.1": ["zh", "ja"],
}