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

New Comment on "MP3"

$
0
0
Hello, I am from China, my English is not very good, I think I need your help, and I need some help, I want to change the format of audio files The original audio file format Bit rate 256Kbps The audio sample size 16 Audio sampling level 16KHZ Audio formats PCM Convert to Bit rate 64Kbps The audio sample size 8 Audio sampling level 8KHZ Audio formats CCITT A-Law However, I met some problems, abnormal system prompts the Naudio.MmException AcmNotPossible calling acmStreamOpen I test code is such NAudio.Wave.WaveFormat format = NAudio.Wave.WaveFormat.CreateALawFormat ( 8000, 1); Try { NAudio.Wave.WaveFileReader fileread = new WaveFileReader ( @" E: \ 1.wav" ); NAudio.Wave.WaveStream WaveStream = new WaveFormatConversionStream ( format, fileread ); NAudio.Wave.WaveFileWriter.CreateWaveFile ( @" E: \ 2.wav", WaveStream ); Console.WriteLine (" OK" ); } Catch ( ExecutionEngineException Ex ) { Console.WriteLine ( ex.ToString ( ) ); } Console.ReadKey ( ); Excuse me, what is wrong.

Viewing all articles
Browse latest Browse all 5831

Trending Articles



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