Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,9 @@ def transcribe(audio):
|
|
14 |
return transcript["text"]
|
15 |
|
16 |
def giveVoice(bot_message):
|
17 |
-
|
|
|
|
|
18 |
myobj.save("temp.mp3")
|
19 |
|
20 |
dir = os.getcwd()
|
|
|
14 |
return transcript["text"]
|
15 |
|
16 |
def giveVoice(bot_message):
|
17 |
+
|
18 |
+
|
19 |
+
myobj = gTTS(text=bot_message[-1])
|
20 |
myobj.save("temp.mp3")
|
21 |
|
22 |
dir = os.getcwd()
|