Fuse has robust capabilities when dealing with variables. The title of each module in Fuse represents a variable that is created immediately after that module has executed.

Variable and Javascript Objects

Fuse stores all variables using Javascript. Modules that collect information from a caller create ​a variable ​that is a string primitive. Modules ​that exchange and receive information with other applications can return complex Javascript Objects. Users can access object properties by using standard Javascript dot notation: e.g., ​variable_name.subvariable_name.

Text-to-Speech Variable Types

In the prompt modules, any variables that needs to be presented back to the caller can be set with a specific variable type. Once a variable type of set, an icon will be shown next to the variable to indicate that text-to-speech variable is of a specific type.

There are 5 variable types in our Text-to-Speech engine:

ABS is pronounced as A-B-S instead of the word β€œabs” 12345 is pronounced as 1-2-3-4-5, instead of β€œtwelve thousand three hundred and forty five”

For example, β€œE 123rd St” as β€œEast one hundred twenty-third street”, or β€œBoston, MA” as β€œBoston, Massachusetts”

12.18 is pronounced as β€œTwelve dollars and eighteen cents”

01-01-2019 is pronounced as β€œJanuary first, two thousand eighteen”

10:34 AM is pronounced as β€œTen thirty-four A.M.” Leading zeros are required for hours that are single digits (for example, 08:30 AM)

Text-to-speech engine settings can be found in Language Settings under Application Settings.

Note: while in most cases, the different TTS engines will pronounce variables the same way, they can still differ in some of its interpretation and usage of grammar and conjunctions, especially with non-English languages. It is recommended to test out how each variable types are spoken with your TTS engine selection

Shadow Variables

For advanced users, VoiceXML-based shadow variables exist for Input modules and the REST data module. For more information, please see the Shadow Variables page.

Last updated