Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Dynamically changing text controls on the GUI
If you dynamically change the set of controls on the GUI (for example, your app adds/removes or enables/disables specific text fields depending on the user’s actions), you must synchronize the VUI to recognize these changes.
Procedure
- Add/remove all controls on the GUI.
- Call
Synchronize()on the GUI form's VuiController.
Note
This operation can be expensive, therefore it's recommended to first add/remove all controls and only then call Synchronize() instead of calling it immediately after each individual change.
Excluding text controls from speech recognition
If a GUI form in your app displays text controls that you want to exclude from speech recognition, do the following:
- For a text control call
EnableControl(object control, bool enable)on the VuiController and set theenableparameter tofalse.
You can either call this method before you call Open() on the VuiController or, if the VuiController was already initialized, call Synchronize() afterwards to apply the changes.
The text control is excluded from speech recognition; this means that users of your app can't record into this text control and the GUI control can't be reached via voice navigation.
Note
If you set text controls to be disabled, hidden or read-only, these won't be speech-enabled by default. Password field text controls aren't speech-enabled by default.
Speech-enabling read-only/password text controls
Prerequisites
You've created and speech-enabled a GUI form.
You've set text controls to be read-only or added password fields; these aren't speech-enabled by default.
Procedure
If a GUI form in your app displays text controls that are read-only or password fields, and you want to speech-enable those GUI text controls, do the following:
- Call
EnableControl(object control, bool enable)and set the parameterenabletotrueon the VuiController.
You can either call this method before you call Open() on the VuiController or, if the VuiController was already initialized, call Synchronize() afterwards to apply the changes.
The text control is now speech-enabled. This means that users of your app can record into this text control and the GUI control can be reached via voice navigation.
Important
Speech recognition isn't possible in hidden or disabled text controls, even if they're explicitly enabled via the EnableControl(object control, bool enable) method.