Move import at the head of the file.

This commit is contained in:
Katsuya Iida 2021-05-28 00:22:57 +09:00
parent f921a05bdb
commit c4987e9d4e
1 changed files with 1 additions and 1 deletions

View File

@ -6,6 +6,7 @@ from packaging import version
from TTS.tts.utils.text import cleaners
from TTS.tts.utils.text.chinese_mandarin.phonemizer import chinese_text_to_phonemes
from TTS.tts.utils.japanese import japanese_text2phone
from TTS.tts.utils.text.symbols import _bos, _eos, _punctuations, make_symbols, phonemes, symbols
# pylint: disable=unnecessary-comprehension
@ -41,7 +42,6 @@ def text2phone(text, language):
return ph
if language == "ja-jp":
from TTS.tts.utils.japanese import japanese_text2phone
ph = japanese_text2phone(text)
return ph