首页 开发技术 Delphi     /    Delphi中英文语音朗读程序(含控件及源码)调试OK

Delphi中英文语音朗读程序(含控件及源码)调试OK

上传者: lcwell | 上传时间:2024/5/6 10:08:08 | 文件大小:348KB | 文件类型:rar
Delphi中英文语音朗读程序(含控件及源码)调试OK
Delphi中英文语音朗读程序(控件及源码)调试OK先安装MicrosoftSpeechSDK5.1,这是微软的声音支持控件前面安装不多做介绍,一步一步安装即可安装完成后,需要加载Delphi控件在DelphiIDE中选择菜单Project,ImportTypeLibrary—点击按钮Add(C:\ProgramFiles\CommonFiles\MicrosoftShared\Speech\sapi.dll)—点击按钮Install-在Install对话框中点击按钮OK—在Confirm对话框中点击按钮Yes—在对话框中点击按钮OK。
至此,共19个控件被添加到Delphi组件板ActiveX页上。
其中spvoice控件是我们要使用的MicrosoftSpeechSDK5.1下载地址:http://intraweb.5d6d.com/thread-280-1-1.htmlSpVoice详解属性描述AlertBoundary取得或设置停顿分界线。
AllowAudioOutputFormatChangesOnNextSet设置是否允许声音自动调整到合适状态以适应其音频输出。
AudioOutput.取得或设置当前声音使用的的音频输出对象AudioOutputStream取得或设置当前声音使用的的音频输出流对象。
EventInterests取得或设置当前声音返回的事件类型。
Priority取得或设置声音的优先级。
Rate取得或设置阅读的速度。
Status返回一个ISpeechVoiceStatus对象用于显示当前阅读和事件的状态SynchronousSpeakTimeout取得或设置一个时间间隔,用于标识多久未获得一个输出设备后,一个同步的Speak和SpeakStream将终止,以毫秒计算。
Voice取得或设置发音对象。
Volume取得或设置声音的大小。
方法描述DisplayUI是否在控制面板中展示详细设置。
GetAudioOutputs返回一个可用的音频输出标记。
GetVoices返回一个可用的发音对象。
IsUISupported决定是否能通过控制棉板的音频设置来控制。
Pause暂停朗读。
.Resume恢复暂停,继续播放。
Skip在当前输入的文本流中向前或向后跳一定距离再播放。
Speak阅读一个字符串。
SpeakCompleteEvent得到一个朗读完毕的时间句柄SpeakStream朗读一个文本流或一个声音文件。
WaitUntilDone阻塞进程,直到声音播放完毕或者超时。

文件下载

资源详情

[{"title":"(27个子文件348KB)Delphi中英文语音朗读程序(含控件及源码)调试OK","children":[{"title":"codefans.net","children":[{"title":"读者语音源码","children":[{"title":"Project1.dof <span style='color:#111;'>1.45KB</span>","children":null,"spread":false},{"title":"xpmenu","children":[{"title":"xpmenu","children":[{"title":"XPMenu.dcu <span style='color:#111;'>55.97KB</span>","children":null,"spread":false},{"title":"XPMenu.pas <span style='color:#111;'>124.21KB</span>","children":null,"spread":false},{"title":"xpexample.zip <span style='color:#111;'>11.43KB</span>","children":null,"spread":false},{"title":"TXPMENU.bmp <span style='color:#111;'>1.62KB</span>","children":null,"spread":false},{"title":"xpmenu3b.zip <span style='color:#111;'>68.69KB</span>","children":null,"spread":false},{"title":"XPMenu.dcr <span style='color:#111;'>468B</span>","children":null,"spread":false},{"title":"ReadMe","children":[{"title":"xpmenu.gif <span style='color:#111;'>15.14KB</span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'>16.00KB</span>","children":null,"spread":false},{"title":"xpm2.gif <span style='color:#111;'>14.05KB</span>","children":null,"spread":false},{"title":"ReadMe.html <span style='color:#111;'>14.95KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Unit1.dcu <span style='color:#111;'>40.14KB</span>","children":null,"spread":false},{"title":"Unit1.dfm <span style='color:#111;'>18.46KB</span>","children":null,"spread":false},{"title":"Project1.cfg <span style='color:#111;'>374B</span>","children":null,"spread":false},{"title":"Project1.dpr <span style='color:#111;'>226B</span>","children":null,"spread":false},{"title":"Unit1.pas <span style='color:#111;'>31.06KB</span>","children":null,"spread":false},{"title":"Project1.res <span style='color:#111;'>876B</span>","children":null,"spread":false},{"title":"VOLUME","children":[{"title":"Volumes.dcr <span style='color:#111;'>484B</span>","children":null,"spread":false},{"title":"Volumes.dcu <span style='color:#111;'>5.07KB</span>","children":null,"spread":false},{"title":"TVolume.dcu <span style='color:#111;'>1.57KB</span>","children":null,"spread":false},{"title":"TVolume.dpl <span style='color:#111;'>663.83KB</span>","children":null,"spread":false},{"title":"TVolume.res <span style='color:#111;'>692B</span>","children":null,"spread":false},{"title":"Readme.Txt <span style='color:#111;'>930B</span>","children":null,"spread":false},{"title":"TVolume.dcp <span style='color:#111;'>6.55KB</span>","children":null,"spread":false},{"title":"TVolume.dpk <span style='color:#111;'>555B</span>","children":null,"spread":false},{"title":"Volumes.pas <span style='color:#111;'>6.10KB</span>","children":null,"spread":false}],"spread":true},{"title":"Unit1.ddp <span style='color:#111;'>51B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • icewolf13:
    谢谢分享先学下下2020-07-13
  • 小宇飞刀:
    实现的不错!2019-10-20
  • SxinBoss:
    还可以,能用,不过声音有点奇怪。。。2019-07-16
  • bingyandong:
    有参考价值,能解决基本的应用2018-11-26
  • richard_526:
    非常感谢,值得参考2018-05-19

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明