Downloads · 30 days
19
9% of all-time downloads
nellaw/xtts-french-voice-cloning-optimized
xtts-french-voice-cloning-optimized is a text-to-speech model from nellaw. Use it when you need text read aloud. It is set up for TTS. The card lists the license as apache-2.0.
Modèle XTTS v2 optimisé pour le clonage de voix en français.
Downloads · 30 days
19
9% of all-time downloads
All-time downloads
207
Public
Repo size
5.8 GB
Likes
3
Public
Click a slice to open those files.
.pth5.8 GB · 100%
From the Hugging Face model README
Modèle XTTS v2 optimisé pour le clonage de voix en français.
| Métrique | Valeur |
|---|---|
| Epochs | 100 |
| Batch Size | 4 |
| Learning Rate | 2e-6 |
| Loss Initiale | 2.221 |
| Loss Finale | 0.0166 |
| Amélioration | 99.25% (133x réduction) |
| Dataset | 16 fichiers audio (~42 minutes) |
Ce modèle est 6x plus performant que le baseline (50 epochs, loss 0.102).
| Modèle | Loss Finale | Amélioration |
|---|---|---|
| Baseline | 0.102 | - |
| Optimisé | 0.0166 | 83.7% meilleur |
import torch
from TTS.tts.configs.xtts_config import XttsConfig
from TTS.tts.models.xtts import Xtts
# Charger la configuration
config = XttsConfig()
config.load_json("config.json")
# Charger le modèle
model = Xtts.init_from_config(config)
model.load_checkpoint(
config,
checkpoint_path="best_model.pth",
vocab_path="vocab.json",
eval=True,
use_deepspeed=False
)
# Générer de l'audio
if torch.cuda.is_available():
model.cuda()
outputs = model.synthesize(
"Votre texte ici",
config,
speaker_wav="path/to/reference_audio.wav",
language="fr",
gpt_cond_len=6,
temperature=0.75,
)
best_model.pth (5.3 GB) - Poids du modèle optimiséconfig.json - Configuration du modèlevocab.json - Vocabulaire du tokenizerdvae.pth - DVAE checkpointmel_stats.pth - Statistiques de normalisationApache 2.0