SpeechRecognizer Class (Windows.Media.SpeechRecognition)
发布时间:2026-09-18 | 浏览:1
Access to this page requires authorization. You can try signing in or changing directories .
Access to this page requires authorization. You can try changing directories .
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables speech recognition with either a default or a custom graphical user interface (GUI).
Windows requirements
CompileConstraintsAsync must always be called before RecognizeAsync or RecognizeWithUIAsync , even if no constraints are specified in the Constraints property.
Version history
Creates a new instance of the SpeechRecognizer class.
Creates a new instance of the SpeechRecognizer class with a language specifier.
Gets the collection of constraint objects currently added to the SpeechRecognizer object.
Gets the continuous recognition session object ( SpeechContinuousRecognitionSession ) associated with this SpeechRecognizer .
Gets the language used for speech recognition.
Gets the state of the speech recognizer.
Gets the collection of languages supported by the custom grammars of the SpeechRecognitionGrammarFileConstraint and SpeechRecognitionListConstraint objects specified in the Constraints property.
Gets the collection of languages supported by the pre-defined, web-service grammars of the SpeechRecognitionTopicConstraint objects specified in the Constraints property.
Gets the speech language of the device specified in Settings > Time & Language > Speech .
Gets how long a speech recognizer ignores silence or unrecognizable sounds (babble) and continues listening for speech input.
Gets the UI settings for the RecognizeWithUIAsync method.
Disposes the speech recognizer by freeing, releasing, or resetting allocated resources.
Asynchronously compile all constraints specified by the Constraints property.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Begins a speech recognition session for a SpeechRecognizer object.
Asynchronously starts a speech recognition session that includes additional UI mechanisms, including prompts, examples, text-to-speech (TTS), and confirmations.
Asynchronously ends the speech recognition session.
Asynchronously attempts to set the system language used for speech recognition on an IoT device.
This method is available only in Embedded mode .
Occurs during an ongoing dictation session when a recognition result fragment is returned by the speech recognizer.
This event is raised when an audio problem is detected that might affect recognition accuracy.
This event is raised when a change occurs to the State property during audio capture.
Windows.Media.SpeechRecognition
Speech interactions
Speech recognition and speech synthesis sample
Holographic voice input sample
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?