Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,47 +33,34 @@ async def create_demo():
|
|
33 |
voices = await get_voices()
|
34 |
|
35 |
description = """
|
36 |
-
|
37 |
-
|
38 |
-
🎥 **Exciting News: Introducing our Text-to-Video Converter!** 🎥
|
39 |
-
|
40 |
-
Take your content creation to the next level with our cutting-edge Text-to-Video Converter!
|
41 |
-
Transform your words into stunning, professional-quality videos in just a few clicks.
|
42 |
-
|
43 |
-
✨ Features:
|
44 |
-
• Convert text to engaging videos with customizable visuals
|
45 |
-
• Choose from 40+ languages and 300+ voices
|
46 |
-
• Perfect for creating audiobooks, storytelling, and language learning materials
|
47 |
-
• Ideal for educators, content creators, and language enthusiasts
|
48 |
-
|
49 |
-
Ready to revolutionize your content? [Click here to try our Text-to-Video Converter now!](https://text2video.wingetgui.com/)
|
50 |
"""
|
51 |
|
52 |
demo = gr.Interface(
|
53 |
fn=tts_interface,
|
54 |
inputs=[
|
55 |
-
gr.Textbox(label="
|
56 |
-
gr.Dropdown(choices=[""] + list(voices.keys()), label="
|
57 |
-
gr.Slider(minimum=-50, maximum=50, value=0, label="
|
58 |
-
gr.Slider(minimum=-20, maximum=20, value=0, label="
|
59 |
],
|
60 |
outputs=[
|
61 |
-
gr.Audio(label="
|
62 |
gr.Markdown(label="Warning", visible=False)
|
63 |
],
|
64 |
-
title="Edge
|
65 |
description=description,
|
66 |
-
article="
|
67 |
analytics_enabled=False,
|
68 |
-
|
69 |
-
api_name=
|
70 |
)
|
71 |
return demo
|
72 |
|
73 |
async def main():
|
74 |
demo = await create_demo()
|
75 |
demo.queue(default_concurrency_limit=5)
|
76 |
-
demo.launch(show_api=
|
77 |
|
78 |
if __name__ == "__main__":
|
79 |
asyncio.run(main())
|
|
|
33 |
voices = await get_voices()
|
34 |
|
35 |
description = """
|
36 |
+
Wandle Text mit Microsoft Edge TTS in Sprache um. Passe die Sprechgeschwindigkeit und die Tonhöhe an: 0 ist die Standardeinstellung, positive Werte erhöhen, negative Werte verringern.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
"""
|
38 |
|
39 |
demo = gr.Interface(
|
40 |
fn=tts_interface,
|
41 |
inputs=[
|
42 |
+
gr.Textbox(label="Texteingabe", lines=5),
|
43 |
+
gr.Dropdown(choices=[""] + list(voices.keys()), label="Wähle eine Stimme aus", value=""),
|
44 |
+
gr.Slider(minimum=-50, maximum=50, value=0, label="Anpassung der Sprechgeschwindigkeit (%)", step=1),
|
45 |
+
gr.Slider(minimum=-20, maximum=20, value=0, label="Tonhöhenanpassung (Hz)", step=1)
|
46 |
],
|
47 |
outputs=[
|
48 |
+
gr.Audio(label="Audio generieren", type="filepath"),
|
49 |
gr.Markdown(label="Warning", visible=False)
|
50 |
],
|
51 |
+
title="Edge-TTS",
|
52 |
description=description,
|
53 |
+
article="Erlebe die Leistungsfähigkeit von Edge TTS für die Text-zu-Sprache-Umwandlung und entdecke unseren erweiterten Text-zu-Video-Konverter für noch mehr kreative Möglichkeiten!",
|
54 |
analytics_enabled=False,
|
55 |
+
flagging_mode="manual",
|
56 |
+
api_name="/api"
|
57 |
)
|
58 |
return demo
|
59 |
|
60 |
async def main():
|
61 |
demo = await create_demo()
|
62 |
demo.queue(default_concurrency_limit=5)
|
63 |
+
demo.launch(show_api=True, share=True)
|
64 |
|
65 |
if __name__ == "__main__":
|
66 |
asyncio.run(main())
|