"AVSpeechSynthesisVoice" choppy at start.

So, I'm trying to create my own text-to-speech setup. Problem I'm having is whenever I do a test run, the speech gets a bit choppy at the start kind of skipping over maybe a word or a few characters.

A few details:

  1. I've essentially built a separate class for handling the speech events.
  2. AVSpeechSynthesizer is set up as a private variable for the class so I don't expect deallocation to be the issue. Especially since it's a problem at the start.
  3. I've got a queue set up for what it's worth so that shouldn't be a problem.

I'd appreciate any advice.

Hello @kalobkalob, thank you for your post. Are you able to demonstrate the issue in a test project created from one of Xcode's templates, and using only Apple APIs?

You can find tips on creating and sharing a test project in Creating a Test Project.

Here's a folder with my project. It only has a speech class and an interface for activating it. https://drive.google.com/drive/folders/1BJvGWwKMlQ5gTdEzkbtT5GUUHdAQBRn2?usp=share_link

"AVSpeechSynthesisVoice" choppy at start.
 
 
Q