Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,6 +83,8 @@ def generate_speech(emotion, text):
|
|
| 83 |
if not text or not text.strip():
|
| 84 |
return None, "Please enter text to convert to speech."
|
| 85 |
|
|
|
|
|
|
|
| 86 |
try:
|
| 87 |
# Create temporary file for output
|
| 88 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp_file:
|
|
|
|
| 83 |
if not text or not text.strip():
|
| 84 |
return None, "Please enter text to convert to speech."
|
| 85 |
|
| 86 |
+
print("Generating:", text)
|
| 87 |
+
print("With emotion:", emotion)
|
| 88 |
try:
|
| 89 |
# Create temporary file for output
|
| 90 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as tmp_file:
|