将.amr转换为.wav文件 [英] Converting .amr to .wav file

查看:133
本文介绍了将.amr转换为.wav文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
在我的应用程序中,我想使用c#将.amr文件形式的音频文件转换为.wav文件.该怎么做?
在此先谢谢您.

Hi all,
In my application i want to convert audio file which is in the form of .amr file to .wav file using c#. How to do that?
Thanks in advance.

推荐答案

您可以使用OpenCORE AMR库:
http://sourceforge.net/projects/opencore-amr/ [ http://sourceforge.net/projects/opencore-amr/files/latest/download [ ^ ].

这篇Wikipedia文章显示了AMR编解码器的一般信息.如果要尝试查找其他支持库,请参阅:
http://en.wikipedia.org/wiki/Adaptive_Multi-Rate_audio_codec#Software_support [ ^ ].

尝试找到开放源代码产品并查看其源代码. VLC是开源的,例如:
http://en.wikipedia.org/wiki/VLC_media_player [ http://www.videolan.org/vlc/ [
如果您需要学习P/Invoke,请参阅:
http://en.wikipedia.org/wiki/P/Invoke [ http://msdn.microsoft.com/en-us/library/Aa712982 [ ^ ].

此CodeProject文章也可能有用:
基本P/调用 [ http://en.wikipedia.org/wiki/C%2B%2B/CLI [ ^ ],
http://msdn.microsoft.com/en-us/library/xey702bw.aspx [ ^ ],
http://www.ecma-international.org/publications/standards/Ecma-372.htm [ ^ ].

这项工作的所有部分都需要良好的编程资格.即使您不需要了解C的所有细节,也需要对基础知识有足够的了解.如果要使用C ++/CLI,则需要对C ++和C ++/CLI的基础知识有很好的了解.在所有情况下,您都需要了解.NET和原始C类型的表示形式的结构,才能通过在它们之间进行封送处理来工作.好吧,没有比这更简单的方法了.

—SA
You can use the OpenCORE AMR library:
http://sourceforge.net/projects/opencore-amr/[^].

Dowload it here:
http://sourceforge.net/projects/opencore-amr/files/latest/download[^].

This Wikipedia article shows general information of the AMR codec. If you want to try to find some other supporting library, please see:
http://en.wikipedia.org/wiki/Adaptive_Multi-Rate_audio_codec#Software_support[^].

Try to find the Open Source product and see its sour code. VLC is Open Source, for example:
http://en.wikipedia.org/wiki/VLC_media_player[^],
http://www.videolan.org/vlc/[^].

The library I referenced first is written in C, as well as most codecs you may find, so you would need to 1) translate the code in C#; 2) make a native DLL out of it and use in your C# project via P/Invoke, 3) use the code in C++/CLI project; in this case: 3a) translate the code in C++/CLI, 3b) create a mixed-mode (managed+unmanaged) C++/CLI project, wrap C code in C++/CLI "ref" classes/structures and make them public; in both cases, you can make a C++/CLI library and reference it in your C# project as a regular .NET assembly.

If you need to learn P/Invoke, please see:
http://en.wikipedia.org/wiki/P/Invoke[^],
http://msdn.microsoft.com/en-us/library/Aa712982[^].

This CodeProject article can also be useful:
Essential P/Invoke[^].

On C++/CLI, please see:
http://en.wikipedia.org/wiki/C%2B%2B/CLI[^],
http://msdn.microsoft.com/en-us/library/xey702bw.aspx[^],
http://www.ecma-international.org/publications/standards/Ecma-372.htm[^].

All parts of this work will require good programming qualification. Even though you are not required to know all the details of C, quite good understanding of the basics is required. If you are going to use C++/CLI, you would need pretty good understanding of the basics of both C++ and C++/CLI. In all cases, you would need to understand the structure of the presentation of .NET and raw C types to work through marshaling between them. Well, there is no an easier way.

—SA


实际解决方案(mac):
1)在快速时间内打开文件
2)点击文件>出口
3)选择.AIF或.WAV

完成...
www NateBeats com
REAL SOLUTION (mac):
1) OPEN FILE IN QUICKTIME
2) CLICK FILE > EXPORT
3) CHOOSE .AIF or .WAV

DONE...
www NateBeats com


这篇关于将.amr转换为.wav文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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