Search code examples
c#macrosspeech-recognitionsapi

Adding commands to windows speech recognition using SAPI 5.4 with C#


I want to know how can I add commands to windows 7 shared speech recognition using SAPI 5.4 in C#. There is already a Microsoft application named WSRMacros, but I should do it programmatically by myself. Any help and explanation would be extremely appreciated.


Solution

  • Just create an application that uses System.Speech.Recognizer.SpeechRecognizer. This loads the shared recognizer, which starts Windows Speech Recognition.

    Create your grammars, and off you go!