Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1475556
  • 博文数量: 931
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 10198
  • 用 户 组: 普通用户
  • 注册时间: 2011-07-08 12:28
个人简介

测试

文章分类

全部博文(931)

文章存档

2020年(134)

2019年(792)

2018年(5)

我的朋友

分类: 架构设计与优化

2019-04-13 10:08:40

report z. INCLUDE ole2incl.

DATA: ole   TYPE ole2_object,

      voice TYPE ole2_object,

      text  TYPE string.

text = 'With the advent of ES6 (referred to as ES2015 from here on), which not only made promises native to the language without requiring one of the countless available libraries,' && 'we also got generators. Generators have the ability to pause execution' && 'within a function, which means that by wrapping them in a utility function, ' && 'we have the ability to wait for an asynchronous operation to finish before' && ' moving on to the next line of code. Suddenly your asynchronous code could' && ' start to look synchronous!'.

DATA: it_tline TYPE STANDARD TABLE OF tline.

CREATE OBJECT voice 'SAPI.SpVoice'.

CALL METHOD OF voice 'Speak' = ole

   EXPORTING #1 = text. * 

用的也是很老的OLE技术:

report代码直接call的MS的sound engine,通过sapi.dll暴露出来,

这个report只是call了dll里其中一个speak方法:


要获取更多Jerry的原创技术文章,请关注公众号"汪子熙"或者扫描下面二维码:

阅读(274) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~