class Grammar
Represents base class grammar for customizing speech recognition. Added in version 1.5.0.
Members
Grammar
Syntax: public inline explicit Grammar ( SPXGRAMMARHANDLE hgrammar );
Internal constructor. Creates a new instance using the provided handle.
Parameters
hgrammar
Grammar handle.
~Grammar
Syntax: public inline virtual ~Grammar ( );
Destructor, does nothing.
operator SPXGRAMMARHANDLE
Syntax: public inline explicit operator SPXGRAMMARHANDLE ( );
Internal. Explicit conversion operator.
Returns
A handle.
FromStorageId
Syntax: public inline static std::shared_ptr< Grammar > FromStorageId ( const std::string & storageId );
Creates a grammar from a storage ID. Added in version 1.7.0.
Parameters
storageId)
The persisted storage ID of the language model.
Returns
The grammar.
Creating a grammar from a storage ID is only usable in specific scenarios and is not generally possible.