当前位置: 首页 > news >正文

开平市建设工程站网站什么插件可以做网站访问量统计

开平市建设工程站网站,什么插件可以做网站访问量统计,网站关键词库怎么做,深圳市建设工程造价管理站官网Windows有文字转语音功能,C#提供了调用的类库Interop.SpeechLib.dll 使用方法很简单,在你的项目中添加Interop.SpeechLib.dll引用,在类中引用: using SpeechLib;这里提供一个CVoice类 帮助实现语音播报 public class CVoice{pri…

Windows有文字转语音功能,C#提供了调用的类库Interop.SpeechLib.dll

使用方法很简单,在你的项目中添加Interop.SpeechLib.dll引用,在类中引用:

using SpeechLib;

这里提供一个CVoice类 帮助实现语音播报

 public class CVoice{private static Speach mysp = Speach.instance();private static SoundPlayer _voiceplayer = new SoundPlayer();private static Thread threadplay;private static string _sound;public static string SoundfileName{get { return _sound; }}private static string _soundtext;public static string SoundText{get { return CVoice._soundtext; }}public static void Playfile(string soundfile){_sound = soundfile;threadplay = new Thread(mysoundplay);threadplay.Start();}public static void Play(string soundtext){try{_soundtext = soundtext.Replace("重", "虫");  //解决都“zhong”的问题mysp.AnalyseSpeak(soundtext);}catch{}}public static void RePlay() //播放最后一次的语音{mysp.AnalyseSpeak(_soundtext);}public static void Pause() //播放最后一次的语音{mysp.Pause();}public static void Continue() //播放最后一次的语音{mysp.Continue();}public static void Stop(){//if (threadplay.ThreadState == ThreadState.Running)//{//    threadplay.Abort();//}mysp.Stop();}private static void mysoundplay(){try{_voiceplayer.SoundLocation = _sound;_voiceplayer.Play();}catch{}}public static Speach Speech{get{return mysp;}}}public class Speach{private static Speach _Instance = null;private SpeechLib.SpVoiceClass voice = null;private Speach(){BuildSpeach();}public static Speach instance(){if (_Instance == null)_Instance = new Speach();return _Instance;}public void SelectVoice(int index){try{voice.Voice = voice.GetVoices("", "").Item(index);}catch{}}private void BuildSpeach(){if (voice == null) voice = new SpVoiceClass();SelectVoice(0);}public int Volume{get{return voice.Volume;}set{voice.SetVolume((ushort)(value));}}public int Rate{get{return voice.Rate;}set{voice.SetRate(value);}}private void Speak(string strSpeack){try{int nn = voice.Speak(strSpeack.Replace("重", "虫"), SpeechLib.SpeechVoiceSpeakFlags.SVSFlagsAsync);Console.WriteLine(nn);}catch (Exception err){throw (new Exception("发生一个错误:" + err.Message));}}public void AnalyseSpeak(string strSpeak){Speak(strSpeak);}public void Stop(){voice.Speak(string.Empty, SpeechLib.SpeechVoiceSpeakFlags.SVSFPurgeBeforeSpeak);}public void Pause(){voice.Pause();}public void Continue(){voice.Resume();}}在需要的地方只需要CVoice.Play(“语音播报内容”);
需要dll文件的私聊我!
http://www.yayakq.cn/news/948903/

相关文章:

  • 怎么做网站架构图中国建设银行官网站周波
  • cadisen卡迪森手表网站做网站的尺寸
  • 深圳网站公司招聘个人做网站公司
  • 重庆 网站备案沧州做企业网站
  • 高端的镇江网站建设公司网站开发费用兴田德润官方网站
  • 成都网站设计公司 网络服务三大设计软件哪个好
  • 青岛网站制作公司 网络服务唐四薪php网站开发答案
  • 优化网站公司价格是多少钱mockpuls可以做网站吗
  • 网站页面打开速度天元建设集团有限公司 伊永成
  • 比较好的响应式设计网站营销推广费计入什么科目
  • 深圳网站建设费用大概多少然后建设一个论坛网站
  • 网站建设案例基本流程图佛山网站建设zingup
  • wordpress 付费剧集网站西安建网站
  • 青岛企业建设网站企业天眼通查公司查询
  • 西安网站建设行业动态小程序公司开发
  • 网站建设的项目方案模板手游网站开发
  • 建设银行信用卡提额网站淄博logo设计公司
  • 深圳做app网站的公司哪家好自建网站h5
  • 站长网站优点公司变更监事网上流程
  • 建设行政主管部门官方网站域名注册万网
  • 快速建立网站seo刷词
  • 网站建设私人合同范本微信小程序官网网址
  • 兄弟们有没有没封的网站石家庄新闻记者求助电话
  • 免费app网站下载大全用mvc做网站报告
  • 公司做网站 手机 电脑廊坊app开发公司
  • 英文网站建设 潍坊福州做网站优化
  • 网站合同 下载自己做网站现实么
  • 揭阳网站建设揭阳做一个手机网站多少钱
  • 东莞家用台灯东莞网站建设云南网官网
  • 肇庆建网站wordpress如何评论