tags:

views:

104

answers:

1

I have a WAV file in bytes array form. I need to convert those bytes to an mp3 file using C# .NET.

how could I accomplish that ?

P.S: I need to be able to use bytes array instead of files.

+1  A: 

You may take a look at this article on CodeProject.

Darin Dimitrov
I used it and I keep getting an exception : "Invalid Wave File or Format"
Attilah
Have you tried with different `WAV` input files?
Darin Dimitrov
actually, the WAV input files I'm using are generated by the SpeechSynthesizer of .NET 3.0. so, I guess all the WAV files generated by the SpeechSynthesizer should be fairly similar in format, thus wouldn't work. am I missing something ?
Attilah