Odd behavior in the delegate


#1

In completing the first speech synthesis application with a delegate, where we are simply logging whether or not the string has completed speaking, everything seems to work correctly. When I then went on and completed the entire project, including adding the selector observation code, I noticed some odd behavior. The finished variable is now often, but not always, coming back NO even when I am sure that I have allowed it to finish. Is there a bug that I am not aware of, or is this a known issue with the delegate method?

It is obviously not critical, but in working through the exercises, I am trying to understand what is happening, and this does not make sense to me.

Thanks,

David


#2

I’m noticing the same thing, but only for the first time it says the line. I ran this 4 times, the only time I clicked stop was in the 3rd run. (This shows that it logs a message when clicking stop)

2011-02-05 10:42:18.643 SpeakLine[9019:a0f] init 2011-02-05 10:42:18.717 SpeakLine[9019:a0f] new voice = com.apple.speech.synthesis.voice.Alex 2011-02-05 10:42:23.030 SpeakLine[9019:a0f] Have started to say: Peter Piper picked a peck of pickled peppers 2011-02-05 10:42:26.558 SpeakLine[9019:a0f] completed = 0 2011-02-05 10:42:28.430 SpeakLine[9019:a0f] Have started to say: Peter Piper picked a peck of pickled peppers 2011-02-05 10:42:31.092 SpeakLine[9019:a0f] completed = 1 2011-02-05 10:42:57.162 SpeakLine[9019:a0f] Have started to say: Peter Piper picked a peck of pickled peppers 2011-02-05 10:42:58.490 SpeakLine[9019:a0f] stopping 2011-02-05 10:42:58.563 SpeakLine[9019:a0f] completed = 0 2011-02-05 10:43:00.988 SpeakLine[9019:a0f] Have started to say: Peter Piper picked a peck of pickled peppers 2011-02-05 10:43:03.651 SpeakLine[9019:a0f] completed = 1