Can I remove an audio file when it stopped with playsound module? I have written a code but I can't do it:
from gtts import gTTS
import os
import playsound
def say(textg):
tts = gTTS(text=textg, lang='en')
tts.save('audio.mp3')
playsound('audio.mp3')
time.sleep(here, what i have to do?)
os.remove('audio.mp3')
I am using Python 2.7.15