uasername commited on
Commit
e4f3217
·
verified ·
1 Parent(s): 182578f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"./tools/output.wav")
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