I didn't look at the second file, but the reason the first throws an error is that at frame 412 you have no viseme.
I didn't think that was possible with Papagayo (then again, it's been years since I've used it in production). Perhaps you accidentally deleted something or did something wrong in using it. In any case, my original code could trap for this by doing something like this:
try:
my_Frame, my_Vise = text.split()
the_frame = int(my_Frame)
if 'rest' in text:
the_frame += 2
scene_time = RLPy.RTime(ST + (42 * the_frame))
viseme_animator.AddVisemeKey(scene_time,0,100.0)
text = f.readline()
if text == '':
break
else:
myVNum = vList.index(my_Vise)
the_frame += 2
scene_time = RLPy.RTime(ST + (42 * the_frame))
viseme_animator.AddVisemeKey(scene_time,myVNum,100.0)
except:
print ("No viseme at frame " + text)
Not sure how this fits in what Ani has done (and I don't have the time to look at it this morning) but you should be able to puzzle it out (unfortunately I only have an hour each morning to work on the computer until the heat is an issue -- will be fixed tomorrow afternoon but until then... goodbye!).
Alienware Aurora R12, Win 10, i9-119000KF, 3.5GHz CPU, 128GB RAM, RTX 3090 (24GB), Samsung 960 Pro 4TB M-2 SSD, TB+ Disk space
Mike "ex-genius" Kelley