SrgsGrammarCompiler Class
Compiles SrgsDocument and XML-format grammar files into binary grammar files with the .cfg extension and sends the output to a stream.
Assembly: System.Speech (in System.Speech.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Compile(SrgsDocument, Stream) | Compiles an SrgsDocumentobject into a binary grammar file with the .cfg extension and sends the output to a stream. |
![]() ![]() | Compile(String, Stream) | Compiles an XML-format grammar file into a binary grammar file with the .cfg extension and sends the output to a stream. |
![]() ![]() | Compile(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. |
![]() ![]() | CompileClassLibrary(SrgsDocument, String, array<String>, String) | |
![]() ![]() | CompileClassLibrary(array<String>, String, array<String>, String) | |
![]() ![]() | CompileClassLibrary(XmlReader, String, array<String>, String) |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
