-
Notifications
You must be signed in to change notification settings - Fork 33
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
I want to change the window width and step width of the frame in openSMILE #42
Comments
You can make a copy of the config you would like to adapt, apply the changes in frameSize and frameStep there, and then run it via the openSMILE Python library as described at https://audeering.github.io/opensmile-python/usage.html#custom-config. |
Thank you for your answer! |
There is no difference in the format of .conf and .inc files. The only difference is that .inc files get included from other config files. To change frame parameters in ComParE_2016, make a copy of all configs in https://github.com/audeering/opensmile-python/tree/master/opensmile/core/config/compare and then adapt the settings, e.g. https://github.com/audeering/opensmile-python/blob/master/opensmile/core/config/compare/ComParE_2016_core.lld.conf.inc#L51. Then specify the copy of ComParE_2016.conf in the call to |
Thank you for your answer again! I tried what you said without modifying the code first, but I got the following error. What could be the cause of this? I've attached the contents of the config file I created below. (However, it is a copy of the two contents of ComParE_2016.conf and ComParE_2016_core.lld.conf.inc, the code on GitHub. So it may be a little different from the writing style described in (https://audeering.github.io/opensmile-python/usage.html#custom-config). I'm trying to find the difference myself, but what's wrong...?) ///////////////////////////////////////////////////////////////////////////////////////////////////////////// ;;; default source [componentInstances:cComponentManager] [is13_frame60:cFramer] [is13_win60:cWindower] [is13_fft60:cTransformFFT] [is13_fftmp60:cFFTmagphase] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [componentInstances:cComponentManager] [is13_frame25:cFramer] [is13_win25:cWindower] [is13_fft25:cTransformFFT] [is13_fftmp25:cFFTmagphase] ;;;;;;;;;;;;;;;;;;;; HPS pitch [componentInstances:cComponentManager] [is13_scale:cSpecScale] [is13_shs:cPitchShs] ;;;;; Pitch with Viterbi smoother [is13_energy60:cEnergy] [componentInstances:cComponentManager] [is13_pitchSmoothViterbi:cPitchSmootherViterbi] [componentInstances:cComponentManager] [is13_volmerge:cValbasedSelector] ;;;;;;;;;;;;;;;;;;; Voice Quality (VQ) [componentInstances:cComponentManager] [is13_pitchJitter:cPitchJitter] ;;;;;;;;;;;;;;;;;;;;; Energy / loudness [componentInstances:cComponentManager] [is13_energy:cEnergy] [is13_melspec1:cMelspec] ; perform auditory weighting of spectrum ; perform RASTA style filtering of auditory spectra [is13_audspecSum:cVectorOperation] [is13_audspecRastaSum:cVectorOperation] ;;;;;;;;;;;;;;; spectral [componentInstances:cComponentManager] [is13_spectral:cSpectral] ;;;;;;;;;;;;;;; mfcc [componentInstances:cComponentManager] [is13_melspecMfcc:cMelspec] [is13_mfcc:cMfcc] ;;;;;;;;;;;;;;;; zcr [componentInstances:cComponentManager] [is13_mzcr:cMZcr] ;;;;;;;;;;;;;;;;;;;; smoothing [componentInstances:cComponentManager] [is13_smoNz:cContourSmoother] [is13_f0sel:cDataSelector] [is13_smoA:cContourSmoother] [is13_smoB:cContourSmoother] ;;;;;;;;; deltas [is13_deNz:cDeltaRegression] [is13_deA:cDeltaRegression] [is13_deB:cDeltaRegression] [is13_def0sel:cDeltaRegression] ;ComParE_2016.conf [componentInstances:cComponentManager] [is13_lldconcat:cVectorConcat] [is13_llddeconcat:cVectorConcat] [is13_funcconcat:cVectorConcat] ;;; default sink |
|
I tried what you said, but it still doesn't work. I don't know anyone around me who is familiar with openSMILE, so please forgive me if I keep asking questions here. As for the steps to be taken... I get the following error in both cases. Also, is there something wrong with the python file I am running? I apologize again and again. Please help me. ////////////////////////////////////////////////////////////////////////////////////////////// smile = opensmile.Smile( |
You may want to enable logging to see the exact error: https://audeering.github.io/opensmile-python/usage.html#logging |
Here is the error I got:
|
I got the exception "OpenSmileException: Code: 1" after I changed the frameSize directly inside the config file in the package. I found that there are two frameSize and frameStep parameters in the lld config, and I need to make sure they are consistent. Problem solved! |
Sorry guys, I used open smile (compare lld feature set) to obtain data from an audio dataset to use it as train set for machine learning. I had to test the performance on different train set using different window sizes to extract festures. I was wondering how can I understand for which features is used value 0.060 or 0.020? Thanks for the reply |
Hello.
As the title says, I want to change the window width and step width of the frame in openSMILE.
(For example,frameSize:0.025→0.050,frameStep:0.010→0.020)
Can I ask you how to do this?
(I'm sorry, I am not a native speaker of English, so my writing may be unnatural.)
The text was updated successfully, but these errors were encountered: