Share via


Set the language and topic (Browser)

The language and topic properties are optional.

  • If you don't set the language, Dragon Medical SpeechKit will use the lang attribute of your html page and fall back to en-US if the lang attribute isn't present or supported.
  • If you don't set the speech recognition topic, Dragon Medical SpeechKit will use General Medicine.

Setting the language

You can specify the language to be used for speech recognition. Changing the language property after recording has been started for the first time will only have an effect if the NUSA_reinitializeVuiForm() function is called.

The language of the Dragon Medical SpeechKit GUI is the same as the speech recognition language.

If your web page has the relevant language set using the lang or xml:lang attribute, this setting will be used for speech recognition. If you set a different language for speech recognition, this setting will override the web page setting.

IETF language tags are used. The format is language subtag plus optional region subtag (for example, en-US or en for US English). Other formats aren't supported.

The following languages are supported by the SDK, but their availability depends on your Dragon Medical system and licenses:

  • Catalan (ca)*
  • Danish (da)
  • Dutch (nl)
  • English (en)
  • Finnish (fi)
  • French (fr)
  • German (de)
  • Hungarian (hu)*
  • Italian (it)
  • Norwegian BokmÃ¥l (nb)
  • Norwegian Nynorsk (nn)
  • Portuguese (pt)
  • Slovenian (sl)*
  • Spanish (es)
  • Swedish (sv)

* SpeechMagic-based systems only.

Setting the topic

Based on the medical specialties your users work in, you can specify the topic (medical specialty). Changing the topic property after recording has been started for the first time will only have an effect if the NUSA_reinitializeVuiForm() function is called.

The following topics are supported:

Topic Constant name
General Medicine NUSA_topicGeneralMedicine
Clinical Administration NUSA_topicClinicalAdministration
Cardiology NUSA_topicCardiology
Emergency NUSA_topicEmergency
Internal Medicine NUSA_topicInternalMedicine
Mental Health NUSA_topicMentalHealth
Neurology NUSA_topicNeurology
Orthopaedics NUSA_topicOrthopaedics
Obstetrics and Gynecology NUSA_topicObstetricsAndGynecology
Oncology NUSA_topicOncology
Pathology NUSA_topicPathology
Pediatrics NUSA_topicPediatrics
Surgery NUSA_topicSurgery

Important information

  • If your topic isn't listed above, set NUSA_topic = "myTopic". For more information, please contact Nuance support.
  • User profile adaptation is done separately for each topic; make sure to specify the correct medical specialty for it to work efficiently.
  • Specify the Clinical Administration topic when using general, non-medical language.
  • General Medicine is the default setting; if you don't specify a topic, this topic is used.

Procedure

To set the language and topic, in the NUSA_configure() function, set the NUSA_language and NUSA_topic variables as required.

For example:

function NUSA_configure() {
    NUSA_userId = "pat_smith";
    NUSA_applicationName = "Sample_Basic";
    NUSA_language = "en-US";
    NUSA_topic = NUSA_topicSurgery;
}

For deferred initialization, set the NUSA_language and NUSA_topic variables before calling the NUSA_initialize() function. For more information, see Deferred initialization of Dragon Medical SpeechKit.

Important

These variables must be set before recording is started for the first time.