title: Simple NSSpeechRecognizer code, not working!
body: <p>I noticed NSSpeechRecognizer in ADC library and I found it to be very interesting, so to play with it I prepared a simple application which will just listen the command and if recognized it displays it in log.</p>
  
  <p>The code used is:</p>
  
  <pre><code>- (id)init {
  
      if (self = [super init]) {
          // Insert code here to initialize your application 
          NSArray *cmds = [NSArray arrayWithObjects:@"A",@"B", @"C",@"alpha",@"beta",@"vodka",@"wine",nil]; 
          recog = [[NSSpeechRecognizer alloc] init]; // recog is an ivar
          [recog setCommands:cmds];
          [recog setDelegate:self];
      }
      return self;
  }
  
  - (IBAction)listen:(id)sender
  {   NSLog(@"listen:");
      if ([sender state] == NSOnState) { // listen
          [recog startListening];
      } else {
          [recog stopListening];
      }
  }
  
  - (void)speechRecognizer:(NSSpeechRecognizer *)sender didRecognizeCommand:(id)aCmd {
      NSLog(@"speechRecognizer: %@",(NSString *)aCmd);
  }
  </code></pre>
  
  <p>I tried it many times for the commands registered but I was unable to get none of the messages in log, in delegate :(</p>
  
  <p>There was always some noise in the background.. could this be the reason for it or I have done something wrong in the code??</p>
  
  <p>Can anyone suggest me some solution for it??</p>
  
  <p>Thanks,</p>
  
  <p>Miraaj</p>