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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -63,10 +63,15 @@ 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)
 
63
  """
64
  Convert text to speech and return the generated audio.
65
 
66
+ Parameters
67
+ ----------
68
+ text : str
69
+ The text to be converted into speech.
70
+
71
+ Returns
72
+ -------
73
+ AgentAudio
74
+ An instance containing the path to the generated audio file.
75
  """
76
  tts = gTTS(text=text, lang='en')
77
  tts.save(AUDIO_OUTPUT_PATH)