ive got truespeech data which i need to play with naudio.
96 bytes of data is to be played on an interval of 85 ms. how do i accomplish this?
MemoryStream ms = new MemoryStream(Encoding.Default.GetBytes(truepeechdata));
RawSourceWaveStream rws = new RawSourceWaveStream(ms, WaveFormat.CreateMuLawFormat(8000, 1)); WaveFormatConversionStream pcmStream = (WaveFormatConversionStream)WaveFormatConversionStream.CreatePcmStream(rws);
WaveOut wo = new WaveOut(this.Handle);
wo.Init(pcmStream);
wo.Play();
something like this produce a tick sound..