-stopSpeakingAtBoundary: fails with queue

Originator:pineboxpirate
Number:rdar://15546872 Date Originated:25-Nov-2013
Status:Open Resolved:
Product:iOS SDK Product Version:7
Classification: Reproducible:Always
 
Summary:
When a number of utterances are in an AVSpeechSynthesizer instance’s queue, the stopSpeakingAtBoundary: method is unsuccessful.

There is a workaround, but it shouldn’t be necessary.

Steps to Reproduce:
1. Create an Xcode project.
2. Give the ViewController class an AVSpeechSynthesizer property.
3. Feed the synthesizer a series of AVSpeechUtterance instances.
4. Attempt to stop the queue ***after the first two utterances have been spoken but before the second to last utterance have been spoken*** using -stopSpeakingAtBoundary:.

WORKAROUND:
Just before the -stopSpeakingAtBoundary: call, call -speakUtterance:. This utterance can be as simple as [AVSpeechUtterance speechUtteranceWithString:@""].

Expected Results:
The synthesizer should stop speaking the utterances in its queue.

Actual Results:
The synthesize continues and -stopSpeakingAtBoundary: returns NO.

With the workaround, it works as expected. The workaround should not be necessary.

Version:
iOS 7.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.1b

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!