Recognition Assembly: Microsoft. Speech in Microsoft. A speech recognition grammar is a set of rules or constraints that define what a speech recognition engine can recognize as meaningful input. For more information about creating and using speech recognition grammars, see Speech Recognition Microsoft.
After you author a grammar, you must build it into a Grammar object that a SpeechRecognitionEngine instance can load and that your application can use at run time to manage speech recognition. You can use a Grammar constructor to create a Grammar instance from a GrammarBuilder or a SrgsDocument object, or from a file or a Stream that contains a description of a grammar in a supported format.
Thank you. Microsoft makes no warranties, express or implied, with respect to the information provided here. Constraints, or grammars, define the spoken words and phrases that can be matched by the speech recognizer. You can specify one of the pre-defined, web-service grammars "Windows. Creates an instance of the SpeechRecognitionGrammarFileConstraint class from a file object and a tag. You can reduce the amount of time required to construct a Grammar object from an XML-format grammar by compiling the grammar in advance, using one of the Compile methods.
An application's speech recognition engine, as managed by a SpeechRecognizer or SpeechRecognitionEngine object, can load multiple speech recognition grammars. The application can independently enable or disable individual grammars by setting the Enabled property, and modify recognition behavior through Grammar properties, such as the Priority and Weight properties. The grammar's SpeechRecognized event is raised when input matches a path through the grammar. Windows and the Speech platform provide security for applications constructing a Grammar instance from a DLL or from a grammar that supports scripting.
Scripts in Grammar objects are always run as if downloaded from a web page in the Internet Zone. Initializes a new instance of the Grammar class. Initializes a new instance of the Grammar class from a GrammarBuilder object. Initializes a new instance of a Grammar class from an SrgsDocument object. Initializes a new instance of a Grammar class from an SrgsDocument object and specifies a root rule.
Initializes a new instance of the Grammar class from an instance of SrgsDocument , and specifies the name of a rule to be the entry point to the grammar. Initializes a new instance of a Grammar class from an SrgsDocument object, specifies a root rule, and defines a base Uniform Resource Identifier URI to resolve relative rule references. Initializes a new instance of the Grammar class from an instance of SrgsDocument , and specifies the name of a rule to be the entry point to the grammar and a base URI to resolve relative references.
Initializes a new instance of the Grammar class from a Stream. Initializes a new instance of the Grammar class from a Stream and specifies a root rule. Initializes a new instance of the Grammar class from a stream, specifies a root rule, and defines a base Uniform Resource Identifier URI to resolve relative rule references.
Initializes a new instance of the Grammar class a Stream and specifies a root rule and a base URI to resolve relative references. Initializes a new instance of the Grammar class from a file. Grammar Builder. Please rate your experience Yes No. Any additional feedback? Namespace: System. Recognition Assembly: System. Appends a grammar file or a grammar rule to the current sequence of grammar elements. AppendRuleReference String. Appends a grammar definition file to the current sequence of grammar elements.
0コメント