-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[Bug] AttributeError: 'TTS' object has no attribute 'is_multi_lingual' #3602
Comments
你也在弄转语音吗,我们可以加一波 |
ok,但我只是用下这个来做毕设 |
qq |
It's fixed in our fork: https://github.com/idiap/coqui-ai-TTS |
Go to inside init function, change |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You might also look our discussion channels. |
Hi @eginhard, it seems this repo does not have that fix yet. |
@hussain0613 Yes, because this repo is not maintained anymore. You should use the fork, you can install it with |
|
Describe the bug
因为huggingface.co连接有问题所以下载的本地模型,最后出现了奇怪的错误
The local model downloaded because there is a problem with the connection in huggingface.co, and finally there is a strange error.
To Reproduce
import torch
from TTS.api import TTS
Get device
device = "cuda" if torch.cuda.is_available() else "cpu"
Init TTS with local model path
model_path = "C:/Code/Coqui/TTS/model/tts_models--zh-CN--baker--tacotron2-DDC-GST" # Update this path
tts = TTS(model_path=model_path + "/model_file.pth", config_path=model_path + "/config.json").to(device)
Run TTS
❗ Since this model is multi-lingual voice cloning model, we must set the target speaker_wav and language
Text to speech list of amplitude values as output
wav = tts.tts(text="你好世界!", speaker_wav="my/cloning/audio.wav", language="zh-cn")
Text to speech to a file
tts.tts_to_file(text="你好世界!", speaker_wav="my/cloning/audio.wav", language="zh-cn", file_path="output.wav")
model/tts_models--zh-CN--baker--tacotron2-DDC-GST中只有config.json model_file.pth scale_stats.npy
Expected behavior
No response
Logs
Environment
Win10
Additional context
No response
The text was updated successfully, but these errors were encountered: