MssGrammarCompiler..::..Compile Method (Stream, ISpeechResourceLoader, Stream, CultureInfo%, SrgsGrammarMode%, Collection<(Of <(<'Uri>)>)>%, Uri%) |
MssGrammarCompiler Class See Also Send Feedback |
Creates a compiler for speech recognition grammars.
Namespace:
Microsoft.Speech.Recognition.SrgsGrammar
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Sub Compile ( _ inputStream As Stream, _ resourceLoader As ISpeechResourceLoader, _ outputStream As Stream, _ <OutAttribute> ByRef culture As CultureInfo, _ <OutAttribute> ByRef mode As SrgsGrammarMode, _ <OutAttribute> ByRef referencedGrammars As Collection(Of Uri), _ <OutAttribute> ByRef lexicon As Uri _ ) |
Visual Basic (Usage) |
---|
Dim inputStream As Stream Dim resourceLoader As ISpeechResourceLoader Dim outputStream As Stream Dim culture As CultureInfo Dim mode As SrgsGrammarMode Dim referencedGrammars As Collection(Of Uri) Dim lexicon As Uri MssGrammarCompiler.Compile(inputStream, resourceLoader, _ outputStream, culture, mode, referencedGrammars, _ lexicon) |
C# |
---|
public static void Compile( Stream inputStream, ISpeechResourceLoader resourceLoader, Stream outputStream, out CultureInfo culture, out SrgsGrammarMode mode, out Collection<Uri> referencedGrammars, out Uri lexicon ) |
Parameters
- inputStream
- Type: System.IO..::..Stream
- resourceLoader
- Type: Microsoft.Speech..::..ISpeechResourceLoader
- outputStream
- Type: System.IO..::..Stream
- culture
- Type: System.Globalization..::..CultureInfo%
- referencedGrammars
- Type: System.Collections.ObjectModel..::..Collection<(Of <(<'Uri>)>)>%
- lexicon
- Type: System..::..Uri%