jni code updated and compiled for speech optimization