Brekeke PBX Wiki

Google Cloud Text to Speech

Available in Brekeke PBX v 3.9.2.7 or later:

 

Configuration

To apply the function on the PBX level, set the following properties at PBX > Options > Advanced.

tts_g.apiKey
tts_g.languageCode
tts_g.name
tts_g.ssmlGender
tts_g.pitch
tts_g.speakingRate
tts_g.inputType

For details of the above properties, refer to the Google Cloud website:
https://cloud.google.com/text-to-speech/docs/reference/rest/v1/text/synthesize.

For tenant level settings (Multi-Tenant Edition), add properties like below to add the fields in the each Tenant settings page.

tenant.template.common._config.2010=,Text-to-Speech settings,section,
tenant.template.common._config.2011=tts_g.apiKey,Google Cloud TTS API Key,text,,

 

Usages

You can specify {tts_g:<text>} and {tts_g_prop:<key>=<value>[,<key>=<value>…]} in a playlist for IVR flow/script or [Whisper/DTMF] or [Confirm] field in ARS.

 

Example

{tts_g:I have a pen. I have a lemon.}{tts_g_prop:ssmlGender=FEMALE}{tts_g:Lemon-pen.}
Yes No
Suggest Edit