How do I manage profiles with VoCon 3200 V4?
Last reviewed: 7/15/2011
HOW Article ID: H071121
The information in this article applies to:
- ProfileKit 4
Summary
ProfileKit 4 provides support for VoCon 3200 V4 that simplifies the process of developing training sessions for speaker adaptation.
More Information
Chant ProfileKit 4 provides support for training of VoCon 3200 V4 speaker profiles.
Once training session data is persisted, it can be used during recognition to help improve matching accuracy.
A training session is an interactive session with VoCon where the end-user is prompted to speak phrases. Information is retained by VoCon about the session to use with subsequent recognition sessions.
ProfileKit simplifies the process of running a training session with VoCon and saving the data to a .spa file. This file is set as the CSPSpeaker property on SpeechKit ChantSR recognition object sessions with VoCon.
private Chant.ProfileKit.NChantPM NChantPM1;
// Instantiate NChantPM object
NChantPM1 = new NChantPM(this);
//NChantPM1.SetStringProperty(ChantStringProperty.CSPLicense, "LicenseRegistrationNumber");
//NChantPM1.SetStringProperty(ChantStringProperty.CSPSerials, "LicenseSerialNumber");
NChantPM1.SetNumberProperty(ChantNumberProperty.CNPEngineAPI, (int)ChantEngineAPI.CEVoCon4);
NChantPM1.SetStringProperty(ChantStringProperty.CSPEnginePath, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\bin\\winx86rls");
// Set the acoustic model
NChantPM1.SetStringProperty(ChantStringProperty.CSPAcousticModel, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat");
// Set either the common linguistic component or data driven G2P model files
NChantPM1.SetStringProperty(ChantStringProperty.CSPCLCModel, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\clc_enu_cfg3_v1_0_7.dat");
// Set the current speaker
NChantPM1.SetStringProperty(ChantStringProperty.CSPSpeaker, "DefaultSpeaker");
// Example 1
// Training the speaker with ProfileKit grammar training
NChantPM1.SetTrainingProperty(ChantTrainingProperty.CTPTrainingPhraseText, "red\nblue\norange\ngreen\npurple\nyellow\nbrown\n");
// Start training with dialog hidden
NChantPM1.StartTraining("", 0, ChantRecordingObject.CROMultiMedia, ChantAudioFormat.CAFDefault, false);
// Example 2
// Training the speaker with ProfileKit using a grammar file
NChantPM1.SetTrainingProperty(ChantTrainingProperty.CTPTrainingGrammarVocab, "colors.bnf");
// Start training with dialog hidden using pre-recorded audio file
NChantPM1.StartTraining("mytraining.wav", 0, ChantRecordingObject.CROFile, ChantAudioFormat.CAFDefault, false);
CChantPM* m_pChantPM; // ChantPM object
// Instantiate ChantPM object
m_pChantPM = new CChantPM();
//m_pChantPM->SetStringProperty(CSPLicense,L"LicenseRegistrationNumber");
//m_pChantPM->SetStringProperty(CSPSerials,L"LicenseSerialNumber");
m_pChantPM->SetNumberProperty(CNPEngineAPI, CEVoCon4);
m_pChantPM->SetStringProperty(CSPEnginePath, L"C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\bin\\winx86rls");
// Set the acoustic model
m_pChantPM->SetStringProperty(CSPAcousticModel, L"C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat");
// Set either the common linguistic component or data driven G2P model files
m_pChantPM->SetStringProperty(CSPCLCModel, L"C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\clc_enu_cfg3_v1_0_7.dat");
// Set the current speaker
m_pChantPM->SetStringProperty(CSPSpeaker, L"DefaultSpeaker");
// Example 1
// Training the speaker with ProfileKit grammar training
m_pChantPM->SetTrainingProperty(CTPTrainingPhraseText, L"red\nblue\norange\ngreen\npurple\nyellow\nbrown\n");
// Start training with dialog hidden
m_pChantPM->StartTraining(NULL, 0, CROMultiMedia, CAFDefault, false);
// Example 2
// Training the speaker with ProfileKit using a grammar file
m_pChantPM->SetTrainingProperty(CTPTrainingGrammarVocab, L"colors.bnf");
// Start training with dialog hidden using pre-recorded audio file
m_pChantPM->StartTraining(L"mytraining.wav", 0, CROFile, CAFDefault, false);
CChantPM* ChantPM1; // ChantPM object
// Instantiate ChantPM object
ChantPM1 = new CChantPM();
//ChantPM1->SetStringProperty(CSPLicense,"LicenseRegistrationNumber");
//ChantPM1->SetStringProperty(CSPSerials,"LicenseSerialNumber");
ChantPM1->SetNumberProperty(CNPEngineAPI, CEVoCon4);
ChantPM1->SetStringProperty(CSPEnginePath, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\bin\\winx86rls");
// Set the acoustic model
ChantPM1->SetStringProperty(CSPAcousticModel, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat");
// Set either the common linguistic component or data driven G2P model files
ChantPM1->SetStringProperty(CSPCLCModel, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\clc_enu_cfg3_v1_0_7.dat");
// Set the current speaker
ChantPM1->SetStringProperty(CSPSpeaker, "DefaultSpeaker");
// Example 1
// Training the speaker with ProfileKit grammar training
ChantPM1->SetTrainingProperty(CTPTrainingPhraseText, "red\nblue\norange\ngreen\npurple\nyellow\nbrown\n");
// Start training with dialog hidden
ChantPM1->StartTraining(NULL, 0, CROMultiMedia, CAFDefault, false);
// Example 2
// Training the speaker with ProfileKit using a grammar file
ChantPM1->SetTrainingProperty(CTPTrainingGrammarVocab, "colors.bnf");
// Start training with dialog hidden using pre-recorded audio file
ChantPM1->StartTraining("mytraining.wav", 0, CROFile, CAFDefault, false);
var
ChantPM1: TChantPM;
begin
// Instantiate ChantPM object
ChantPM1 := TChantPM.Create();
//ChantPM1.SetStringProperty(CSPLicense,'LicenseRegistrationNumber');
//ChantPM1.SetStringProperty(CSPSerials,'LicenseSerialNumber');
ChantPM1.SetNumberProperty(CNPEngineAPI, CEVoCon4);
ChantPM1.SetStringProperty(CSPEnginePath, 'C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\bin\\winx86rls');
// Set the acoustic model
ChantPM1.SetStringProperty(CSPAcousticModel, 'C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat');
// Set either the common linguistic component or data driven G2P model files
ChantPM1.SetStringProperty(CSPCLCModel, 'C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\clc_enu_cfg3_v1_0_7.dat');
// Set the current speaker
ChantPM1.SetStringProperty(CSPSpeaker, 'DefaultSpeaker');
// Example 1
// Training the speaker with ProfileKit grammar training
ChantPM1.SetTrainingProperty(CTPTrainingPhraseText, 'red\nblue\norange\ngreen\npurple\nyellow\nbrown\n');
// Start training with dialog hidden
ChantPM1.StartTraining(nil, 0, CROMultiMedia, CAFDefault, False);
// Example 2
// Training the speaker with ProfileKit using a grammar file
ChantPM1.SetTrainingProperty(CTPTrainingGrammarVocab, 'colors.bnf');
// Start training with dialog hidden using pre-recorded audio file
ChantPM1.StartTraining('mytraining.wav', 0, CROFile, CAFDefault, False);
end;
private JChantPM JChantPM1;
// Instantiate ChantPM object
JChantPM1 = new JChantPM();
//JChantPM1.setStringProperty(ChantStringProperty.CSPLicense, "LicenseRegistrationNumber");
//JChantPM1.setStringProperty(ChantStringProperty.CSPSerials, "LicenseSerialNumber");
JChantPM1.setNumberProperty(ChantNumberProperty.CNPEngineAPI, ChantEngineAPI.CEVoCon4);
JChantPM1.setStringProperty(ChantStringProperty.CSPEnginePath, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\bin\\winx86rls");
// Set the acoustic model
JChantPM1.setStringProperty(ChantStringProperty.CSPAcousticModel, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat");
// Set either the common linguistic component or data driven G2P model files
JChantPM1.setStringProperty(ChantStringProperty.CSPCLCModel, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\clc_enu_cfg3_v1_0_7.dat");
// Set the current speaker
JChantPM1.setStringProperty(ChantStringProperty.CSPSpeaker, "DefaultSpeaker");
// Example 1
// Training the speaker with ProfileKit grammar training
JChantPM1.setTrainingProperty(ChantTrainingProperty.CTPTrainingPhraseText, "red\nblue\norange\ngreen\npurple\nyellow\nbrown\n");
// Start training with dialog hidden
JChantPM1.startTraining("", 0, ChantRecordingObject.CROMultiMedia, ChantAudioFormat.CAFDefault, false);
// Example 2
// Training the speaker with ProfileKit using a grammar file
JChantPM1.setTrainingProperty(ChantTrainingProperty.CTPTrainingGrammarVocab, "colors.bnf");
// Start training with dialog hidden using pre-recorded audio file
JChantPM1.startTraining("mytraining.wav", 0, ChantRecordingObject.CROFile, ChantAudioFormat.CAFDefault, false);
var chantPM = document.getElementById('WChantPM1');
// Set license property
//chantPM.SetStringProperty(CSPSerials,"LicenseSerialNumber");
chantPM.SetNumberProperty(CNPEngineAPI, CEVoCon4);
chantPM.SetStringProperty(CSPEnginePath, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\bin\\winx86rls");
// Set the acoustic model
chantPM.SetStringProperty(CSPAcousticModel, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat");
// Set either the common linguistic component or data driven G2P model files
chantPM.SetStringProperty(CSPCLCModel, "C:\\Nuance\\VoCon Hybrid\\SDK_v4_3\\models\\clc_enu_cfg3_v1_0_7.dat");
// Set the current speaker
chantPM.SetStringProperty(CSPSpeaker, "DefaultSpeaker");
// Example 1
// Training the speaker with ProfileKit grammar training
chantPM.SetTrainingProperty(CTPTrainingPhraseText, "red\nblue\norange\ngreen\npurple\nyellow\nbrown\n");
// Start training with dialog hidden
chantPM.StartTraining("", 0, CROMultiMedia, CAFDefault, false);
// Example 2
// Training the speaker with ProfileKit using a grammar file
chantPM.SetTrainingProperty(CTPTrainingGrammarVocab, "colors.bnf");
// Start training with dialog hidden using pre-recorded audio file
chantPM.StartTraining("mytraining.wav", 0, CROFile, CAFDefault, false);
Dim WithEvents XChantPM1 As XChantPM
' Set license properties
'XChantPM1.SetStringProperty CSPLicense, "LicenseRegistrationNumber"
'XChantPM1.SetStringProperty CSPSerials, "LicenseSerialNumber"
XChantPM1.SetNumberProperty CNPEngineAPI, CEVoCon4
XChantPM1.SetStringProperty CSPEnginePath, "C:\Program Files\Nuance\vocon3200\EDS_v4_1\bin\winx86rls"
' Set the acoustic model
XChantPM1.SetStringProperty CSPAcousticModel, "C:\Program Files\Nuance\vocon3200\EDS_v4_1\models\acmod3_800_enu_gen_car_f16_v3_1_0.dat"
' Set either the common linguistic component or data driven G2P model files
XChantPM1.SetStringProperty CSPCLCModel, "C:\Program Files\Nuance\vocon3200\EDS_v4_1\models\clc_enu_cfg3_v1_0_0.dat"
' Set the current speaker
XChantPM1.SetStringProperty(CSPSpeaker, "DefaultSpeaker");
' Example 1
' Training the speaker with ProfileKit grammar training
XChantPM1.SetTrainingProperty CTPTrainingPhraseText, "red" + vbCrLf + "blue" + vbCrLf + "orange" + vbCrLf + "green" + vbCrLf + "purple" + vbCrLf + "yellow" + vbCrLf + "brown" + vbCrLf
' Start training with dialog hidden
XChantPM1.StartTraining vbNull, 0, CROMultiMedia, CAFDefault, False
' Example 2
' Training the speaker with ProfileKit using a grammar file
XChantPM1.SetTrainingProperty CTPTrainingGrammarVocab, "colors.bnf"
' Start training with dialog hidden using pre-recorded audio file
XChantPM1.StartTraining "mytraining.wav", 0, CROFile, CAFDefault, False
Dim WithEvents NChantPM1 As NChantPM
' Instantiate ChantPM object
NChantPM1 = New NChantPM(Me)
'NChantPM1.SetStringProperty(ChantStringProperty.CSPLicense, "LicenseRegistrationNumber")
'NChantPM1.SetStringProperty(ChantStringProperty.CSPSerials, "LicenseSerialNumber")
NChantPM1.SetNumberProperty(ChantNumberProperty.CNPEngineAPI, ChantEngineAPI.CEVoCon4)
NChantPM1.SetStringProperty(ChantStringProperty.CSPEnginePath, "C:\Nuance\VoCon Hybrid\SDK_v4_3\bin\winx86rls")
' Set the acoustic model
NChantPM1.SetStringProperty(ChantStringProperty.CSPAcousticModel, "C:\Nuance\VoCon Hybrid\SDK_v4_3\models\acmod4_900_enu_gen_car_f16_v1_0_0.dat")
' Set either the common linguistic component or data driven G2P model files
NChantPM1.SetStringProperty(ChantStringProperty.CSPCLCModel, "C:\Nuance\VoCon Hybrid\SDK_v4_3\models\clc_enu_cfg3_v1_0_7.dat")
' Set the current speaker
NChantPM1.SetStringProperty(ChantStringProperty.CSPSpeaker, "DefaultSpeaker");
' Example 1
' Training the speaker with ProfileKit grammar training
NChantPM1.SetTrainingProperty(ChantTrainingProperty.CTPTrainingPhraseText, "red" + vbCrLf + "blue" + vbCrLf + "orange" + vbCrLf + "green" + vbCrLf + "purple" + vbCrLf + "yellow" + vbCrLf + "brown" + vbCrLf)
' Start training with dialog hidden
NChantPM1.StartTraining("", 0, ChantRecordingObject.CROMultiMedia, ChantAudioFormat.CAFDefault, false)
' Example 2
' Training the speaker with ProfileKit using a grammar file
NChantPM1.SetTrainingProperty(ChantTrainingProperty.CTPTrainingGrammarVocab, "colors.bnf")
' Start training with dialog hidden using pre-recorded audio file
NChantPM1.StartTraining("mytraining.wav", 0, ChantRecordingObject.CROFile, ChantAudioFormat.CAFDefault, false)