From dd739106515ea95015251e47d319e21617c7f263 Mon Sep 17 00:00:00 2001 From: VLT Media <39071455+vltmedia@users.noreply.github.com> Date: Sat, 23 Sep 2023 01:41:35 -0400 Subject: [PATCH] Bug: self.model_name needed to be initialized. Bug: self.model_name needed to be initialize to get around a bug that automatically crashes when the user provides the model paths but no model_name when initializing the TTS object. --- TTS/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/api.py b/TTS/api.py index 1eb0b51066..8467bcfe64 100644 --- a/TTS/api.py +++ b/TTS/api.py @@ -71,7 +71,7 @@ def __init__( self.voice_converter = None self.csapi = None self.cs_api_model = cs_api_model - self.model_name = None + self.model_name = "" if gpu: warnings.warn("`gpu` will be deprecated. Please use `tts.to(device)` instead.")