From f01428f502a109e91ccab9e3f93d4e419e5d12b5 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 10 Feb 2024 19:29:13 -0800 Subject: [PATCH] fix: sleep duration --- src/lib/components/chat/Messages/ResponseMessage.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 5ab41fcd..7ea44950 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -125,7 +125,7 @@ const audio = sentencesAudio[idx]; audio.play(); audio.onended = async (e) => { - await new Promise((r) => setTimeout(r, 500)); + await new Promise((r) => setTimeout(r, 300)); if (Object.keys(sentencesAudio).length - 1 === idx) { speaking = null;