From 50e03f338a750132d1529f5be6f60a5fe62ad02d Mon Sep 17 00:00:00 2001 From: Hai Phan Date: Sun, 24 Nov 2024 19:42:16 -0800 Subject: [PATCH] fix piper not automatically moving to next page --- js/speech.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/speech.js b/js/speech.js index 840dc78..a060b29 100644 --- a/js/speech.js +++ b/js/speech.js @@ -166,7 +166,11 @@ function Speech(texts, options) { } break case "end": - cmd$.next({name: "forward"}) + if (piperState) { + cmd$.complete() + } else { + cmd$.next({name: "forward"}) + } break } },