Downloads · 30 days
42
20% of all-time downloads
Anexdeus/Roxy_Migurdia_coqui_XTTS
Roxy_Migurdia_coqui_XTTS is a machine learning model from Anexdeus. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as other.
Init from XttsConfig and load checkpoint:
Downloads · 30 days
42
20% of all-time downloads
All-time downloads
209
Public
Repo size
11.2 GB
Likes
3
Public
Click a slice to open those files.
.pth11.2 GB · 100%
From the Hugging Face model README
Init from XttsConfig and load checkpoint:
import torchaudio
from TTS.tts.configs.xtts_config import XttsConfig
from TTS.tts.models.xtts import Xtts
SPEAKER_REFERENCE = "reference.wav"
config = XttsConfig()
config.load_json("config.json")
model = Xtts.init_from_config(config)
model.load_checkpoint(config, checkpoint_path="best_model_432.pth", vocab_path="vocab.json", use_deepspeed=False)
model.cuda()
gpt_cond_latent, speaker_embedding = model.get_conditioning_latents(audio_path=[SPEAKER_REFERENCE]) # Use sample of Roxy's voice here
out = model.inference(
"It took me quite a long time to develop a voice and now that I have it I am not going to be silent.",
"en",
gpt_cond_latent,
speaker_embedding,
temperature=0.7, # Add custom parameters here
)
torchaudio.save("output.wav", torch.tensor(out["wav"]).unsqueeze(0), 24000)