tts-example / app.py
rbarman's picture
Create app.py
6074037
raw
history blame contribute delete
No virus
591 Bytes
import gradio as gr
#################################################################
#1: Text to Speech
#import gradio as gr
title = "Text to Speech Translation"
tts_examples = [
"I love learning machine learning",
"How do you do?",
]
tts_demo = gr.Interface.load(
"huggingface/facebook/fastspeech2-en-ljspeech",
title = title,
examples=tts_examples,
description="Give me something to say!",
)
#################################################################
demo = gr.TabbedInterface([tts_demo], ["Text to speech"])
if __name__ == "__main__":
demo.launch()