opensmile-python icon indicating copy to clipboard operation
opensmile-python copied to clipboard

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

Open AliChaudhry8 opened this issue 4 years ago • 2 comments

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

AliChaudhry8 avatar Nov 24 '20 09:11 AliChaudhry8

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 avatar Nov 24 '20 09:11 frankenjoe

@AliChaudhry8 did it solve your problem?

frankenjoe avatar Dec 08 '20 11:12 frankenjoe