Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Audio Conversion using C#.Net [closed]

I want to build a simple Audio Converter (between major file formats) using C#.NET, so I need to know the basic steps to do so.

Thanks.

like image 992
Al-Moatasem Bellah Daaboos Avatar asked May 23 '26 18:05

Al-Moatasem Bellah Daaboos


1 Answers

Step 1: find a good third-party component(s) that do(es) conversion between file formats.

Step 2: use this component in your app.

If your intent is to write all the raw conversion code yourself, get ready for some pain. The WAV file format (aka Linear PCM) is easy enough to deal with, as long as the file is just a header plus the sample data. Often, however, WAV files are a lot more complicated than this and require much more elaborate code to locate the various RIFF chunks and parse the file.

And that's just for a very straightforward file format that (usually) does not do any encoding of any sort. The MP3 format is vastly more complex, and requires a good knowledge of FFT (Fast Fourier Transform) and the like.

Update: Alvas.Audio is one third-party C# component that may do what you need. NAudio is another.

like image 122
MusiGenesis Avatar answered May 25 '26 11:05

MusiGenesis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!