Search code examples
c#speech-recognitiongoogle-speech-apimicrosoft-speech-platformmicrosoft-speech-api

C# speech recognition without predefined grammar


I'm trying to use speech recognition with C# application but this way I have only predicted phrase on output:

sList.Add(new string[] { "hello", "test", "works", "exit"}); 

Can I get output same way like Google Speech Recognition API work, recognize speech, not exist words and give me on output, or if I can use Google Speech Recognition with C# would be good to see some example how to it?


Solution

  • Instead of creating a new Grammar, create a new DictationGrammar. This loads a standard dictionary, but the accuracy will be lower than if you provided it with a separate grammar.