audeering / opensmile-python

Python package for openSMILE
https://audeering.github.io/opensmile-python/
Other
243 stars 32 forks source link

RuntimeError: Input signal has 2 channels, but 'num_channels' to set to 1. #13

Open AliChaudhry8 opened 3 years ago

AliChaudhry8 commented 3 years ago

Hi, I am getting this error on Mac. Can someone please help with this.

frankenjoe commented 3 years ago

It seems that you are trying to process a file that has two channels, but your feature extractor is configured to process files with a single channel. Please try to set num_channels=2 when you create the Smile object.

See also https://audeering.github.io/opensmile-python/usage.html#multi-channel

Note that is is not possible to process files with varying number of channels with the same feature extractor.

frankenjoe commented 3 years ago

@AliChaudhry8 did it solve your problem?