materializeToken method
Implementation
ParakeetTdtToken materializeToken(ParakeetTdtStep step) {
final tokenText =
step.tokenId >= 0 && step.tokenId < manifest.vocabulary.length
? manifest.vocabulary[step.tokenId]
: '';
return ParakeetTdtToken(
id: step.tokenId,
text: tokenText,
startSeconds: step.frameIndex * manifest.frameStepSeconds,
durationSeconds: step.durationFrames * manifest.frameStepSeconds,
);
}