SUI_GetSpoken2 Table of Contents || Prev | Next || [?]

 
SUI_GetSpoken2 (index) --> spokenText
 
ParameterTypeDescription
indexLongint0 = entire phrase; n = index of embedded language model
 
ReturnsTypeDescription
spokenTextTextResponse in a normalized format, if available
 
Description

For certain language models, such as dates, times and numbers, an alternative format of an utterance can be returned, rather than the literal response. This is known as "normalization".

Example

Certain language models, such as <Date> and <Time>, would be difficult (if not impossible) to work with if all you could get was the literal response. SUI_GetSpoken always returns the literal response, such as "eight thirty in the evening" for a spoken Time. By calling SUI_GetSpoken2, this would be returned as "20:30:00".