Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
67 |
-
|
68 |
-
:
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
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)
|