danilolmc / zaity

Build acessible user interfaces based upon voice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

End callback for Syntesizing function

danilolmc opened this issue · comments

How about add support for onEnd callback when Utterance finishes, this way it's possible to do any other task, including get an user answer through audio input

Example:

const synthesizer = VoiceSynthesizer({ lang: 'pt-BR', onEnd: () => getUserAnswer() })