Style fix

This commit is contained in:
Edresson Casanova 2022-04-21 09:03:03 -03:00
parent 17b6486ef1
commit 9252b3c5bd
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@ synthesizer = Synthesizer(
use_cuda=args.use_cuda,
)
use_multi_speaker = hasattr(synthesizer.tts_model, "num_speakers") and (synthesizer.tts_model.num_speakers > 1 or synthesizer.tts_speakers_file is not None)
use_multi_speaker = hasattr(synthesizer.tts_model, "num_speakers") and (
synthesizer.tts_model.num_speakers > 1 or synthesizer.tts_speakers_file is not None
)
print("Multispeaker?", use_multi_speaker, synthesizer.tts_model.num_speakers)
speaker_manager = getattr(synthesizer.tts_model, "speaker_manager", None)
# TODO: set this from SpeakerManager