Home › Forums › OpenEars › Recommend method to play sound with active speech recognition? › Reply To: Recommend method to play sound with active speech recognition?
Perfect, thanks. I can confirm that using AVAudioPlayer works as well as another method I found where you make a call to:
OSStatus error = AudioServicesCreateSystemSoundID((CFURLRef)aFileURL, &aSoundID);
with your sound URL to create a system sound ID that can be played back later using:
Just for completeness, while both worked, I found that the AudioServices method worked the best in my scenario.