Converting audio on android to mp3 or AAC

好久不见. 提交于 2020-01-01 05:46:05

问题


I am recording audio from mic and save it to .mp4 - it is AMR format. How to convert this audio to mp3 or AAC? I saw this post and I did not understand it - I am new in android.

Is there some easy library for android that can work with mp3? I googled whole day and not found nothing. Maybe some good man can explain and give full example in this post and hundreds of people will be grateful!

Thank you.


回答1:


You could do that with http://www.javazoom.net/mp3spi/mp3spi.html probably. I am not sure where you were looking for help, but there are tons of articles on StackOverflow about that. You don't have to search for android only stuff. You are using java.

Ex: Any good recommendations for MP3/Sound libraries for java?

MP3 Encoding in Java

http://openinnowhere.sourceforge.net/lameonj/




回答2:


Can you avoid recording to AMR (which is lossy format), and record raw PCM samples instead? Then sending those PCM samples directly into AAC or MP3 encoder would give you much better quality. Doing first AMR and then AAC looses information twice.



来源:https://stackoverflow.com/questions/10726762/converting-audio-on-android-to-mp3-or-aac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!