如何将PCM原始数据转换为mp3文件? [英] How to convert PCM raw data to mp3 file?

查看:739
本文介绍了如何将PCM原始数据转换为mp3文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编辑我的问题:PCM原始数据到任何音频文件都有编码器吗? mp3,ogg ...但不是WAV,因为它太大了

EDITED my question: Is there any encoders from PCM raw data to any audio file? mp3,ogg... but not WAV, as it will be too big

我有一个原始PCM阵列的文本文件,我想把它转换为mp3,ogg文件。经过长时间的搜索,我找不到一些提供这种编码的库(PCM到MP3)。我期待有一些建议或可能链接到这些库。

I do have a text file which has raw PCM array, and I want to convert it to mp3,ogg file. After long search I couldnt find some library which does provide this encoding (PCM to MP3). Im looking forward to have some suggestions or maybe links to such libraries.

应该在Android手机中以编程方式完成,所以我不想要一些桌面解决方案。

It should be done programmatically in android phone, so I dont want to have some desktop solutions.

推荐答案

我认为,您必须先检查许可问题。 AFAIK mp3软件从未免费过。 Linux确实支持mp3,但必须在本地机器上构建代码,而不是下载即用型软件包。 (不确定近年来这是否有所改变。)

I think, you must check the licensing issues first. AFAIK mp3 software has never been free. Linux did support mp3, but had to build the code on the local machine instead of downloading a ready-to-use package. (Not sure if this has changed in recent years.)

[Re:EDITED]其他格式更容易,例如:

[Re: EDITED] Other formats are easier, e.g.:

如何将录制的语音编码为ogg vorbis?

如何在Android中将WAV / OGG文件转换为FLAC文件?

这篇关于如何将PCM原始数据转换为mp3文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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