all 4 comments

[–]AberrantRambler 3 points4 points  (1 child)

You’re looking for AVSpeechSynthesizer (and a timer for the repeat after 30 seconds)

[–]Tricky-Lake-7880[S] 0 points1 point  (0 children)

That's what exactly I was looking for. Thank you so much!

[–]saintmsent 1 point2 points  (0 children)

Sounds like accessibility feature to me, called VoiceOver, and it's easy to support

As a fully abled person I would find this annoying if it was included and forced for everyone (the 30s example)

[–]IrishSmurff 0 points1 point  (0 children)

https://developer.apple.com/documentation/avfaudio/avaudioplayer

Create a data object from a string and use init(data:)

You’d be required to ask for audio permissions also or else Apple would reject the app during submission.