mukaist commited on
Commit
93ae573
·
verified ·
1 Parent(s): 559b46d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -19
app.py CHANGED
@@ -10,9 +10,9 @@ async def get_voices():
10
 
11
  async def text_to_speech(text, voice, rate, pitch):
12
  if not text.strip():
13
- return None, "Please enter text to convert."
14
  if not voice:
15
- return None, "Please select a voice."
16
 
17
  voice_short_name = voice.split(" - ")[0]
18
  rate_str = f"{rate:+d}%"
@@ -33,28 +33,16 @@ 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=[
@@ -63,7 +51,7 @@ async def create_demo():
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
 
10
 
11
  async def text_to_speech(text, voice, rate, pitch):
12
  if not text.strip():
13
+ return None, "Lütfen dönüştürülecek metni girin."
14
  if not voice:
15
+ return None, "Lütfen bir ses seçin."
16
 
17
  voice_short_name = voice.split(" - ")[0]
18
  rate_str = f"{rate:+d}%"
 
33
  voices = await get_voices()
34
 
35
  description = """
36
+ Hepzeka.com | Microsoft Edge TTS kullanarak metni konuşmaya dönüştürün. Konuşma hızını ve perdesini ayarlayın: 0 varsayılandır, pozitif değerler artar, negatif değerler azalır.
37
+
 
 
 
 
 
 
 
 
 
 
 
 
38
  """
39
 
40
  demo = gr.Interface(
41
  fn=tts_interface,
42
  inputs=[
43
  gr.Textbox(label="Input Text", lines=5),
44
+ gr.Dropdown(choices=[""] + list(voices.keys()), label="Sesi Seçin", value=""),
45
+ gr.Slider(minimum=-50, maximum=50, value=0, label="Konuşma Hızı Ayarlaması (%)", step=1),
46
  gr.Slider(minimum=-20, maximum=20, value=0, label="Pitch Adjustment (Hz)", step=1)
47
  ],
48
  outputs=[
 
51
  ],
52
  title="Edge TTS Text-to-Speech",
53
  description=description,
54
+ article="Metinden sese dönüştürme için Edge TTS'nin gücünü deneyimleyin ve daha da yaratıcı olanaklar için gelişmiş Metinden Videoya Dönüştürücümüzü keşfedin!",
55
  analytics_enabled=False,
56
  allow_flagging="manual",
57
  api_name=None