IT干货网

ABAP-语音输出

shasha 2022年03月09日 SAP 278 0
REPORT  ZRICO_SPEAK. 
  
include ole2incl. 
  
data:ole type ole2_object, 
     voice type ole2_object. 
  
parameters:p_text type string. 
  
start-of-selection. 
  
create object voice 'SAPI.SpVoice'. 
  
call method of voice 'Speak' = ole 
  
exporting #1 = p_text. 

评论关闭
IT干货网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!