Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: truespeech decompress with naudio

$
0
0

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..


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>