If you're using System.Speech.Recognition, you should be able to use GrammarBuilder.AppendDictation
to solve your issue:
GrammarBuilder builder = new GrammarBuilder();
builder.Append("search google for");
builder.AppendDictation();
Grammar grammarWithDictation = new Grammar(builder);
grammarWithDictation.Name = "Search Google";