SAP 播放语言 转载自http://www.cnblogs.com/sapSB/p/6043129.html

REPORT ZLYTEST001.


INCLUDE OLE2INCL.
DATA: OLE   TYPE OLE2_OBJECT,
      VOICE TYPE OLE2_OBJECT,
      TEXT  TYPE STRING.
TEXT = 'I love You'.

DATA: IT_TLINE TYPE STANDARD TABLE OF TLINE WITH HEADER LINE.

CREATE OBJECT VOICE 'SAPI.SpVoice'.

SET PROPERTY OF VOICE 'Volume' = 100."音量0 -100

SET PROPERTY OF VOICE 'Rate' = 1."速度 -10 - 10

CALL METHOD OF VOICE 'Speak' = OLE"读
EXPORTING #1 = TEXT.

FREE OBJECT VOICE.

posted @ 2018-06-09 10:23  追寻无限  阅读(112)  评论(0编辑  收藏  举报