PDFium Component Docs

OnSpeak event

Class: TPdfReadingSession  ·  Unit: PDFium
Raised when the host should speak a chunk

Syntax

property OnSpeak: TPdfReadingSpeakEvent;

Description

The handler receives the chunk text and an Interrupt flag telling the host whether to clear the current speech queue first

Remarks

Example

procedure TForm1.ReadingSessionSpeak(Sender: TObject; const Text: WString; Interrupt: Boolean);
begin
  SpeechEngine.Speak(Text, Interrupt);
end;

See Also

TPdfReadingSession, TPdfReadingSpeakEvent