How to add a long pause for AVSpeechSynthesizer?

Viewed 1693

I found -- can add a small pause like the number count down:

10--9--8--7--6--5--4--3--2--1--

But I don't know how to add a long pause, for like 1 sec?

Any idea?

3 Answers

For a normal delay we can add a ":" (colon) between each of the words.

eg:-

utterance = AVSpeechUtterance(string: String(format: "Time: 20 minutes: 15 seconds")

the output will ----- " Time (delay) 20 minutes (delay) 15 seconds "

Related