Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Can WaveFormatConversionStream(WaveFormat targetFormat, WaveStream sourceStream) be used to covert from wav to mp3

$
0
0
markheath wrote:

Yes, you can use NAudio to do most of this. The AudioFileReader class will read the MP3 file. Then use FadeInOutSampleProvider to perform the fade. Then you would convert to WAV file using WaveFileWriter and SampleToWaveProvider16. Finally, you'd need to use something like LAME.exe to re-encode as MP3

Mark

Hi Mark,

Which version of release have the APIs you pointed out? I am reading NAudio v1.5 release. But I couldn't find 

. FadeInOutSampleProvider

SampleToWaveProvider16 (Is it NAudio.Wave.WaveProvider16?)

As both wav and mp3 are from WaveStream, can I use WaveFormatConversionStream to convert wav to mp3? I like to stick to NAudio only if possible.

Thanks!

Valimo


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>