Downloads · 30 days
20
14% of all-time downloads
Aniket2003333333/xtts-v2-child-voice-finetuned
xtts-v2-child-voice-finetuned is a text-to-speech model from Aniket2003333333. Use it when you need text read aloud. The card lists the license as mit.
This is a fine-tuned version of coqui/XTTS-v2 trained on the Samromur Children dataset to produce a child-like voice in English.
Downloads · 30 days
20
14% of all-time downloads
All-time downloads
138
Public
Repo size
2.3 GB
Likes
1
Public
Click a slice to open those files.
.pth2.3 GB · 100%
From the Hugging Face model README
This is a fine-tuned version of coqui/XTTS-v2 trained on the Samromur Children dataset to produce a child-like voice in English.
pip install TTS==0.22.0 transformers==4.37.2 torch==2.1.0
import torch, soundfile as sf
from TTS.tts.configs.xtts_config import XttsConfig
from TTS.tts.models.xtts import Xtts
from huggingface_hub import snapshot_download
# Download model
model_dir = snapshot_download("your-username/xtts-v2-child-voice-finetuned")
# Load
config = XttsConfig()
config.load_json(f"{model_dir}/config.json")
model = Xtts.init_from_config(config)
model.load_checkpoint(config, checkpoint_dir=model_dir, eval=True)
model.cuda()
# Generate child voice speech
out = model.synthesize(
"Hello! My name is Lily. I love playing with my toys!",
config,
speaker_wav=f"{model_dir}/reference_child.wav",
language="en"
)
sf.write("output.wav", out["wav"], 24000)