FoxitPDFSDKforWeb
v10.0.0
Foxit PDF SDK for Web
|
The interface of the speech synthesizer. You need to implement all the methods and properties declared below when customizing the speech synthesizer. More...
Public Member Functions | |
void | pause () |
Method used to pause a voice synthesizer that is playing. More... | |
Promise< void > | play (utterances:IterableIterator< Promise< PDFTextToSpeechUtterance >>, options?:ReadAloudOptions) |
Method for synthesizing speech and playing it back based on the provided options and text content. More... | |
void | resume () |
Method used to resume a voice synthesizer that has been paused. More... | |
void | stop () |
Method used to stop a voice synthesizer that is playing or has been paused. More... | |
void | updateOptions (options:Partial< ReadAloudOptions >) |
Method for updating voice options during playback. More... | |
Public Attributes | |
PDFTextToSpeechSynthesisStatus | status |
Property that indicates the current player status, which includes playing, paused, and stopped. More... | |
The interface of the speech synthesizer. You need to implement all the methods and properties declared below when customizing the speech synthesizer.
void PDFTextToSpeechSynthesis::pause | ( | ) |
Method used to pause a voice synthesizer that is playing.
Promise<void> PDFTextToSpeechSynthesis::play | ( | utterances:IterableIterator< Promise< PDFTextToSpeechUtterance >> | , |
options?:ReadAloudOptions | |||
) |
Method for synthesizing speech and playing it back based on the provided options and text content.
utterances | IterableIterator<Promise<PDFTextToSpeechUtterance>> - text contents |
options | ReadAloudOptions | undefined - default speech options for current player. |
void PDFTextToSpeechSynthesis::resume | ( | ) |
Method used to resume a voice synthesizer that has been paused.
void PDFTextToSpeechSynthesis::stop | ( | ) |
Method used to stop a voice synthesizer that is playing or has been paused.
void PDFTextToSpeechSynthesis::updateOptions | ( | options:Partial< ReadAloudOptions > | ) |
Method for updating voice options during playback.
options | Partial<ReadAloudOptions> - speech options |
PDFTextToSpeechSynthesisStatus PDFTextToSpeechSynthesis::status |
Property that indicates the current player status, which includes playing, paused, and stopped.