This repository was archived by the owner on Mar 31, 2023. It is now read-only.

Description
I'm trying to modify these examples to be able to sync an animation on a Raspberry Pi to the voice of an Alexa Echo. I am receiving the speech data, but is seems to be missing some of the data required to sync. The documentation for the speechdata interface (linked to in your README, here) suggests:
To determine how to sync speechmark data to Alexa's speech, use startOffsetInMilliSeconds minus playerOffsetInMilliseconds.
The packets I am receiving look just like the example in the README:
# Speechmark
{ {'payload': {'speechmarksData': [{'value': 't', 'type': 'VISEME', 'startOffsetInMilliSeconds': 708}]}, 'header': {'namespace': 'Alexa.Gadget.SpeechData', 'name': 'Speechmarks'}} }
They have a startOffsetInMilliSeconds, but no playerOffsetInMilliseconds. Any idea how to sync an animation to the speech data without this value?