Previously used in the application of the Speex codec, recently summed up the implementation of Speex on Android. Speex is a set of audio compression formats primarily for voice-free, open-source, non-proprietary protection. The Speex project focuses on reducing the input threshold for voice applications by providing an alternative to high-performance speech codecs. In addition, relative to other codec, Speex is also very suitable for network applications, in the network application has its own unique advantages. At the same time, Speex is part of the GNU Project and is well supported in the revised BSD protocol. Speex is based on the CELP and is specifically designed for bitrate in 2-44kbps speech compression. Speex source code is based on the C voice implementation (there is also Java implementation, relatively low efficiency).
1, to Speex official website to download the latest Speex source code.
2. Create a new Android project and create a JNI folder.
3. Copy the Libspeex and include directories and their subdirectory files under the Speex source directory to the $project/jni directory.
4. Add the Android.mk file in the JNI directory and edit the content as follows
Speex codec implemented on Android