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.
This sample code is written in HTML, JavaScript and CSS; it demonstrates how deferred correction is used.
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
Proceed as follows:
- Deploy the sample files on your web server.
- 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.
- Enable cookies in the web browser; this is necessary for the information from the organization token and partner GUIDs to be accessed.
- Enable JavaScript in the web browser.
- Open the sample in an editor and change the
Nuance.SpeechAnywhere.jsURL to the international Dragon Medical SpeechKit instance that corresponds to your speech recognition data center. - Point your web browser to the sample HTML on your web server: http://<your web server>/samples/Sample_DeferredCorrection.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.
- How to sign in as a correctionist and use deferred correction.
Sample characteristics
The sample is composed of <input> and <textarea> elements that are speech-enabled automatically by Dragon Medical SpeechKit. The
data-nusa-concept-nameattribute has been added to each element to enable field navigation using go to voice commands.The sample shows how to call the
NUSA_initialize()function with document ID and document token.The sample shows how to set
NUSA_documentModetoNUSA_mode.authororNUSA_mode.correctionist.The sample shows how to get the audio length by calling the
NUSA_getAudioLength()function.The sample shows how to register for the playback started (
NUSA_onPlayingStarted) and stopped (NUSA_onPlayingStopped) events.The sample shows how to call the
NUSA_closeVuiForm()function before changing the user/document mode.