I am planning to extract MFCC features in real time so that it can be used for speech recognition in my android application. For the same I have found that there is a package available in java called CoMIRVA. I tried using the package for my application but I am getting some errors.
This is the part of the code where I am creating a object of the MFCC class. float samplerate=8000; private MFCC mfcc_inst=new MFCC(samplerate);
I have not yet started using any of the methods in the class. The rest of the application contains code for real time audio recording and playback using AudioRecord and AudioTrack classes. When I run the app I am getting error at the line where I create the object. I am posting the concerned part of the log file below
E/AndroidRuntime(871): FATAL EXCEPTION: main
E/AndroidRuntime(871): java.lang.VerifyError: comirva/audio/util/math/Matrix
E/AndroidRuntime(871): at comirva.audio.util.MFCC.getMelFilterBanks(MFCC.java:267)
E/AndroidRuntime(871): at comirva.audio.util.MFCC.(MFCC.java:162)
E/AndroidRuntime(871): at comirva.audio.util.MFCC.(MFCC.java:71)
E/AndroidRuntime(871): at com.example.mfcc.MFCCActivity.(MFCCActivity.java:46)
E/AndroidRuntime(871): at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime(871): at java.lang.Class.newInstance(Class.java:1319)
E/AndroidRuntime(871): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
E/AndroidRuntime(871): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
E/AndroidRuntime(871): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
E/AndroidRuntime(871): at android.app.ActivityThread.access$600(ActivityThread.java:123)
E/AndroidRuntime(871): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
E/AndroidRuntime(871): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(871): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(871): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime(871): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(871): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(871): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime(871): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime(871): at dalvik.system.NativeStart.main(Native Method)
Thanks!!