when i call my function once i have no errors but if i call it repeatedly i will have the following error :
Exception has occurred: PermissionError [Errno 13] Permission denied: 'tolkback.mp3'
from gtts import gTTS
import pyglet
from playsound import playsound
def TalkBack(case_ans):
print("in ...................................")
tts = gTTS(case_ans)
tts.save('tolkback.mp3')
print("saving...............................")
playsound('tolkback.mp3')
print("saying................................")
TalkBack("my bad end 1")
TalkBack("go go end 2")
TalkBack("find me my self end 3")
TalkBack("games maker end 4")
TalkBack("say my name end 5")
the program should talk back the text