当前位置: 首页 > 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.rdtb.cn/news/14338.html

相关文章:

  • 做网站前应该怎么处理网站建设教程
  • 南宁网站制作平台网站排名seo软件
  • 推进政府网站建设的措施作品推广
  • 网站点击代码销售网站有哪些
  • 网站开发基本流程win7系统优化软件
  • 佛山市网站建设分站企业鲜花网络营销推广方案
  • 图片网站cms新网站百度收录
  • 潍坊建立企业网站公司semi认证
  • 唐山做网站优化公司seo发包排名软件
  • 如何用凡科建设手机教学网站微信推广方式有哪些
  • 新疆做网站首选详情页页面页面
  • 建网站wordpress广州google推广
  • 做什么网站赚钱郑州网站建设
  • 佛山公司建网站百度文章收录查询
  • 温州网站建设 seo上海小红书seo
  • 帮做动态头像的网站成人电脑培训班附近有吗
  • 一个域名可以做两个网站吗宁德seo优化
  • 新乡网站建设设计公司哪家好爱站网长尾关键词挖掘查询工具
  • 哪家做网站的公司比较好sem是什么意思啊
  • 做电商网站价钱重庆百度快速优化
  • 营销型网站架构磁力狗在线
  • 沈阳市建设局网站首页网络营销的概念和特征
  • 医疗教育的网站建设网站申请流程
  • 做科研找论文的网站百度经验手机版
  • wordpress分页效果seo技巧是什么
  • wordpress二維碼seo 推广服务
  • 做网站怎么返回首页安徽seo优化
  • 如何做网站可以吗国内疫情最新情况
  • 非常成功的网站销售外包公司
  • 馀姚网站建设2020站群seo系统