TextToSpeech procedure

Official Content
This documentation is valid for:

Converts a plain text into an audio stream.



The following table resumes the configuration properties (access credentials) you must set in order to use this AI task.

Property   Amazon WS Baidu AI  Google Cloud AI IBM Watson  Microsoft Azure  SAP Leonardo Tencent AI
Id - 百度语音 - - - - 音合成
Key Transcribe 百度语音 Cloud Speech API TextToSpeech API  Speech API or
Bing Speech API
(backward compatible)
- 音合成
SecretKey Transcribe 百度语音 - - - - -
Username - - - TextToSpeech API  - - -
Password - - - TextToSpeech API - - -


Taking the following plain text, the table below shows the synthesis made for each provider and the time it takes for processing it.

"The first question that comes up is: What is GeneXus? GeneXus is a tool that automatically generates software programs such as applications for the Web, and Smart Devices, always at the forefront of technological evolution."
Provider Output Benchmark
Amazon WS

Baidu AI

Google Cloud AI

IBM Watson

Microsoft Azure 

SAP Leonardo N/A N/A
Tencent AI


The &Text input parameter also admits SSML inner nodes (excluding <speak> root) for formatting pronunciation, intonation, etc. For example:

"<emphasis level='strong'>GeneXus<emphasis> is a tool that <prosody pinth='high'>automatically generates software programs</prosody> such as applications for the Web, and <sub alias='Smart Devices'>SD</sub>, with over <say-as interpret-as='cardinal'>30</say-as> years of experience."

Giving the following result:


  • For SSML input, not all of the elements and options of W3 SSML specification are currently supported on every provider. GeneXusAI specifically does not allow the  <voice> tag, it must be set in the &voiceType input parameter.
  • For Google Cloud AI, when you enable Speech Cloud API to use this task, you must select 'Standard Voices' option.
  • Tencent AI and Baidu AI providers only allow Chinese or English (or mixed) text input.
  • Microsoft's Bing Speech API will be deprecated and its credentials must be updated to Speech API before October 2019.


Platforms  Web(.NET,.NETCore,Java), SmartDevices(Android,iOS)
Connectivity  Online


This procedure is available as of GeneXus 16.

See also

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.