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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -