Export (0) Print
Expand All

SrgsGrammarCompiler Class

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

System.Object
  System.Speech.Recognition.SrgsGrammar.SrgsGrammarCompiler

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

public static class SrgsGrammarCompiler

  NameDescription
Public methodStatic memberCompile(SrgsDocument, Stream)Compiles an SrgsDocumentobject into a binary grammar file with the .cfg extension and sends the output to a stream.
Public methodStatic memberCompile(String, Stream)Compiles an XML-format grammar file into a binary grammar file with the .cfg extension and sends the output to a stream.
Public methodStatic memberCompile(XmlReader, Stream)Compiles data for an XML-format grammar file referenced by an XmlReader into a binary grammar file with the .cfg extension and sends the output to a stream.
Public methodStatic memberCompileClassLibrary(SrgsDocument, String, String[], String)Compiles an SRGS document into a DLL.
Public methodStatic memberCompileClassLibrary(String[], String, String[], String)Compiles multiple SRGS grammars into a DLL.
Public methodStatic memberCompileClassLibrary(XmlReader, String, String[], String)Compiles an SRGS grammar into a DLL.
Top

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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