Share via


Note

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

MssGrammarCompiler.Compile Method (Stream, Stream, CultureInfo, SrgsGrammarMode, Collection<Uri>)

Compiles a speech recognition grammar.

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

Syntax

'Declaration
Public Shared Sub Compile ( _
    inputStream As Stream, _
    outputStream As Stream, _
    <OutAttribute> ByRef culture As CultureInfo, _
    <OutAttribute> ByRef mode As SrgsGrammarMode, _
    <OutAttribute> ByRef referencedGrammars As Collection(Of Uri) _
)
'Usage
Dim inputStream As Stream
Dim outputStream As Stream
Dim culture As CultureInfo
Dim mode As SrgsGrammarMode
Dim referencedGrammars As Collection(Of Uri)

MssGrammarCompiler.Compile(inputStream, outputStream, _
    culture, mode, referencedGrammars)
public static void Compile(
    Stream inputStream,
    Stream outputStream,
    out CultureInfo culture,
    out SrgsGrammarMode mode,
    out Collection<Uri> referencedGrammars
)

Parameters

See Also

Reference

MssGrammarCompiler Class

MssGrammarCompiler Members

Compile Overload

Microsoft.Speech.Recognition.SrgsGrammar Namespace