Reply To: Reply To: Playing a pre-recorded sound before synthesized speech.

Home Forums OpenEars Playing a pre-recorded sound before synthesized speech. Reply To: Reply To: Playing a pre-recorded sound before synthesized speech.

#14189
Halle Winkler
Politepix

Hello,

The ‘audioPlayerDidFinishPlaying:successfully:’ would only allow audio to be inserted afterwards.

Only if you start playing the AVAudioPlayer sound after the speech returns the OpenEarsEventsObserver method. If you initiate the speech as a result of the audioPlayerDidFinishPlaying:successfully: method of a sound that you play using AVAudioPlayer being called, the sound will precede the speech.