Downloads · 30 days
11
2% of all-time downloads
zirri23/vits-twi-waxalnlp
vits-twi-waxalnlp is a machine learning model from zirri23. 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 cc-by-4.0.
This is a VITS TTS model for Twi (Akan), trained from scratch on the WaxalNLP dataset.
Downloads · 30 days
11
2% of all-time downloads
All-time downloads
657
Public
Repo size
2 GB
Likes
1
Public
Click a slice to open those files.
.pth4.9 GB · 100%
From the Hugging Face model README
This is a VITS TTS model for Twi (Akan), trained from scratch on the WaxalNLP dataset.
Unlike fine-tuned models, this model learns Twi phonology naturally from the audio data, producing authentic Twi pronunciation.
from TTS.tts.configs.vits_config import VitsConfig
from TTS.tts.models.vits import Vits
from TTS.utils.audio import AudioProcessor
from TTS.tts.utils.text.tokenizer import TTSTokenizer
# Load config
config = VitsConfig()
config.load_json("config.json")
# Load model
ap = AudioProcessor.init_from_config(config)
tokenizer, config = TTSTokenizer.init_from_config(config)
model = Vits(config, ap, tokenizer)
model.load_checkpoint(config, "model.pth", eval=True)
# Generate speech
outputs = model.synthesize(
text="ɛte sɛn? me ho yɛ.",
config=config,
speaker_id=0,
)
wav = outputs["wav"]
@misc{vits-twi-2024,
title={Twi (Akan) VITS TTS Model},
author={zirri23},
year={2024},
publisher={Hugging Face},
}