from gtts import gTTS
from playsound import playsound
import os

reply_audio = os.path.join(os.getcwd(), "reply.mp3")

def talk(sentence):
    tts = gTTS(sentence)
    tts.save(reply_audio)
    playsound(reply_audio)
    os.remove(reply_audio)
