Spaces:
Running
Running
updated the label convert voice to text (#1)
Browse files- updated the label convert voice to text (9af583374d610291765772b17ebab7d5083a7d1f)
Co-authored-by: RAYYAN KHAN <[email protected]>
app.py
CHANGED
@@ -13,7 +13,7 @@ async def get_voices():
|
|
13 |
# Text to speech functionality
|
14 |
async def text_to_speech(text, voice, rate, pitch, output_path):
|
15 |
if not text.strip():
|
16 |
-
return None, gr.Warning("Please enter the text to convert
|
17 |
if not voice:
|
18 |
return None, gr.Warning("Please select a voice.")
|
19 |
|
|
|
13 |
# Text to speech functionality
|
14 |
async def text_to_speech(text, voice, rate, pitch, output_path):
|
15 |
if not text.strip():
|
16 |
+
return None, gr.Warning("Please enter the text to convert into voice")
|
17 |
if not voice:
|
18 |
return None, gr.Warning("Please select a voice.")
|
19 |
|