title: I want change wav file 16 kHz 16 bit to 8 kHz 16 bit mono C# NAudio
body: <p>Code not working, please check out and sey me what i wrong writing?! please help.</p>
  
  <pre><code>            openFileDialog openFileDialog = new openFileDialog();
  
              openFileDialog.Filter = ("Wave Files (*.wav)|*.wav|All Files (*.*)|*.*");
  
              openFileDialog.FilterIndex = 1;
  
  
              WaveFileReader reader = new NAudio.Wave.WaveFileReader(dpmFileDestPath);
  
              WaveFormat newFormat = new WaveFormat(8000, 16, 1);
  
              WaveFormatConversionStream str = new WaveFormatConversionStream(newFormat, reader);
  
              try
              {
                  WaveFileWriter.CreateWaveFile("C:\\Konvertierten_Dateien.wav", str);
              }
              catch (Exception ex)
              {
                  MessageBox.Show(String.Format("{0}", ex.Message));
              }
              finally
              {
                  str.Close();
              }
              MessageBox.Show("Konvertieren ist Fertig!");
          }
  </code></pre>
  
  <p>this is a code and not working.</p>