Hugging Face - Text to Speech

This is a simple example of how to use the Hugging Face Hub for text to speech.

YouTube Video Tutorial for this GitHub Repository

Hugging Face - Text to Speech

The basics

  1. Must have Python3.
  2. Get repository
git clone https://github.com/msuliot/huggingface_text_to_speech.git 
  1. use pip3 to install any dependencies.
pip3 install -r requirements.txt

Instructions:

This will download the model, tokenizer and dataset to your local machine and run on your local machine.

  • microsoft/speecht5_tts
  • microsoft/speecht5_hifigan
  • Matthijs/cmu-arctic-xvectors

Run the local script

python3 local.py

Hugging Face Hub API

https://huggingface.co/microsoft/speecht5_tts