How do I access auto-generated phoneme timings in a script?

I want to access the highlighted timings in red:

I know that you can access some timings by using,

Note.getAttributes().phonemes.leftOffset
Note.getAttributes().phonemes.position

However, it seems that the position attribute refers to the start of the sound itself, like the peak in the ‘k’ sound. Also, leftOffset seems to be only defined when the syllable timing is defined manually in the editor.

How can I access the auto-generated syllable timings from within a script?

You can start by reading this previous topic on the phonemes timing: