Creating Dragon speaker profiles

Last reviewed: 12/15/2011

HOW Article ID: H121104

The information in this article applies to:

  • ProfileKit 4

Summary

Dragon NatuallySpeaking has built-in User Management dialogs that provide profile management for creating and training speaker profiles. If you want to integrate profile management within your application, your application can create the profile and launch the training wizards directly.

More Information

There are two ways to create a speaker profile with Dragon:

  1. launch the Dragon User Management Dialogs or
  2. set the CSPSpeaker property.

The following illustrates launching the Dragon User Management dialog from your application:

// Instantiate ChantPM object
NChantPM1 = new NChantPM();

// Set Dragon as the engine
NChantPM1.SetNumberProperty(ChantNumberProperty.CNPEngineAPI, (int)ChantEngineAPI.CEDGN4SR);

// Launch the dialog
NChantPM1.ShowDialog(ChantDialog.CDManageUsers, this.Handle, "", "");

To create a speaker profile programmatically, you need to do the following:

  • Create the speaker profile by setting the CSPSpeaker property
  • Launch the microphone training wizard to calibrate the microphone
  • Launch the speaker training wizard to perform speaker training
// Instantiate ChantPM object
NChantPM1 = new NChantPM();

// Set the engine API or enumerate and select specific engine
NChantPM1.SetNumberProperty(ChantNumberProperty.CNPEngineAPI, (int)ChantEngineAPI.CEDGN4SR);

// Create new speaker
NChantPM1.SetStringProperty(ChantStringProperty.CSPSpeaker, "New Speaker");

// Launch the mic training wizard
NChantPM1.ShowDialog(ChantDialog.CDMicTraining, this.Handle, "", "");

// Launch the user training wizard
NChantPM1.ShowDialog(ChantDialog.CDUserTraining, this.Handle, "", "");

Optionally, the application may enumerate and set the Dragon topic (CSPTopic) and dictation source (CSPDictationSource) before creating the new speaker by setting the CSPSpeaker property. See ProfileKit 4 help file for examples illustrating enumerating CSRDictationTopic and CSRDictationSource resources.