SrgsGrammarCompiler Class

 

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

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

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

public ref class SrgsGrammarCompiler abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCompile(SrgsDocument^, Stream^)

Compiles an SrgsDocumentobject into a binary grammar file with the .cfg extension and sends the output to a stream.

System_CAPS_pubmethodSystem_CAPS_staticCompile(String^, Stream^)

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

System_CAPS_pubmethodSystem_CAPS_staticCompile(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.

System_CAPS_pubmethodSystem_CAPS_staticCompileClassLibrary(SrgsDocument^, String^, array<String^>^, String^)

Compiles an SRGS document into a DLL.

System_CAPS_pubmethodSystem_CAPS_staticCompileClassLibrary(array<String^>^, String^, array<String^>^, String^)

Compiles multiple SRGS grammars into a DLL.

System_CAPS_pubmethodSystem_CAPS_staticCompileClassLibrary(XmlReader^, String^, array<String^>^, String^)

Compiles an SRGS grammar into a DLL.

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
Available since 3.0

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

Return to top
Show: