Using the SetOutputToWaveFile method in the SpeechSynthesizer class, I included a SpeechAudioFormatInfo class with these parameters
new SpeechAudioFormatInfo(EncodingFormat.Pcm, 10000, 16, 1, 16000, 2, null);
My intent is to get the output to be 10kHz signed 16-bit little endian headerless raw mono PCM, and am now trying to understand how to harness NAudio to do that. I tried to base code on change wav file ( to 16KHz and 8bit ) with using NAudio with WaveFormat and WaveConversionStream but am not getting the output I need. Can anyone refer me to working sample code?
Thanks.