<Say>
Use a Text-To-Speech Engine in Calls
Overview
Pivot will use a TTS engine to say text in the body of the term.
To use <Say>
, the 2600Hz account must have a TTS engine configured. Currently, 2600Hz supports
iSpeech, Flite, Google TTS, and, Voice Fabric. To add iSpeech to a 2600Hz account, follow
Add iSpeech TTS tutorial.
2600Hz ships with Flite configured for use out of the box, though individual installations may be
configured differently.
Attributes
Name | Values Description | Default value |
---|---|---|
loop | any positive integer including zero | 1 |
terminators | any dtmf characters | 0123456789*# |
language | any language supported by the TTS engine | account default or en-us |
voice | any voices supported by the TTS engine, usually male or `female | account default TTS voice or male |
engine | any engine configured in the 2600Hz account | account default |
loop
Specifies how may times the body text is said to the user. By default the text will
play once. A value of 0
will loop the text indefinitely until either one party disconnects
or the term otherwise completes from a terminator
.
terminator
When pressed, this key stops playback. <Record>
will then complete. By default, any DTMF
character will halt playback.
language
Check the TTS engine for available languages.
If unspecified, Pivot will use to the default TTS language for the 2600Hz account. If no account
default is configured, Pivot defaults to en-us
.
voice
Check the TTS engine for available voices, most support male
and female
.
If unspecified, Pivot will use to the default voice
for the 2600Hz account. If no account
default is configured, Pivot defaults to male
.
engine
Select from configured TTS engines available to the 2600Hz account. Each <Say>
term can use
a different engine, if desired.
Nesting
Can be nested under <Gather>
to play TTS until the caller provides the first
DTMF.
Terms cannot be nested within <Say>
.