carlthome / python-audio-effects

Apply audio effects such as reverb and EQ directly to audio files or NumPy ndarrays.
MIT License
386 stars 53 forks source link

possible fix FileNotFoundError on windows #22

Closed Wirtos closed 4 years ago

Wirtos commented 5 years ago

Manually define your sox path if Popen can't find it:

from pysndfx.converter import SOX_CONVERTER
from pysndfx import AudioEffectsChain
SOX_CONVERTER.converter = 'D:/sox-14-4-2/sox.exe'
fx = AudioEffectsChain().overdrive()
fx(r"testfile1.mp3", r"testfile2.mp3")
carlthome commented 5 years ago

Couldn't Windows users just update their PATH to the SoX binary?

Wirtos commented 5 years ago

Couldn't Windows users just update their PATH to the SoX binary?

Nope. Doesn't work. File not found using Popen. At least using pycharm

jdevoldere commented 4 years ago

pysndfx.converter disappeared, where did it go?

carlthome commented 4 years ago

It never existed on master @jdevoldere IIRC.