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

 
SUI_GetSpoken --> spokenText
 
 
ReturnsTypeDescription
spokenTextTextThe literal text as spoken
 
Description

SUI_GetSpoken returns the literal text spoken by the user, which is limited to valid phrases in the current language model.

If a 0 is passed as the index, then the entire phrase is returned. If a number higher than 0 is passed, only the text of the embedded language model will be returned.

Example

Given a response to the language model:
"My favorite colors are <aColor> and <aColor>"

If the response was "My favorite colors are red and blue" then

$text:=SUI_GetSpoken (0) `returns "My favorite colors are red and blue"
$txt1:=SUI_GetSpoken (1) `returns "red"
$txt2:=SUI_GetSpoken (2) `returns "blue"