uasername commited on
Commit
73be253
·
verified ·
1 Parent(s): 69eba4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -14,14 +14,14 @@ from tools.visit_webpage import VisitWebpageTool
14
 
15
 
16
 
17
- # Define the audio output path
18
- AUDIO_OUTPUT_PATH = "/tmp/response.mp3"
19
-
20
- def speak_text(text):
21
- """Convert text to speech using gTTS and save as an MP3 file."""
22
- tts = gTTS(text=text, lang='en')
23
- tts.save(AUDIO_OUTPUT_PATH)
24
- return AUDIO_OUTPUT_PATH # Return the file path for Gradio Audio component
25
 
26
 
27
 
 
14
 
15
 
16
 
17
+ # # Define the audio output path
18
+ # AUDIO_OUTPUT_PATH = "/tmp/response.mp3"
19
+
20
+ # def speak_text(text):
21
+ # """Convert text to speech using gTTS and save as an MP3 file."""
22
+ # tts = gTTS(text=text, lang='en')
23
+ # tts.save(AUDIO_OUTPUT_PATH)
24
+ # return AUDIO_OUTPUT_PATH # Return the file path for Gradio Audio component
25
 
26
 
27