Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small QoL improvements #3720

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions TTS/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ def languages(self):
def get_models_file_path():
return Path(__file__).parent / ".models.json"

def list_models(self):
return ModelManager(models_file=TTS.get_models_file_path(), progress_bar=False, verbose=False)
@staticmethod
def list_models():
return ModelManager(models_file=TTS.get_models_file_path(), progress_bar=False, verbose=False).list_models()

def download_model_by_name(self, model_name: str):
model_path, config_path, model_item = self.manager.download_model(model_name)
Expand Down
5 changes: 4 additions & 1 deletion TTS/tts/utils/text/phonemizers/espeak_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ class ESpeak(BasePhonemizer):

def __init__(self, language: str, backend=None, punctuations=Punctuation.default_puncs(), keep_puncs=True):
if self._ESPEAK_LIB is None:
raise Exception(" [!] No espeak backend found. Install espeak-ng or espeak to your system.")
raise Exception(
" [!] No espeak backend found. Install espeak-ng or espeak to your system. "
"See https://github.com/espeak-ng/espeak-ng/blob/master/docs/guide.md#installation"
)
self.backend = self._ESPEAK_LIB

# band-aid for backwards compatibility
Expand Down
Loading