python-audio-effects icon indicating copy to clipboard operation
python-audio-effects copied to clipboard

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

Open ghost opened this issue 6 years ago • 4 comments

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

ghost avatar Apr 13 '20 16:04 ghost

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!

3llish avatar Apr 24 '20 14:04 3llish

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

pcrunn avatar May 13 '20 12:05 pcrunn

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

Adekiii avatar Jul 08 '20 13:07 Adekiii

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

youssefavx avatar Jun 03 '21 04:06 youssefavx