Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -82,9 +82,6 @@ def text_to_speech(text: str) -> AgentAudio:
|
|
82 |
|
83 |
#return AgentAudio(AUDIO_OUTPUT_PATH)
|
84 |
|
85 |
-
# Read the MP3 bytes directly
|
86 |
-
with open(AUDIO_OUTPUT_PATH, "rb") as f:
|
87 |
-
audio_bytes = f.read()
|
88 |
|
89 |
# Return AgentAudio, but store the raw bytes
|
90 |
return AgentAudio(audio_bytes) # Not a path anymore
|
|
|
82 |
|
83 |
#return AgentAudio(AUDIO_OUTPUT_PATH)
|
84 |
|
|
|
|
|
|
|
85 |
|
86 |
# Return AgentAudio, but store the raw bytes
|
87 |
return AgentAudio(audio_bytes) # Not a path anymore
|