Skip to content
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

Issue on recording using smileapi #44

Open
sylee3 opened this issue Apr 5, 2022 · 1 comment
Open

Issue on recording using smileapi #44

sylee3 opened this issue Apr 5, 2022 · 1 comment

Comments

@sylee3
Copy link

sylee3 commented Apr 5, 2022

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants