<Speak> element reads the text as speech to the caller. It is very useful for dynamic text that cannot be pre-recorded.
<Speak> element supports the following attributes that modify its behavior:
|Attribute Name||Allowed Values||Default Value|
||cepstral, flite, tts_commandline||flite|
||Check corresponding values for each engine. E.g. For flite: slt, rms, awb, kal||slt|
||As allowed by the engine||en|
||integer >= 0 (0 indicates a continuous loop.)||1|
||NUMBER, ITEMS, PERSONS, MESSAGES, CURRENCY, TIME_MEASUREMENT, CURRENT_DATE, CURRENT_TIME, CURRENT_DATE_TIME, TELEPHONE_NUMBER, TELEPHONE_EXTENSION, URL, IP_ADDRESS, EMAIL_ADDRESS, POSTAL_ADDRESS, ACCOUNT_NUMBER, NAME_SPELLED, NAME_PHONETIC, SHORT_DATE_TIME (Refer this)||none|
||PRONOUNCED, ITERATED, COUNTED (Refer this)||none|
When a call is directed to the following RESTXML document, the caller will hear “Hi this is Plivo. I work on FreeSWITCH.” spoken once.
1 2 3 4
<?xml version="1.0" encoding="UTF-8" ?> <Response> <Speak>Hi this is Plivo. I work on FreeSWITCH.</Speak> </Response>
This RESTXML document tells Plivo to say “Hey” thrice in a row.
1 2 3 4
<?xml version="1.0" encoding="UTF-8" ?> <Response> <Speak loop="3">Hey</Speak> </Response>