Notify when TTS has finish

Home Forums OpenEars Notify when TTS has finish

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)

  • Author
    Posts
  • #1017529
    toto07
    Participant

    Hello,

    I would like to ask if there is any method that get called (and I can use) so get notified once the narrator has finish (reach the end of text). I am using OpenEars for very simple app and simply calling say:withVoice: passing the necessary string value.

    In addition, I am wondering if there is any method to stop the narrator before reach the end of text.

    Thanks in advance!

    #1017530
    Halle Winkler
    Politepix

    Welcome,

    You can use the OpenEarsEventsObserver delegate method fliteDidFinishSpeaking to receive a callback when speech has completed (check out the OpenEarsEventsObserver section of the tutorial or its section in the PDF docs). FliteController can’t interrupt speech via a public API method but you can try sending [self.fliteController interruptTalking] which should stop speech.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.