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

fix(api): handle missing attribute in is_multi_lingual #4

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

eginhard
Copy link
Owner

@eginhard eginhard commented Mar 6, 2024

Copied from coqui-ai#3450:

Fixes coqui-ai#3449, i.e. the following works again:

from TTS.api import TTS

cloud = TTS(model_name="tts_models/de/thorsten/vits")  # just to download the model
_ = cloud.tts("test")  # this works fine

from TTS.utils.generic_utils import get_user_data_dir
model = os.path.join(get_user_data_dir("tts"), "tts_models--de--thorsten--vits", "model_file.pth")
config = os.path.join(get_user_data_dir("tts"), "tts_models--de--thorsten--vits", "config.json")
local = TTS(model_path=model, config_path=config)
_ = local.tts("test")  # this failed previously

Also fixes coqui-ai#3602

@eginhard eginhard merged commit 7f83dea into dev Mar 7, 2024
33 of 34 checks passed
@eginhard eginhard deleted the fix-is-multilingual branch March 7, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant