TARS
TARS copied to clipboard
error while taking input
File ".\voice_input.py", line 26, in speak speech.save('command.mp3') File "C:\ProgramData\Miniconda3\lib\site-packages\gtts\tts.py", line 248, in save with open(str(savefile), 'wb') as f: PermissionError: [Errno 13] Permission denied: `'command.mp3
Geting this error
@raszidzie pls have a look in this
Ran into the same permission error on a windows machine. mixer seems to have issues with file handling or my system is just slow. A quick lazy fix that worked is to put another file here and load it before removing the original file.
while mixer.music.get_busy():
pass
mixer.music.load('command_copy.mp3')
os.remove('command.mp3')