Speech_Find_Setting_Value

Searches all possible value descriptions for the speech setting.

Parameters

Setting

The name of the setting to search.

Value Description

The value description to match.

Exact Only

Indicates whether only an exact match is returned.

Format

Speech_Find_Setting_Value ("Setting", Value Description, Exactly Only)

Return Value

Returns the value of the setting that is the closest match. If \"Exact Only\" is TRUE, then only exact matches are returned. Returns -1 if no match is found.

Example

Script(Speech_Find_Setting_Value_Test)
String(strMessage)
Number(nLanguage)
Activate(From_Menu)
nLanguage = Speech_Find_Setting_Value("stt_language", "enu", FALSE)
strMessage = String_Combine("stt_language match for enu:", Number_To_String_Decimal(nLanguage))
Message(strMessage, 5)
Return

See Also

Speech_From_Text_Available, Speech_From_Text, Speech_To_Text_Available, Speech_To_Text, Speech_To_Text_No_Wait, Speech_To_Text_Cancel, Speech_Setting_Available, Speech_Change_Setting, Speech_Get_Setting, Speech_Get_Setting_Max, Speech_Get_Setting_Value_Desc, Speech_To_Text_Get_User_Name, Speech_To_Text_Change_User_NameSpeech_From_Text_Error_Desc, Speech_To_Text_Error_Desc, Speech_From_Text_Cancel

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal