You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using (WaveFileReader reader = new WaveFileReader(inputWav))
var s = new RawSourceWaveStream(new MemoryStream(), new WaveFormat(8000, 16, 1));
using (var conversionStream = new WaveFormatConversionStream(newFormat, reader))
using (var convStream2 = new WaveFormatConversionStream(mulaw, conversionStream))
{
WaveFileWriter.CreateWaveFile(outputWav, convStream2);
// File.WriteAllBytes("voiceprompt_raw.wav", decoded);
}
The text was updated successfully, but these errors were encountered:
what is the format of the input wav file?
What are the values of "newFormat" and "mulaw"?
Try saving a WAV file after the first conversion stage to narrow down where the issue is
using (WaveFileReader reader = new WaveFileReader(inputWav))
var s = new RawSourceWaveStream(new MemoryStream(), new WaveFormat(8000, 16, 1));
using (var conversionStream = new WaveFormatConversionStream(newFormat, reader))
using (var convStream2 = new WaveFormatConversionStream(mulaw, conversionStream))
{
WaveFileWriter.CreateWaveFile(outputWav, convStream2);
// File.WriteAllBytes("voiceprompt_raw.wav", decoded);
}
The text was updated successfully, but these errors were encountered: