Alexa-Gadgets-Raspberry-Pi-Samples icon indicating copy to clipboard operation
Alexa-Gadgets-Raspberry-Pi-Samples copied to clipboard

Speechmarks missing `playerOffsetInMilliseconds`

Open jayeheffernan opened this issue 5 years ago • 1 comments

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?

jayeheffernan avatar Sep 16 '19 07:09 jayeheffernan

Hi Jaye,

Thank you for reaching out to us. We are currently looking into this issue, and we will get back to you as soon as we have an update regarding this.

vartakr avatar Sep 23 '19 22:09 vartakr