Share via


Reinitialize VUI form sample

This sample code is written in HTML, JavaScript and CSS; it demonstrates the basic functions on how to reinitialize the VUI form after you've dynamically changed the set of controls on your web page.

Preconditions

In order for the sample and app to work, they must be hosted on a web server; for example, Internet Information System (IIS).

Deployment

  1. Deploy the Dragon Medical SpeechKit package on your web server.

  2. Configure the web server to serve the cookie containing licensing information (organization token and partner GUIDs). For more information, see: Speech-enabling your browser app.

  3. Enable cookies in the web browser; this is necessary for the information from the organization token and partner GUIDs to be accessed.

  4. Enable JavaScript in the web browser.

  5. For on-premises deployment, make sure that the URL for the Nuance.SpeechAnywhere.js file points to your web server. Open the sample in an editor and change the URL https://speechanywhere.nuancehdp.com/3.2/scripts/Nuance.SpeechAnywhere.js to point to the file location on your web server.

    Important: Don't modify this URL when using Dragon Medical SpeechKit hosted in the Nuance data center.

  1. Point the web browser to this location: http://<your web server>/samples/Sample_ReinitializeVUIForm.html

System requirements

For more information on supported software versions, see the corresponding release notes.

Use cases

This sample covers the following use cases:

  • All use cases supported by Dragon Medical SpeechKit out of the box. For more information, see: Overview.

  • To dynamically add fields in the sample, select the Add field button.

Sample characteristics

The sample is composed of <input> and <textarea> elements that are speech-enabled automatically by Dragon Medical SpeechKit. The data-nusa-concept-name attribute has been added to each element to enable field navigation using go to voice commands.

The sample shows how to call the NUSA_reinitializeVuiForm() function when new fields are added, to ensure that they're speech-enabled automatically by Dragon Medical SpeechKit.

Field navigation using next/previous field is possible, but named field navigation is not.