TARS icon indicating copy to clipboard operation
TARS copied to clipboard

error while taking input

Open anujpuri72 opened this issue 5 years ago • 2 comments

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

anujpuri72 avatar Dec 14 '19 08:12 anujpuri72

@raszidzie pls have a look in this

anujpuri72 avatar Dec 14 '19 08:12 anujpuri72

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')

bhavya-teja avatar Jan 10 '20 18:01 bhavya-teja