phi0112358 commited on
Commit
efb38d2
·
verified ·
1 Parent(s): 559b46d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -24
app.py CHANGED
@@ -33,47 +33,34 @@ async def create_demo():
33
  voices = await get_voices()
34
 
35
  description = """
36
- Convert text to speech using Microsoft Edge TTS. Adjust speech rate and pitch: 0 is default, positive values increase, negative values decrease.
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="Input Text", lines=5),
56
- gr.Dropdown(choices=[""] + list(voices.keys()), label="Select Voice", value=""),
57
- gr.Slider(minimum=-50, maximum=50, value=0, label="Speech Rate Adjustment (%)", step=1),
58
- gr.Slider(minimum=-20, maximum=20, value=0, label="Pitch Adjustment (Hz)", step=1)
59
  ],
60
  outputs=[
61
- gr.Audio(label="Generated Audio", type="filepath"),
62
  gr.Markdown(label="Warning", visible=False)
63
  ],
64
- title="Edge TTS Text-to-Speech",
65
  description=description,
66
- article="Experience the power of Edge TTS for text-to-speech conversion, and explore our advanced Text-to-Video Converter for even more creative possibilities!",
67
  analytics_enabled=False,
68
- allow_flagging="manual",
69
- api_name=None
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=False)
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())