title: How to play array of words or NSString using AVAudioPlayer?
body: <p>I have Array of words which i want to pick one after the other and play using AVAudioPlayer, how can i achieve playing NSString using AVAudioPlayer?</p>
  
  <p>I don't have the audio file and i have list of words to which i want to play each word using AVAudioPlayer programming .</p>
  
  <p>i found to play the audio file using AVAudioPlayer but not able to find to play NSSting or word in AVAudioPlayer</p>
  
  <p>Below is the code using to play the audio clips :</p>
  
  <pre><code>NSString *path = [NSString stringWithFormat:@"%@/audio.mp3", [[NSBundle mainBundle] resourcePath]];
  NSURL *soundUrl = [NSURL fileURLWithPath:path];
  AVAudioPlayer *audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:soundUrl error:nil];
  </code></pre>