From b28ecaf43ebf474980f1986d7ccc501b364866d5 Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Mon, 1 Jan 2024 21:43:23 +0000 Subject: [PATCH] added pause button --- templates/TTS_Input_Proof_of_concept.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/TTS_Input_Proof_of_concept.html b/templates/TTS_Input_Proof_of_concept.html index 0cb5333..d3cbed2 100644 --- a/templates/TTS_Input_Proof_of_concept.html +++ b/templates/TTS_Input_Proof_of_concept.html @@ -293,6 +293,7 @@
+
@@ -501,6 +502,14 @@ }; } } + + function togglePausePlayback() { + if (audioElement.paused) { + audioElement.play(); + } else { + audioElement.pause(); + } + } function toggleThemeMode() { // Retrieve the value of the selected option for themeMode from the dropdown