Hi,
Probably,
"My Computer"
is capitalized, so the input is
"My Computer"
, which is NOT equal to
"my computer"
!
Try this:
void gramer_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
string resultText = e.Result.Text.ToLower();
if (resultText == "computer" || resultText =="my computer")
{
Hope this helps.