Skip to content Skip to sidebar Skip to footer

Can't Figure Out Why PyDub Is Not Working

I'm trying to use pydub for a music project, but when trying to play sounds with this chunk of code from pydub import AudioSegment from pydub.playback import play sound = AudioSegm

Solution 1:

The python script encountered a Permission Error It is trying to read 'C:\\Users\\vicen\\AppData\\Local\\Temp\\tmpvwotqts5.wav' file but doesn't have permission to write in the directory.

Changing permissions on the above mentioned Temp folder should solve the problem.

Or you could run your python script using sudo command. Since you are using windows this should help in this regard.


Solution 2:

Easy Fix from here:

pip install simpleaudio

Pydub uses tempfiles extensively .As suggested here you can add TMPDIR environment variable.


Post a Comment for "Can't Figure Out Why PyDub Is Not Working"