diff --git a/lib/tasks/say.js b/lib/tasks/say.js index 47d39e79..2dd9b3bb 100644 --- a/lib/tasks/say.js +++ b/lib/tasks/say.js @@ -364,6 +364,8 @@ class TaskSay extends TtsTask { } this.ep.removeAllListeners('playback-start'); this.ep.removeAllListeners('playback-stop'); + // if we are waiting for playback-stop event, resolve the promise + if (this._playResolve) this._playResolve(); } }