Here, we specify "en-US" as the recognition language. To specify a language, pass a Language object in the SpeechRecognizer constructor. SupportedGrammarLanguages-The collection of Language objects used with a list constraint or a Speech Recognition Grammar Specification (SRGS) file. SupportedTopicLanguages-The collection of Language objects used with predefined dictation and web search grammars. An exception with error code SPERR_NOT_FOUND (0x8004503a) is raised if the specified language is not supported or has not finished installing.ĭetermine the supported languages on a device by checking one of two static properties of the SpeechRecognizer class: Note A reboot is required after a new language pack is installed. You should verify the existence of a language if you depend on it for a particular constraint. Installed languages can vary between devices. var language = SpeechRecognizer.SystemSpeechLanguage We identify the default language by checking the SystemSpeechLanguage static property. This language is set by the user on the device Settings > System > Speech > Speech Language screen. Identify the default languageĪ speech recognizer uses the system speech language as its default recognition language. Learn about events with Events and routed events overviewįor helpful tips about designing a useful and engaging speech-enabled app, see Speech design guidelines.
If you're new to developing Windows apps, have a look through these topics to get familiar with the technologies discussed here. You should have a basic understanding of speech recognition and recognition constraints. Here, we enumerate the languages installed on a system, identify which is the default language, and select a different language for recognition. Important APIs: SupportedTopicLanguages, SupportedGrammarLanguages, Language
DIFFERENT VOICES FOR SPEECH TO TEXT WINDOWS 10 HOW TO
Learn how to select an installed language to use for speech recognition.