End callback for Syntesizing function
danilolmc opened this issue · comments
Danilo Lima commented
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() })