Update bot.py

quiet and talking frames are determined based on BotStartedSpeakingFrame and BotStoppedSpeakingFrame not ttsframe
This commit is contained in:
allenmylath
2025-01-20 14:00:17 +05:30
committed by GitHub
parent e4f83b237e
commit 491feb691c

View File

@@ -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):