Spaces:
Running
Running
Update app.py
Browse files
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, "
|
14 |
if not voice:
|
15 |
-
return None, "
|
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 |
-
|
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="
|
57 |
-
gr.Slider(minimum=-50, maximum=50, value=0, label="
|
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="
|
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
|