Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -318,8 +318,7 @@ def emotion_aware_tts_pipeline(input_text=None, file_input=None):
|
|
318 |
|
319 |
# Generate audio
|
320 |
audio_path = "output.wav"
|
321 |
-
tts_model.tts_to_file(text=input_text, file_path=audio_path
|
322 |
-
|
323 |
|
324 |
|
325 |
return f"Detected Emotion: {emotion} (Confidence: {confidence:.2f})", audio_path
|
|
|
318 |
|
319 |
# Generate audio
|
320 |
audio_path = "output.wav"
|
321 |
+
tts_model.tts_to_file(text=input_text, file_path=audio_path)
|
|
|
322 |
|
323 |
|
324 |
return f"Detected Emotion: {emotion} (Confidence: {confidence:.2f})", audio_path
|