From f89ce41924cbeaa96469b87ba855094d82c2cbcf Mon Sep 17 00:00:00 2001 From: Enno Hermann Date: Thu, 19 Dec 2024 17:22:23 +0100 Subject: [PATCH] fix(xtts): voice_dir should remain None if not specified (#224) --- TTS/utils/synthesizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/utils/synthesizer.py b/TTS/utils/synthesizer.py index 52f5a86d..517cb7d2 100644 --- a/TTS/utils/synthesizer.py +++ b/TTS/utils/synthesizer.py @@ -91,7 +91,7 @@ class Synthesizer(nn.Module): self.d_vector_dim = 0 self.seg = self._get_segmenter("en") self.use_cuda = use_cuda - self.voice_dir = optional_to_str(voice_dir) + self.voice_dir = voice_dir if self.use_cuda: assert torch.cuda.is_available(), "CUDA is not availabe on this machine."