Home › Forums › OpenEars › Shall i use fliteDidFinishSpeaking to read the subsequent lines of test in my ap › Reply To: Shall i use fliteDidFinishSpeaking to read the subsequent lines of test in my ap
You can naturally use the callback in order to call a method responsible for advancing your speech utterances through a queue or any business logic that you prefer for that. I guess I don’t really understand the idea of avoiding using the callback in order to trigger an event based on the information shared by the callback about the status of an asynchronous API. If that were dangerous, it wouldn’t be possible to react to the status of any of Apple’s async APIs which deliver status information through delegates (for example audio playback or networking APIs).