-
Notifications
You must be signed in to change notification settings - Fork 51
'NoneType' object has no attribute 'channels' #25
Comments
I have the same problem on Ubuntu 19 |
Did you solve it ? Let me know if you did |
from pysndfx import AudioEffectsChain; AudioEffectsChain().reverb()(None, None, channels_out=1) This works. |
I put in PR #31 to fix this. |
Great stuff @BartMassey! The underlying issue is that the live streaming example has no test coverage (at the time of writing it, it was mostly a curiosity for me rather than intended usage) and with @hadware's changes we missed that the code example stopped working. If anyone has a nice idea of how to test such a feature (e.g. mocking streams offline, somehow), tips would be much appreciated. |
I'm sorry for breaking that 🤐 |
Might I suggest closing this issue (since the immediate problem has been resolved) and opening a new issue for the testing question? |
Absolutely, @BartMassey @hadware not your fault! No coverage: my fault. @Riccardo451 feel free to reopen if you still have problems. |
Trying on OSX python3 to apply reverb to mic with the command: python -c "from pysndfx import AudioEffectsChain; AudioEffectsChain().reverb()(None, None)"
I get the following error:
Traceback (most recent call last):
File "EQ_test.py", line 3, in
AudioEffectsChain().bandpass(1000, q=1.0)(None, None)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pysndfx/dsp.py", line 387, in call
channels_out = infile.channels
AttributeError: 'NoneType' object has no attribute 'channels'
how I am supposed to define the input and output channels?
thank you for the help, I am pretty new to python
The text was updated successfully, but these errors were encountered: