Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SrgsGrammarCompiler Class

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

'Declaration
Public NotInheritable Class SrgsGrammarCompiler
'Usage
You do not need to declare an instance of a static class in order to access its members.
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

Reference

SrgsGrammarCompiler Members

Microsoft.Speech.Recognition.SrgsGrammar Namespace