SrgsGrammarCompiler Class

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

Compiles SrgsDocument and XML-format grammar files into binary grammar files with the .cfg extension and sends the output to a stream.

Inheritance Hierarchy

System..::..Object
  Microsoft.Speech.Recognition.SrgsGrammar..::..SrgsGrammarCompiler

Namespace:  Microsoft.Speech.Recognition.SrgsGrammar
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

Visual Basic (Declaration)
Public NotInheritable Class SrgsGrammarCompiler
Visual Basic (Usage)
You do not need to declare an instance of a static class in order to access its members.
C#
public static class SrgsGrammarCompiler

Remarks

You compile SrgsDocument objects and XML-format grammars to a binary format to optimize them for loading and consumption by a speech recognition engine. Compiling a speech recognition grammar using one of the Compile methods can reduce the amount of time required to construct a Grammar object from an SrgsDocument or an XML-format grammar.

For more information, see Compile SRGS Grammars (Microsoft.Speech).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also