"soundFile": "/Users/erin/Rhubarb/intro.wav",
"duration": 6.09
},
"mouthCues": [
{ "start": 0.00, "end": 1.23, "value": "X" },
{ "start": 1.23, "end": 1.29, "value": "C" },
{ "start": 1.29, "end": 1.48, "value": "E" },
{ "start": 1.48, "end": 1.58, "value": "A" },
{ "start": 1.58, "end": 2.28, "value": "B" },
{ "start": 2.28, "end": 2.40, "value": "A" },
{ "start": 2.40, "end": 2.51, "value": "D" },
{ "start": 2.51, "end": 2.72, "value": "B" },
{ "start": 2.72, "end": 2.86, "value": "C" },
{ "start": 2.86, "end": 3.21, "value": "B" },
{ "start": 3.21, "end": 3.83, "value": "X" },
{ "start": 3.83, "end": 4.06, "value": "F" },
{ "start": 4.06, "end": 4.13, "value": "C" },
{ "start": 4.13, "end": 4.27, "value": "F" },
{ "start": 4.27, "end": 4.62, "value": "B" },
{ "start": 4.62, "end": 4.76, "value": "E" },
{ "start": 4.76, "end": 4.97, "value": "B" },
{ "start": 4.97, "end": 6.09, "value": "X" }
]
}
Within the mouthCues section, you can add or delete lines,
adjust start or end times, or change the mouth shape, called value .
While doing so, you need to make sure that:
json syntax is respected
the start times are in ascending order
each end time is no later than the next "start" time
the value is one of the following 9 uppercase letters: A, B, C, D, E, F, G, H, X
The letters A, F, and X correspond to a closed mouth; B, C, G, and H to a partially
open mouth, and D and E to a fully open mouth. With Teddy's animatronics, we don't
really need this many options -- A, F, and X all do the same thing: close the mouth. I
found it easier to understand and edit this file by using just one letter from each
category:
X = closed mouth
B = partially open
E = fully open
I opened my .wav file in Audacity to see the time points of each section, so I could
find the corresponding lines in the code and modify the movements as needed.
•
•
•
•
•
•
•
©Adafruit Industries Page 16 of 18