cocktailpeanut commited on
Commit
0314f13
Β·
1 Parent(s): 706537e
Files changed (1) hide show
  1. diffrhythm/g2p/g2p/cleaners.py +3 -3
diffrhythm/g2p/g2p/cleaners.py CHANGED
@@ -4,7 +4,7 @@
4
  # LICENSE file in the root directory of this source tree.
5
 
6
  import re
7
- from diffrhythm.g2p.g2p.japanese import japanese_to_ipa
8
  from diffrhythm.g2p.g2p.mandarin import chinese_to_ipa
9
  from diffrhythm.g2p.g2p.english import english_to_ipa
10
  from diffrhythm.g2p.g2p.french import french_to_ipa
@@ -16,8 +16,8 @@ def cjekfd_cleaners(text, sentence, language, text_tokenizers):
16
 
17
  if language == "zh":
18
  return chinese_to_ipa(text, sentence, text_tokenizers["zh"])
19
- elif language == "ja":
20
- return japanese_to_ipa(text, text_tokenizers["ja"])
21
  elif language == "en":
22
  return english_to_ipa(text, text_tokenizers["en"])
23
  elif language == "fr":
 
4
  # LICENSE file in the root directory of this source tree.
5
 
6
  import re
7
+ #from diffrhythm.g2p.g2p.japanese import japanese_to_ipa
8
  from diffrhythm.g2p.g2p.mandarin import chinese_to_ipa
9
  from diffrhythm.g2p.g2p.english import english_to_ipa
10
  from diffrhythm.g2p.g2p.french import french_to_ipa
 
16
 
17
  if language == "zh":
18
  return chinese_to_ipa(text, sentence, text_tokenizers["zh"])
19
+ # elif language == "ja":
20
+ # return japanese_to_ipa(text, text_tokenizers["ja"])
21
  elif language == "en":
22
  return english_to_ipa(text, text_tokenizers["en"])
23
  elif language == "fr":