| 1 | import gradio as gr |
| 2 | |
| 3 | |
| 4 | def speak(text, voice="default"): |
| 5 | return synthesize(text, voice=voice) |
| 6 | |
| 7 | demo = gr.Interface(speak, gr.Textbox(label="Text"), gr.Audio(label="Speech"), title="TTS - pick model") |
| 8 | |
| 9 | if __name__ == "__main__": |
| 10 | demo.launch() |