audeering / opensmile

The Munich Open-Source Large-Scale Multimedia Feature Extractor
https://audeering.github.io/opensmile/
Other
569 stars 75 forks source link

Accept a pcm data, return to extract feature data #26

Closed srdfjy closed 2 years ago

srdfjy commented 2 years ago

Hi,We know that when executing SMILExtract, you need to specify an input file and output a file. E.g: SMILExtract -C config/emobase/emobase2010.conf -I ./1.WAV -O ./1.arff

I want to input a pcm data and return the extracted feature data. Is this possible?

chausner-audeering commented 2 years ago

openSMILE comes with SMILEapi which is a C API allowing to embed openSMILE into other applications. Instead of cWaveSource and cArffSink components for file reading/writing, you would then use special components for reading/writing data in memory: cExternalDataSource, cExternalAudioDataSource and cExternalDataSink.

You can find more information on this in the openSMILE documentation in the "SMILEapi" section.

srdfjy commented 2 years ago

@chausner-audeering thanks