我想向扬声器发送字符串字节,如下所示:
byte[] bt = {12,32,43,74,23,53,24,54,234,253,153};// example array
var ms = new MemoryStream(bt);
var sound = new System.Media.SoundPlayer();
sound.Stream = ms;
sound.Play();
但我得到了这个例外: 我的问题图片 http://8pic.ir/images/g699b52xe5ap9s8yf0pz.jpg