Spaces:
Runtime error
Runtime error
edit files
Browse files- app.py +1 -1
- text/k2j.py +2 -2
app.py
CHANGED
@@ -68,7 +68,7 @@ if __name__ == '__main__':
|
|
68 |
models_tts = []
|
69 |
name = 'AronaTTS'
|
70 |
lang = 'μΌλ³Έμ΄ / νκ΅μ΄ (Japanese / Korean)'
|
71 |
-
example = '[JA]ε
ηγδ»ζ₯γ―倩ζ°γζ¬ε½γ«γγγ§γγγ[JA][KO]μ μλ, μλ
νμΈμ.[KO]'
|
72 |
config_path = f"pretrained_model/arona_ms_istft_vits.json"
|
73 |
model_path = f"pretrained_model/arona_ms_istft_vits.pth"
|
74 |
cover_path = f"pretrained_model/cover.gif"
|
|
|
68 |
models_tts = []
|
69 |
name = 'AronaTTS'
|
70 |
lang = 'μΌλ³Έμ΄ / νκ΅μ΄ (Japanese / Korean)'
|
71 |
+
example = '[JA]ε
ηγδ»ζ₯γ―倩ζ°γζ¬ε½γ«γγγ§γγγ[JA][KO]μ μλ, μλ
νμΈμ. my name is arona[KO]'
|
72 |
config_path = f"pretrained_model/arona_ms_istft_vits.json"
|
73 |
model_path = f"pretrained_model/arona_ms_istft_vits.pth"
|
74 |
cover_path = f"pretrained_model/cover.gif"
|
text/k2j.py
CHANGED
@@ -37,17 +37,17 @@ repl_lst = {
|
|
37 |
|
38 |
|
39 |
def get_word_list(text):
|
|
|
40 |
text = latin_to_hangul(text)
|
41 |
text = number_to_hangul(text)
|
42 |
-
text = g2pk(text)
|
43 |
text = j2hcj(h2j(text))
|
44 |
text = re.sub(r'([\u3131-\u3163])$', r'\1.', text)
|
45 |
return list(join_jamos(text.replace(' ', ' ')[:-1]))
|
46 |
|
47 |
|
48 |
def korean2katakana(text):
|
49 |
-
text = '/' + text.replace('/', ' ').replace('|', ' ').replace('^', ' ').replace(' ', ' ').replace(' ', '^')
|
50 |
word_lst = get_word_list(text)
|
|
|
51 |
new_lst = []
|
52 |
|
53 |
for i, s in enumerate(word_lst):
|
|
|
37 |
|
38 |
|
39 |
def get_word_list(text):
|
40 |
+
text = g2pk(text)
|
41 |
text = latin_to_hangul(text)
|
42 |
text = number_to_hangul(text)
|
|
|
43 |
text = j2hcj(h2j(text))
|
44 |
text = re.sub(r'([\u3131-\u3163])$', r'\1.', text)
|
45 |
return list(join_jamos(text.replace(' ', ' ')[:-1]))
|
46 |
|
47 |
|
48 |
def korean2katakana(text):
|
|
|
49 |
word_lst = get_word_list(text)
|
50 |
+
text = '/' + text.replace('/', ' ').replace('|', ' ').replace('^', ' ').replace(' ', ' ').replace(' ', '^')
|
51 |
new_lst = []
|
52 |
|
53 |
for i, s in enumerate(word_lst):
|