audeering / opensmile

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

Issue on recording using smileapi #44

Open sylee3 opened 2 years ago

sylee3 commented 2 years ago

Hello,

I was able to install/compile openSMILE with PortAudio and able to get various configuration option of the cPortAudio using SMILExtract -H. I was also able to record using SMILExtract with audiorecorder.conf configuration file and get the recorded wav file (have to use Ctrl C to exit).

However, when I try to use smileapi to record using same audiorecorder.conf did not record. In my C# code, in one thread I call following smileapi API.

smile.Initialize(configfile, options); smile.Run();

In another thread, I am trying to exit smile object by using following API when some event occurs.

smile.Abort(); smile.Dispose();

These approach creates wav file with some file size, but no recorded sound exist. Any help or advise would be greatly helpful.

Thanks

chausner-audeering commented 2 years ago

Are you sure that cPortaudioSource is recording from the correct audio device?

I suggest to try narrowing down the issue first to check if the problem is on the audio recording side or somewhere else. You could insert a cCsvSink instance to write out the audio data, for example.