Returns the confidence value along with the speech-to-text result.
There may be more than one result returned; however, the first result is the one with the highest confidence value. You can use this information to determine the appropriate stt_threshold and stt_confidence values.
Possible Values
1 | enabled |
0 | disabled |
The default value is 0 (disabled).
Return Value
If this setting is 1, speech-to-text actions return a string with the top two speech-to-text results and their confidence values.
Example
Script(Speech_To_Text_Setting_Expanded)
String(strSetting)
String(strDescription)
String(strMessage)
Number(nSettingValue)
Activate(From_Menu)
strSetting = "stt_expanded"
nSettingValue = Speech_Get_Setting(strSetting)
strDescription = Speech_Get_Setting_Value_Desc(strSetting, nSettingValue)
strMessage = String_Combine(strDescription, "; setting value:")
strMessage = String_Combine(strMessage, Number_To_String_Decimal(nSettingValue))
Ask_OK(strMessage, strSetting)
Return
See Also
stt_confidence, stt_threshold, Speech_Get_Setting, Speech_Get_Setting_Value_Desc, Speech_Get_Setting_Max, Speech_Find_Setting_Value, Speech_To_Text, Speech_From_Text, Speech_Setting_Available, Speech_Change_Setting
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other