从MP3快速转换到Android上的WAV [英] Fast conversion from mp3 to WAV on Android

查看:756
本文介绍了从MP3快速转换到Android上的WAV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图转换MP3文件转换成WAVE格式在我的Andr​​oid应用程序。这种操作应该采取时间很少,作为应用程序是社会,而且它是不能接受的用户等待太久。

I am trying to convert a mp3 file into WAVE format in my Android application. This operation should take little time, as the application is social, and it is not acceptable for the user to wait for too long.

因此​​,这里是我在哪里:

So here is where I am :


  • 我已经尝试使用JLayer(在一个类似的问题提出转换MP3到WAV Android上),但转换太慢:它需要大约40秒仅需2分钟的MP3文件

  • I have already tried to use JLayer (proposed in a similar question Convert mp3 to wav on Android), but the conversion is too slow: it takes about 40 seconds for a 2 minutes mp3 file.

关于图书馆LAME(如 Lame4Android ),我也尝试过(与Android NDK),但结果仍然是太慢(15秒到10秒)。

Concerning the library LAME (as in Lame4Android), I also tried it (with Android NDK) but the result is still too slow (15s to 10s).

我碰到的另一个库: JUCE ,但实在是太广阔,包括整个图书馆在为了做到这一点简单的转换项目似乎有点过多......。而且我也怕会慢应用程序。

I came across another library: JUCE, but it is too vast, and including the entire library in the project in order to do that simple conversion seems a bit... excessive. And I am also afraid it will slow the application.

那么,我现在寻找的是一个C / C ++库为了做到这一点使用。
你知道任何的快速的库?

So what I am currently looking for is a C/C++ library to use in order to do that. Do you know any fast libraries?

感谢您。

推荐答案

不知道该许可证会为你(GPLv2许可)工作,但你有没有考虑的的libmad

Not sure if the license will work for you (GPLv2), but have you considered libmad?

据我了解,有没有一个NDK编译可供下载,但这里是描述如何制作自己的网页...

As I understand it, there's not a NDK build available for download, but here is a page describing how to make one yourself...

另一种选择是 libmpg123 的,这是LGPLv2.1。同样的博客描述如何在Android中使用它的文章。

Another option is libmpg123, which is LGPLv2.1. The same blog has an article describing how to use it in Android.

这篇关于从MP3快速转换到Android上的WAV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆