stt_threshold

Indicates the minimum amount of confidence for the most-likely result that will be accepted.

If the confidence is less than the set value, the result will be discarded and the speech‑to-text action will report that it failed.

You may want to use different values for different grammars.

Possible Values

0-10000.

The default value is 5000.

Example

Script(Speech_To_Text_Setting_Threshold)
String(strSetting)
String(strDescription)
String(strMessage)
Number(nSettingValue)
Activate(From_Menu)
strSetting = "stt_threshold"
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_expanded, 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

Privacy and Legal