uasername commited on
Commit
35f68a0
·
verified ·
1 Parent(s): f7035ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -60,14 +60,13 @@ AUDIO_OUTPUT_PATH = "/tmp/response.mp3"
60
 
61
  @tool
62
  def text_to_speech(text: str) -> AgentAudio:
63
- """Converts input text to speech and returns an AgentAudio instance with the audio file path.
64
-
65
- Args:
66
- text (str): The text that will be converted into speech.
67
 
68
- Returns:
69
- AgentAudio: An AgentAudio instance containing the file path to the generated audio.
70
-
 
71
  """
72
  tts = gTTS(text=text, lang='en')
73
  tts.save(AUDIO_OUTPUT_PATH)
 
60
 
61
  @tool
62
  def text_to_speech(text: str) -> AgentAudio:
63
+ """
64
+ Convert text to speech and return the generated audio.
 
 
65
 
66
+ :param text: The text to be converted into speech.
67
+ :type text: str
68
+ :return: An AgentAudio instance containing the path to the generated audio file.
69
+ :rtype: AgentAudio
70
  """
71
  tts = gTTS(text=text, lang='en')
72
  tts.save(AUDIO_OUTPUT_PATH)