Update bot.py
quiet and talking frames are determined based on BotStartedSpeakingFrame and BotStoppedSpeakingFrame not ttsframe
This commit is contained in:
@@ -68,7 +68,7 @@ talking_frame = SpriteFrame(images=sprites)
|
|||||||
|
|
||||||
class TalkingAnimation(FrameProcessor):
|
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 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):
|
def __init__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user