From 491feb691c95b0cfcc76e98982b731e3d5ff482c Mon Sep 17 00:00:00 2001 From: allenmylath Date: Mon, 20 Jan 2025 14:00:17 +0530 Subject: [PATCH 1/3] Update bot.py quiet and talking frames are determined based on BotStartedSpeakingFrame and BotStoppedSpeakingFrame not ttsframe --- examples/moondream-chatbot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/moondream-chatbot/bot.py b/examples/moondream-chatbot/bot.py index d7929a289..fb1a37f26 100644 --- a/examples/moondream-chatbot/bot.py +++ b/examples/moondream-chatbot/bot.py @@ -68,7 +68,7 @@ talking_frame = SpriteFrame(images=sprites) class TalkingAnimation(FrameProcessor): """This class starts a talking animation when it receives an first AudioFrame, - and then returns to a "quiet" sprite when it sees a TTSStoppedFrame. + and then returns to a "quiet" sprite when it sees a BotStartedSpeakingFrame. """ def __init__(self): From a90e81e2ebdd9600952f0302253bccc235e4cf8a Mon Sep 17 00:00:00 2001 From: allenmylath Date: Wed, 22 Jan 2025 19:38:36 +0530 Subject: [PATCH 2/3] Update examples/moondream-chatbot/bot.py Co-authored-by: Mark Backman --- examples/moondream-chatbot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/moondream-chatbot/bot.py b/examples/moondream-chatbot/bot.py index fb1a37f26..dab630311 100644 --- a/examples/moondream-chatbot/bot.py +++ b/examples/moondream-chatbot/bot.py @@ -68,7 +68,7 @@ talking_frame = SpriteFrame(images=sprites) class TalkingAnimation(FrameProcessor): """This class starts a talking animation when it receives an first AudioFrame, - and then returns to a "quiet" sprite when it sees a BotStartedSpeakingFrame. + and then returns to a "quiet" sprite when it sees a BotStoppedSpeakingFrame. """ def __init__(self): From 4cdcca588e5ef52f87c11d4bb7b1e34fe1869a2a Mon Sep 17 00:00:00 2001 From: allenmylath Date: Wed, 22 Jan 2025 19:40:12 +0530 Subject: [PATCH 3/3] Update examples/moondream-chatbot/bot.py Co-authored-by: Mark Backman --- examples/moondream-chatbot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/moondream-chatbot/bot.py b/examples/moondream-chatbot/bot.py index dab630311..4669607a7 100644 --- a/examples/moondream-chatbot/bot.py +++ b/examples/moondream-chatbot/bot.py @@ -67,7 +67,7 @@ talking_frame = SpriteFrame(images=sprites) class TalkingAnimation(FrameProcessor): - """This class starts a talking animation when it receives an first AudioFrame, + """This class starts a talking animation when it receives an first BotStartedSpeakingFrame, and then returns to a "quiet" sprite when it sees a BotStoppedSpeakingFrame. """