How do I manage grammars with VoCon 3200 V4?

Last reviewed: 7/15/2011

HOW Article ID: H071102

The information in this article applies to:

  • GrammarKit 4

Summary

GrammarKit 4 provides support for Nuance VoCon 3200 V4.

More Information

Chant GrammarKit 4 provides support for Nuance VoCon 3200 V4. VoCon V4 expands it grammar support to include L&H BNF V2.0, W3C ABNF, and Java Speech Grammar Format (JSGF) syntax.

The VoCon 3200 API is a CDLL-based architecture. To manage grammars within your application, specify the directory location for the runtime libraries and acoustic model by setting the CNPEngineAPI, CSPEnginePath, and CSPAcousticModel properties after instantiating the ChantGM class object.

Like VoCon V2, this is all that is required to compile a grammar using gram to phoneme capabilities. You may use CLC or DDG2P capabilities by defining the path to those libraries.


ChantGM1.SetNumberProperty(CNPEngineAPI, CEVoCon4)
// Win32 - Set the path to the VoCon runtime libraries
ChantGM1.SetStringProperty(CSPEnginePath, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_1\\bin\\winx86rls") 
ChantGM1.SetNumberProperty(CNPEngineAPI, CEVoCon4)
// Win32 - Set the file name of acoustic model
ChantGM1.SetStringProperty(CSPAcousticModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_1\models\\acmod3_800_enu_gen_car_f16_v3_1_0.dat")
// Win32 - Set the file name of CLC model
ChantGM1.SetStringProperty(CSPCLCModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_1\\models\\clc_enu_cfg3_v1_0_0.dat")
// Win32 - Or set the file name of DDG2P model
ChantGM1.SetStringProperty(CSPDDG2PModel, "C:\\Program Files\\Nuance\\vocon3200\\EDS_v4_1\\models\\ddg2p_enu_vadvde_ttsasr_large_v2_1_3.dat")
    

ChantGM1.SetNumberProperty(CNPEngineAPI, CEVoCon4)
// WinCE - Set the path to the VoCon runtime libraries
ChantGM1.SetStringProperty(CSPEnginePath, "\\Program Files\\YourAppDir")    
// WinCE - Set the file name of acoustic model
ChantGM1.SetStringProperty(CSPAcousticModel, "\\Program Files\\YourAppDir\acmod3_800_enu_gen_car_f16_v3_1_0.dat")
// WinCE - Set the file name of CLC model
ChantGM1.SetStringProperty(CSPCLCModel, "\\Program Files\\YourAppDir\\clc_enu_cfg3_v1_0_0.dat")
// WinCE - Or set the file name of DDG2P model
ChantGM1.SetStringProperty(CSPDDG2PModel, "\\Program Files\\YourAppDir\\ddg2p_enu_vadvde_ttsasr_large_v2_1_3.dat")