Downloads · 30 days
0
sru17/Text_to_Speech
Text_to_Speech is a text-to-speech model from sru17. Use it when you need text read aloud. It is set up for fairseq.
from gtts import gTTS from IPython.display import Audio from io import BytesIO
Downloads · 30 days
0
Access
Public
Updated Oct 20, 2023
Repo size
—
Likes
0
Public
Click a slice to open those files.
.ipynb7.2 KB · 76%
From the Hugging Face model README
from gtts import gTTS from IPython.display import Audio from io import BytesIO
text = input("Enter the text you want to convert to speech: ")
tts = gTTS(text) audio_bytes = BytesIO() tts.write_to_fp(audio_bytes)
from IPython.display import Audio
audio_path = '/content/welcome.mp3'
Audio(audio_path)