kdrkdrkdr commited on
Commit
d9e50d0
β€’
1 Parent(s): 61c7e02

edit files

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. 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):