Last reviewed:
12/15/2011
Article ID:
H121103
VoCon 4.2 introduces new features and deprecates others. In addition there are new acoustic models that are not downward compatible. Applications need to recompile grammars with the new acoustic models.
For the application to select VoCon 4.2 as the recognizer, it must set the EnginePath and AcousticModel properties for proper initialization. The following example illustrates initializing VoCon 4.2 with the SpeechKit ChantSR class.
// Nuance VoCon 3200 V4 Reco
NChantSR1.SetNumberProperty(ChantNumberProperty.CNPHighConfidenceThreshold, (int)ChantEngineAPI.CEVoCon4);
NChantSR1.SetStringProperty(ChantStringProperty.CSPEnginePath, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\bin\\winx86rls");
// Set the models to the ones you used to compile grammars
NChantSR1.SetStringProperty(ChantStringProperty.CSPAcousticModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat");
// Set either the common linguistic component or data driven G2P model files
NChantSR1.SetStringProperty(ChantStringProperty.CSPCLCModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\clc_enu_cfg3_v1_0_3.dat");
//NChantSR1.SetStringProperty(ChantStringProperty.CSPDDG2PModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\ddg2p_enu_vadvde_ttsasr_large_v2_1_3.dat");
// Nuance VoCon 3200 V4 Reco
m_pChantSR->SetNumberProperty(CNPHighConfidenceThreshold, CEVoCon4);
m_pChantSR->SetStringProperty(CSPEnginePath, L"C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\bin\\winx86rls");
// Set the acoustic model
m_pChantSR->SetStringProperty(CSPAcousticModel, L"C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat");
// Set either the common linguistic component or data driven G2P model files
m_pChantSR->SetStringProperty(CSPCLCModel, L"C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\clc_enu_cfg3_v1_0_3.dat");
//m_pChantSR->SetStringProperty(CSPDDG2PModel, L"C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\ddg2p_enu_vadvde_ttsasr_large_v2_1_3.dat");
// Nuance VoCon 3200 V4 Reco
ChantSR1->SetNumberProperty(CNPHighConfidenceThreshold, CEVoCon4);
ChantSR1->SetStringProperty(CSPEnginePath, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\bin\\winx86rls");
// Set the acoustic model
ChantSR1->SetStringProperty(CSPAcousticModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat");
// Set either the common linguistic component or data driven G2P model files
ChantSR1->SetStringProperty(CSPCLCModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\clc_enu_cfg3_v1_0_3.dat");
//ChantSR1->SetStringProperty(CSPDDG2PModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\ddg2p_enu_vadvde_ttsasr_large_v2_1_3.dat");
// Nuance VoCon 3200 V4 Reco
ChantSR1.SetNumberProperty(CNPHighConfidenceThreshold, CEVoCon4);
ChantSR1.SetStringProperty(CSPEnginePath, 'C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\bin\\winx86rls');
// Set the acoustic model
ChantSR1.SetStringProperty(CSPAcousticModel, 'C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat');
// Set either the common linguistic component or data driven G2P model files
ChantSR1.SetStringProperty(CSPCLCModel, 'C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\clc_enu_cfg3_v1_0_3.dat');
//ChantSR1.SetStringProperty(CSPDDG2PModel, 'C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\ddg2p_enu_vadvde_ttsasr_large_v2_1_3.dat');
// Nuance VoCon 3200 V4 Reco
JChantSR1.setNumberProperty(ChantNumberProperty.CNPHighConfidenceThreshold, ChantEngineAPI.CEVoCon4);
JChantSR1.setStringProperty(ChantStringProperty.CSPEnginePath, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\bin\\winx86rls");
// Set the acoustic model
JChantSR1.setStringProperty(ChantStringProperty.CSPAcousticModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat");
// Set either the common linguistic component or data driven G2P model files
JChantSR1.setStringProperty(ChantStringProperty.CSPCLCModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\clc_enu_cfg3_v1_0_3.dat");
//JChantSR1.setStringProperty(ChantStringProperty.CSPDDG2PModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\ddg2p_enu_vadvde_ttsasr_large_v2_1_3.dat");
// Nuance VoCon 3200 V4 Reco
WChantPM1.SetNumberProperty(CNPHighConfidenceThreshold, CEVoCon4);
WChantPM1.SetStringProperty(CSPEnginePath, L"C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\bin\\winx86rls");
// Set the acoustic model
WChantPM1.SetStringProperty(CSPAcousticModel, L"C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\acmod4_900_enu_gen_car_f16_v1_0_0.dat");
// Set either the common linguistic component or data driven G2P model files
WChantPM1.SetStringProperty(CSPCLCModel, L"C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\clc_enu_cfg3_v1_0_3.dat");
//WChantPM1.SetStringProperty(CSPDDG2PModel, L"C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_2\\models\\ddg2p_enu_vadvde_ttsasr_large_v2_1_3.dat");
' Nuance VoCon 3200 V4 Reco
XChantSR1.SetNumberProperty CNPHighConfidenceThreshold, CEVoCon4
XChantSR1.SetStringProperty CSPEnginePath, "C:\Program Files\Nuance\vocon3200\EDS_v4_2\bin\winx86rls"
' Set the acoustic model
XChantSR1.SetStringProperty CSPAcousticModel, "C:\Program Files\Nuance\vocon3200\EDS_v4_2\models\acmod4_900_enu_gen_car_f16_v1_0_0.dat"
' Set either the common linguistic component or data driven G2P model files
XChantSR1.SetStringProperty CSPCLCModel, "C:\Program Files\Nuance\vocon3200\EDS_v4_2\models\clc_enu_cfg3_v1_0_3.dat"
'XChantSR1.SetStringProperty CSPDDG2PModel, "C:\Program Files\Nuance\vocon3200\EDS_v4_2\models\ddg2p_enu_vadvde_ttsasr_large_v2_1_3.dat"
' Nuance VoCon 3200 V4 Reco
NChantSR1.SetNumberProperty(ChantNumberProperty.CNPHighConfidenceThreshold, ChantEngineAPI.CEVoCon4)
NChantSR1.SetStringProperty(ChantStringProperty.CSPEnginePath, "C:\Program Files\Nuance\vocon3200\EDS_v4_2\bin\winx86rls")
' Set the acoustic model
NChantSR1.SetStringProperty(ChantStringProperty.CSPAcousticModel, "C:\Program Files\Nuance\vocon3200\EDS_v4_2\models\acmod4_900_enu_gen_car_f16_v1_0_0.dat")
' Set either the common linguistic component or data driven G2P model files
NChantSR1.SetStringProperty(ChantStringProperty.CSPCLCModel, "C:\Program Files\Nuance\vocon3200\EDS_v4_2\models\clc_enu_cfg3_v1_0_3.dat")
'NChantSR1.SetStringProperty(ChantStringProperty.CSPDDG2PModel, "C:\Program Files\Nuance\vocon3200\EDS_v4_2\models\ddg2p_enu_vadvde_ttsasr_large_v2_1_3.dat")
The same initiliziation is used for the GrammarKit ChantGM class, LexiconKit ChantLM class, and ProfileKit ChantPM class.
Applications can set these properties before enabling grammars with the ChantSR SetNumberProperty method:
NChantSR1.SetNumberProperty(ChantNumberProperty.CNPHighConfidenceThreshold, 7500);
pCChantSR->SetNumberProperty(CNPHighConfidenceThreshold, 7500);
pCChantSR->SetNumberProperty(CNPHighConfidenceThreshold, 7500);
ChantSR1.SetNumberProperty(CNPHighConfidenceThreshold, 7500);
JChantSR1.setNumberProperty(ChantNumberProperty.CNPHighConfidenceThreshold, 7500);
WChantSR1.SetNumberProperty(CNPHighConfidenceThreshold, 7500);
XChantSR1.SetNumberProperty CNPHighConfidenceThreshold, 7500
NChantSR1.SetNumberProperty(ChantNumberProperty.CNPHighConfidenceThreshold, 7500)