Model reference · open weights

speecht5_tts-wolof

Available as managed deployment Audio bilalfaye · community Text→speech 1 variants 506 dl/mo

speecht5_tts-wolof is an open-weight audio or speech model from bilalfaye. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released bybilalfaye
TypeAudio & music
TaskText→speech
Parameters (lead)144M
Based onbilalfaye/speecht5_tts-wolof
Released2025-01-30
Popularity506 downloads / month
LicenceOpen weights

About

What speecht5_tts-wolof is

This model is a fine-tuned version of speecht5_tts-wolof that enhances Text-to-Speech (TTS) synthesis for both Wolof and French. It is based on Microsoft's SpeechT5 and incorporates a custom tokenizer and additional fine-tuning to improve performance across these two languages.

Read the full model card

Model Description

This model builds upon the SpeechT5 architecture, which unifies speech recognition and synthesis. The fine-tuning process introduced modifications to the original Wolof model, enabling it to generate natural speech in both Wolof and French. The model maintains the same general structure but learns a more robust alignment between textual inputs and speech synthesis, improving pronunciation and fluency in both languages.


Installation Instructions for Users

To install the necessary dependencies, run the following command:

pip install transformers datasets torch

Model Loading and Speech Generation Code

import torch
from transformers import SpeechT5ForTextToSpeech, SpeechT5Processor, SpeechT5HifiGan
from datasets import load_dataset
from IPython.display import Audio, display

def load_speech_model(checkpoint="bilalfaye/speecht5_tts-wolof-v0.2", vocoder_checkpoint="microsoft/speecht5_hifigan"):
    """ Load the SpeechT5 model, processor, and vocoder for text-to-speech. """

    device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

    processor = SpeechT5Processor.from_pretrained(checkpoint)
    model = SpeechT5ForTextToSpeech.from_pretrained(checkpoint).to(device)
    vocoder = SpeechT5HifiGan.from_pretrained(vocoder_checkpoint).to(device)

    return processor, model, vocoder, device

# Load the model
processor, model, vocoder, device = load_speech_model()

# Load speaker embeddings (pretrained from CMU Arctic dataset)
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")
speaker_embedding = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0)

def generate_speech_from_text(text, speaker_embedding=speaker_embedding, processor=processor, model=model, vocoder=vocoder):
    """ Generates speech from input text using SpeechT5 and HiFi-GAN vocoder. """

    inputs = processor(text=text, return_tensors="pt", padding=True, truncation=True, max_length=model.config.max_text_positions)
    inputs = {key: value.to(model.device) for key, value in inputs.items()}

    speech = model.generate(
        inputs["input_ids"],
        speaker_embeddings=speaker_embedding.to(model.device),
        vocoder=vocoder,
        num_beams=7,
        temperature=0.6,
        no_repeat_ngram_size=3,
        repetition_penalty=1.5,
    )

    speech = speech.detach().cpu().numpy()
    display(Audio(speech, rate=16000))

# Example usage French
text = "Bonjour, bienvenue dans le modèle de synthèse vocale Wolof et Français."
generate_speech_from_text(text)

# Example usage Wolof
text = "ñu ne ñoom ñooy nattukaay satélite yi"
generate_speech_from_text(text)

Intended Uses & Limitations

Intended Uses

  • Multilingual TTS: Converts Wolof and French text into natural-sounding speech.
  • Voice Assistants & Speech Interfaces: Can be used for audio-based applications supporting both languages.
  • Linguistic Research: Facilitates speech synthesis research in low-resource languages.

Limitations

  • Data Dependency: The quality of synthesized speech depends on the dataset used for fine-tuning.
  • Pronunciation Variations: Some complex or uncommon words may be mispronounced.
  • Limited Speaker Variety: The model was trained on a single speaker embedding and may not generalize well to different voice profiles.

Training and Evaluation Data

The model was fine-tuned on an extended dataset containing text in both Wolof and French, ensuring improved synthesis capabilities across these two languages.


Training Procedure

Training Hyperparameters

HyperparameterValue
Learning Rate1e-05
Training Batch Size8
Evaluation Batch Size2
Gradient Accumulation Steps8
Total Train Batch Size64
OptimizerAdam (β1=0.9, β2=0.999, ϵ=1e-08)
Learning Rate SchedulerLinear
Warmup Steps500
Training Steps25,500
Mixed Precision TrainingAMP (Automatic Mixed Precision)

Training Results

Training LossEpochStepValidation Loss
0.53720.99959540.4398
0.46462.019090.4214
0.45052.999528630.4163
0.44434.038180.4109
0.44034.999547720.4080
0.43686.057270.4057
0.43436.999566810.4034
0.43158.076360.4018
0.43118.999585900.4015
0.427310.095450.4017
0.428210.9995104990.3990
0.424912.0114540.3986
0.424212.9995124080.3973
0.422514.0133630.3966
0.421714.9995143170.3951
0.420816.0152720.3950
0.420016.9995162260.3950
0.420218.0171810.3952
0.420018.9995181350.3943
0.418320.0190900.3962
0.417520.9995200440.3937
0.416122.0209990.3940
0.419322.9995219530.3932

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys speecht5-tts-wolof for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (speecht5-tts-wolof below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/audio/transcriptions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -F model="speecht5-tts-wolof" -F file=@audio.mp3

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms