mirror of https://github.com/coqui-ai/TTS.git
Make style
This commit is contained in:
parent
562a9509f2
commit
9533f8656c
|
@ -392,7 +392,7 @@ If you don't specify any models, then it uses LJSpeech based English model.
|
|||
if args.encoder_path is not None:
|
||||
encoder_path = args.encoder_path
|
||||
encoder_config_path = args.encoder_config_path
|
||||
|
||||
|
||||
device = args.device
|
||||
if args.use_cuda:
|
||||
device = "cuda"
|
||||
|
|
|
@ -8,7 +8,9 @@ def init():
|
|||
import jpype
|
||||
import jpype.imports
|
||||
except ModuleNotFoundError:
|
||||
raise ModuleNotFoundError("Belarusian phonemizer requires to install module 'jpype1' manually. Try `pip install jpype1`.")
|
||||
raise ModuleNotFoundError(
|
||||
"Belarusian phonemizer requires to install module 'jpype1' manually. Try `pip install jpype1`."
|
||||
)
|
||||
|
||||
try:
|
||||
jar_path = os.environ["BEL_FANETYKA_JAR"]
|
||||
|
@ -31,4 +33,5 @@ def belarusian_text_to_phonemes(text: str) -> str:
|
|||
init()
|
||||
|
||||
from org.alex73.fanetyka.impl import FanetykaText
|
||||
|
||||
return str(FanetykaText(finder, text).ipa)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from TTS.tts.utils.text.phonemizers.bangla_phonemizer import BN_Phonemizer
|
||||
from TTS.tts.utils.text.phonemizers.belarusian_phonemizer import BEL_Phonemizer
|
||||
from TTS.tts.utils.text.phonemizers.base import BasePhonemizer
|
||||
from TTS.tts.utils.text.phonemizers.belarusian_phonemizer import BEL_Phonemizer
|
||||
from TTS.tts.utils.text.phonemizers.espeak_wrapper import ESpeak
|
||||
from TTS.tts.utils.text.phonemizers.gruut_wrapper import Gruut
|
||||
from TTS.tts.utils.text.phonemizers.ko_kr_phonemizer import KO_KR_Phonemizer
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from typing import Dict
|
||||
|
||||
from TTS.tts.utils.text.phonemizers.base import BasePhonemizer
|
||||
from TTS.tts.utils.text.belarusian.phonemizer import belarusian_text_to_phonemes
|
||||
from TTS.tts.utils.text.phonemizers.base import BasePhonemizer
|
||||
|
||||
_DEF_BE_PUNCS = ",!." # TODO
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ config = GlowTTSConfig(
|
|||
output_path=output_path,
|
||||
add_blank=True,
|
||||
datasets=[dataset_config],
|
||||
# characters=characters,
|
||||
# characters=characters,
|
||||
enable_eos_bos_chars=True,
|
||||
mixed_precision=False,
|
||||
save_step=10000,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import os
|
||||
import warnings
|
||||
import unittest
|
||||
import warnings
|
||||
|
||||
from TTS.tts.utils.text.belarusian.phonemizer import belarusian_text_to_phonemes
|
||||
|
||||
|
@ -17,7 +17,8 @@ class TestText(unittest.TestCase):
|
|||
except KeyError:
|
||||
warnings.warn(
|
||||
"You need to define 'BEL_FANETYKA_JAR' environment variable as path to the fanetyka.jar file to test Belarusian phonemizer",
|
||||
Warning)
|
||||
Warning,
|
||||
)
|
||||
return
|
||||
|
||||
for line in _TEST_CASES.strip().split("\n"):
|
||||
|
|
Loading…
Reference in New Issue