ios - AVSpeechUtterance completion handler -


how set completion event on speakutterance(utterance) function in swift? need speech neither interrupted nor interrupting.

have looked @ header (or generated swift interface) avspeechsynthesizer? or documentation? looks pretty straightforward there...

  1. set instance of 1 of classes delegate of speech synthesizer.

  2. in class, implement speechsynthesizer(_:didfinishspeechutterance:) method. it'll called whenever utterance finishes speaking.

  3. there's no step three.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -