Creating a WAV file with an arbitrary bits per sample value?
<p>Do <em>WAV</em> files allow any arbitrary number of <code>bitsPerSample</code>?</p>

<p>I have failed to get it to work with anything less than 8. I am not sure how to define the <code>blockAlign</code> for one thing.</p>

<pre><code>Dim ss As New Speech.Synthesis.SpeechSynthesizer
Dim info As New Speech.AudioFormat.SpeechAudioFormatInfo(AudioFormat.EncodingFormat.Pcm, 5000, 4, 1, 2500, 1, Nothing) ' FAILS
ss.SetOutputToWaveFile("TEST4bit.wav", info)
ss.Speak("I am 4 bit.")
My.Computer.Audio.Play("TEST4bit.wav")
</code></pre>