File size: 392 Bytes
7a86b92 9d60183 382e37a 9d60183 cb292d6 9d60183 2184cfb 9d60183 382e37a f8b8c99 9d60183 2244bbb 2184cfb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
from tts import synthesize_speech
def main():
tts_interface = gr.Interface(
fn=synthesize_speech,
inputs="text",
outputs="audio",
title="Faroese TTS Demo",
description="Text-to-Speech Synthesis for Faroese"
)
demo = gr.TabbedInterface([tts_interface], ["TTS"])
demo.launch()
if __name__ == "__main__":
main()
|