更改音频格式在C# [英] Change Audio Format in C#

查看:182
本文介绍了更改音频格式在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想改变的音频文件格式转换成另一种。具体而言,我想转换任何音频文件转换成6kHz的,16位,单声道的PCM WAV格式。

I want to change an audio file format into another. Specifically, I want to convert any audio file into 6khz, 16 bit, mono, PCM wav format.

我怎样才能解决这个问题。

How can I cope with this problem.

再次感谢提前。

推荐答案

您也可以使用开源的C#音频库的 n音讯。看一看在NAudioDemo项目,通过安装在计算机上的ACM codeCS传递WAV文件转换为另一种格式的一个例子。如果你的输入文件不是WAV或MP3,你首先需要的东西,将其转换为WAV虽然。

You can also do this using the open source C# audio library NAudio. Have a look at the NAudioDemo project for an example of passing WAV files through the ACM codecs installed on your machine to convert to another format. If your input file is not WAV or MP3, you will first need something that converts it to WAV though.

这篇关于更改音频格式在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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