Changes the speech setting to the specified value.
If the return is FALSE and the setting starts with "stt", call Speech_To_Text_Error_Desc to get the reason for the error.
If the return is FALSE and the setting starts with "tts", call Speech_From_Text_Error_Desc to get the reason for the error.
Parameters
Setting |
The name of the setting to change. |
Value |
The new value for the setting. |
Format
Speech_Change_Setting ("Setting", Value)
Return Value
Returns a Boolean. TRUE if the setting is supported and the value is valid for that setting, returns FALSE otherwise.
Example
Script(Speech_Change_Setting_Test)
String( strDescription )
Boolean( bChanged )
Activate( From_Menu )
Comment: Increase the speech-to-text timeout to twenty seconds
bChanged = Speech_Change_Setting("stt_timeout", 20000)
If( bChanged )
Message( "Changed OK", 3 )
Else
strDescription = Speech_To_Text_Error_Desc
Message( String_Combine( "Change Failed: ", strDescription ), 5 )
End_If
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_Get_Setting, Speech_Get_Setting_Max, Speech_Find_Setting_Value, Speech_Get_Setting_Value_Desc, Speech_To_Text_Get_User_Name, Speech_To_Text_Change_User_Name, Speech_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