How to use from the
Use from the
Fairseq library
from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub

models, cfg, task = load_model_ensemble_and_task_from_hf_hub(
    "sru17/Text_to_Speech"
)

from gtts import gTTS from IPython.display import Audio from io import BytesIO

Get user input

text = input("Enter the text you want to convert to speech: ")

Create a gTTS object and get audio as bytes

tts = gTTS(text) audio_bytes = BytesIO() tts.write_to_fp(audio_bytes)

from IPython.display import Audio

Replace 'your_audio_file.mp3' with the name of your audio file

audio_path = '/content/welcome.mp3'

Play the audio

Audio(audio_path)

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train sru17/Text_to_Speech