question

Greg avatar image
Greg asked ·

Synchronize animation with end of speech?

Is it possible to synchronize animations such that the animation starts when the Alexa prompt ends? For example, if I want to change the button lights to green when Alexa finishes saying "ready, set, go!", is there are way to do so other than trying to time it with with an animation sequence that runs in parallel to the speak directive? The problem with trying to time a sequence is that the actual wording of the "ready, set, go!" prompt can change due to dynamic conditions of the game. For example it might be "OK, lets move on to the next round. Go!" or "That's a point for player one. Get ready for the next round. Go!". Each of these prompts takes a different amount of time to be stated and thus timing the animation sequence to turn green right at the end of the prompt is kind of hit-or-miss.

Echo Buttons Skill APIlights
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Mike Dinescu avatar image
Mike Dinescu answered ·

Having an animation start when speech starts, or when speech is finished, is not supported at this time.

Unfortunately you have to try to time the interaction yourself but, as you may have noticed, the animation directives are not synchronized in any way to speech so there is no guarantee that the animation clock would start at the same time as the speech starts playing so it will not be accurate all the time.

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.