Building phonemes and words indices for frames.