function EstimateSpokenWordIndex(const Words: TPdfWordBoxes; ElapsedMs: Cardinal; WordsPerMinute: Integer): Integer;
| Words | TPdfWordBoxes - 現在読み上げ中のチャンクに含まれる単語 |
| ElapsedMs | Cardinal - 現在のチャンクの読み上げ開始からの経過ミリ秒 |
| WordsPerMinute | Integer - 推定読み上げレート。0 でデフォルトの 175 WPM を使用 |
-1このヘルパーは範囲全体に、1 単語あたり 60000 / WordsPerMinute ミリ秒という予算を配分します
各単語には、テキスト長に比例する配分に単語間ポーズ分の小さなウェイトを加えた時間が割り当てられます
EstimatePacing が有効な場合、TPdfReadingSession.Tick はこのヘルパーを利用しますWordIndex := EstimateSpokenWordIndex(Words, ElapsedMs, 175);
if WordIndex >= 0 then
PdfView1.SetReadingWord(Words[WordIndex]);