有没有办法在android studio中将webm和m4a文件转换为mp3。 因为更改文件扩展名使其看起来像 mp3 文件,但更改扩展名后就无法查找...webm 和 m4a 文件仅包含音频。
最佳答案
您可以执行https://github.com/adrielcafe/AndroidAudioConverter很容易。
您需要使用
将其导入到您的项目中repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
compile 'com.github.adrielcafe:AndroidAudioConverter:0.0.8'
}
根据 github 页面,您还需要编译 com.github.hiteshsondhi88.libffmpeg 依赖项。
关于java - 将 Webm 或 m4a 文件转换为 mp3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49608909/