Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def text_to_speech_kokoro(text: str, voice: str = 'af_heart', speed: float = 1.0
|
|
58 |
sf.write(filename, full_audio, sample_rate)
|
59 |
# Return an AgentAudio object pointing to the relative URL of the audio file
|
60 |
from smolagents.agent_types import AgentAudio
|
61 |
-
return AgentAudio(f"
|
62 |
except Exception as e:
|
63 |
return f"Error generating speech: {str(e)}"
|
64 |
|
|
|
58 |
sf.write(filename, full_audio, sample_rate)
|
59 |
# Return an AgentAudio object pointing to the relative URL of the audio file
|
60 |
from smolagents.agent_types import AgentAudio
|
61 |
+
return AgentAudio(f"tools/output.wav")
|
62 |
except Exception as e:
|
63 |
return f"Error generating speech: {str(e)}"
|
64 |
|