Closed ses4j closed 4 years ago
Thank you for reporting. BirdVoxDetect does not support multichannel outputs.
Please convert to mono ahead of calling birdvoxdetect.process_file
@lostanlen could we not downmix the audio in BVD ourselves, to save the user having to preprocess it manually?
IINM we'd have to update 3 lines in core.py
, basically where we call
chunk_audio = sound_file.read(...)
We update to:
chunk_audio = sound_file.read(...)
chunk_audio = chunk_audio.mean(axis=1)
Thoughts?
I think the error just means I need to convert stereo to mono. That seems to resolve it.