Home › Forums › OpenEars › Recommend method to play sound with active speech recognition? › Reply To: Recommend method to play sound with active speech recognition?
February 4, 2014 at 9:15 pm
#1020036
wfilleman
Participant
Hi Halle,
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:
AudioServicesPlaySystemSound(_soundID);
Just for completeness, while both worked, I found that the AudioServices method worked the best in my scenario.
Thanks Halle!
Wes