Text to speech in ABAP

B. Manoj Kumar

1 . Create a Report say ‘ZTEXT_TO_SPEECH’  of type ‘Executable’.

2 . Write the below code in the report.

INCLUDE ole2incl.

DATA ole   TYPE ole2_object,
TYPE ole2_object,
text   TYPE string.



CALL METHOD OF voice 'Speak' ole
EXPORTING #1 text.         

3 . Save, Activate and Execute it.

When you execute the report, the following warning message is displayed.

4 . From the dropdown menu select ‘Always allow in this context’ and click ‘Ok’.

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image