New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option for MusicExtractor or FreesoundExtractor to work on raw audio input #765
Comments
Agreed, MusicExtractor and FreesoundExtractor also extract some metadata from files, therefore, they should be probably split into a few auxiliary algorithms, one of which would accept raw audio input. |
@dbogdanov In absence of signal option for above extractors, I am using It'll be really helpful if you can add couple of sample codes:
I am struggling with both above issues. Any immediate help will be highly appreciated. |
Ignore above comment, I just figured that out. |
@009deep hi,could you tell me how to use PCM raw data buffer as input for any algorithm? Thank you! |
@ZhiyuLiu1993 hey sorry for late reply. For PCM data multiply your data with (1/(2^(n-1) -1)) before feeding it to essentia algorithms. Where n is number of bits to represent PCM data so e.g. if you use S16LE format for PCM data. |
@009deep Am sorry for bringing up an ancient thread. I hope you are suggesting to just normalize the input before feeding to Essentia algorithms ? If not, would it be possible to share a snippet or detail more on how to input a wav file to essentia without using MonoLoader or their AudioLoader. |
MusicExtractor
andFreesoundExtractor
both accepts only filename as input. If I pass signal value as raw data it errors out asCouldn't find 'signal' in FreesoundExtractor::inputs.
There should be a way to pass buffer as input to these extractors.
The text was updated successfully, but these errors were encountered: