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

 
SUI_GetSpokenByName (arrayName) --> spokenText
 
ParameterTypeDescription
arrayNameStringName of the process string array
 
ReturnsTypeDescription
spokenTextTextThe literal text as spoken
 
Description

You can obtain an embedded model's spoken value by passing the name of the array used, rather than the index number (as you would using SUI_GetSpoken(n)). For example, you create a model where the grammar parts are offered in various combinations:

SUI_AddGroupCommand (30;"<aGender><aColor><aSize>";1)
SUI_AddGroupCommand (30;"<aColor><aSize><aGender>";1)
SUI_AddGroupCommand (30;"<aSize><aGender><aColor>";1)

You can now get the spoken values this way:

$tGender:=SUI_GetSpokenByName ("aGender")
$tColor:=SUI_GetSpokenByName ("aColor")
$tSize:=SUI_GetSpokenByName ("aSize")