Traceback (most recent call last): File "C:\Users\Thi\Desktop\robo\thi.py", line 62, in main() File "C:\Users\Thi\Desktop\robo\thi.py", line 60, in main monitora_Audio() File "C:\Users\Thi\Desktop\robo\thi.py", line 25, in monitora_Audio executa_comandos(trigger) File "C:\Users\Thi\Desktop\robo\thi.py", line 46, in executa_comandos ultimas_noticias() File "C:\Users\Thi\Desktop\robo\thi.py", line 56, in ultimas_noticias audio(mensagem) File "C:\Users\Thi\Desktop\robo\thi.py", line 40, in audio tts.save('audios/mensagem.mp3') File "C:\Users\Thi\Desktop\robo\venv\lib\site-packages\gtts\tts.py", line 328, in save with open(str(savefile), "wb") as f: PermissionError: [Errno 13] Permission denied: 'audios/mensagem.mp3'
Process finished with exit code 1
COLAR ESSE CODIGO PARA PARAR O EERO
tts = gTTS(mensagem, lang='pt-br')
tts.save('audios/mensagem.mp3')
playsound('audios/mensagem.mp3')
os.remove('audios/mensagem.mp3') #WINDOWS