class GrammarPhrase

Represents a phrase that may be spoken by the user. Added in version 1.5.0.

Members

GrammarPhrase

Syntax: public inline explicit GrammarPhrase ( SPXPHRASEHANDLE hphrase );

Internal constructor. Creates a new instance using the provided handle.

Parameters

  • hphrase Grammar phrase handle.

~GrammarPhrase

Syntax: public inline virtual ~GrammarPhrase ( );

Virtual destructor.

operator SPXPHRASEHANDLE

Syntax: public inline explicit operator SPXPHRASEHANDLE ( );

Internal. Explicit conversion operator.

Returns

A handle.

From

Syntax: public inline static std::shared_ptr< GrammarPhrase > From ( const std::string & text );

Creates a grammar phrase using the specified phrase text.

Parameters

  • text The text representing a phrase that may be spoken by the user.

Returns

A shared pointer to a grammar phrase.