如何在C#中将任何音频文件转换为.OGG格式? [英] How to convert any Audio file to .OGG format in C# ?

查看:359
本文介绍了如何在C#中将任何音频文件转换为.OGG格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有MP3,WAV文件我想将这些文件转换成.OGG格式的c#



如果有任何想法请帮助我吗?



谢谢和问候

Sairam Bhat

I have MP3,WAV files i want to convert that files to .OGG format in c#

please help me if have any idea?

Thanks & Regards
Sairam Bhat

推荐答案

由于存在源代码的玩家( Ogg Vorbis播放器的.NET实施 [ ^ ]),我没有看到编码器有问题。无论如何,因为Ogg Vorbis是开源的( http://www.vorbis.com/ [ ^ ]),任何人都可以编译其代码和P / Invoke在C#项目中使用所需的方法。另一种方法是使用可用的C ++代码创建.NET库的C ++ / CLI项目,该库可以作为任何.NET程序集引用。它可能需要一些修改或混合模式(托管+非托管)C ++ / CLI + C ++库,它们可以作为.NET程序集。



-SA
As the players with the source code exists (.NET Implementation of an Ogg Vorbis Player[^]), I don't see a problem with the encoder. Anyway, as Ogg Vorbis is Open Source (http://www.vorbis.com/[^]), anyone can compile its code and P/Invoke the required methods to use in C# project. Another way is C++/CLI project using available C++ code to create a .NET library which can be references as any .NET assembly. It may require some modification or mixed-mode (managed+unmanaged) C++/CLI + C++ library which can serve as .NET assembly.

—SA


这是一个迟来的回复但是我最近在寻找Ogg Vorbis编码库的托管代码实现而找不到,我写了。



对于将来寻找.NET Ogg Vorbis编码器的人,可以在以下链接中找到。



https://github.com/SteveLillis/.NET-Ogg-Vorbis-Encoder [ ^ ]
A much belated reply but as I recently looked for a managed code implementation of an Ogg Vorbis encoding library and couldn't find one, I wrote it.

For anyone looking for a .NET Ogg Vorbis encoder in the future, it can be found at the link below.

https://github.com/SteveLillis/.NET-Ogg-Vorbis-Encoder[^]


这篇关于如何在C#中将任何音频文件转换为.OGG格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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