开发者

Audio compression in android

I want to send some speech file over internet to my server. My server will do the same. But some speech file or audio files are large in size. My aim is to compress that audio data to server. I found speex do the same. I am unable to get how to use speex in my android. For java there is jspeex jar available. Any sample program or tu开发者_运维技巧torial on how to use speex for compressing my audio data or any other way to compress audio data will help me. I need you support.

Thanks Deepak


You would just import the JAR. If you're using eclipse, right click on your project > properties > build path, then import the JAR. import it into your file to do the compression and then call the functions you wish to use for compression.

Take a look at JSpeex javadoc to see how you would achieve what you want.. http://jspeex.sourceforge.net/doc/index.html


If you are brave enough to try android-ndk stuff, see if https://github.com/mutantbob/ndk-speex works for you.


You cannot use this library because google has removed the package javax.sound.sampled.spi which is used by the jspeex library

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜