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

self.channels = int(stdout) ValueError: invalid literal for int() with base 10: b'' #30

Open ghost opened 4 years ago

ghost commented 4 years ago

My code is this:

`import os from pysndfx import AudioEffectsChain

inp = "/voiceit/flask/laughter.aac" out = "/voiceit/flask/reverse.mp3"

fx = ( AudioEffectsChain() .highshelf() .reverb() .phaser() .delay() .lowshelf() )

fx(inp,out)`

The output in terminal is

Traceback (most recent call last): File "audiop.py", line 16, in <module> fx(inp,out) File "C:\Users\acer\AppData\Local\Programs\Python\Python37\lib\site-packages\pysndfx\dsp.py", line 368, in __call__ infile = FilePathInput(src) File "C:\Users\acer\AppData\Local\Programs\Python\Python37\lib\site-packages\pysndfx\sndfiles.py", line 32, in __init__ self.channels = int(stdout) ValueError: invalid literal for int() with base 10: b''

3llish commented 4 years ago

hi, I just had the same issue and I solved by installing the mp3 support for SoX.

sudo apt install lib sox-fmt-all

hope it works for you!

pcrunn commented 4 years ago

hi, I just had the same issue and I solved by installing the mp3 support for SoX.

sudo apt install lib sox-fmt-all

hope it works for you!

i think you meant

sudo apt install libsox-fmt-all
Adekiii commented 4 years ago

I'm also having this issue, and I'm working with only .wav files.

youssefavx commented 3 years ago

I'm also having this issue on colab after installing sox and libsox-fmt-all