ICohtmlSpeechSynthesizer
Cross-platform API for Synthesizer Implement it for target platforms.
#include <CohtmlSpeechSynthesizer.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| virtual | ~ICohtmlSpeechSynthesizer() =default |
| virtual bool | Initialize() =0 Should perform any initialization work for the synthesizer. |
| virtual bool | Speak(const FString & Text, float Volume =1.f, float Rate =1.f, uint32 Language =0) =0 Called on worker thread Should speak the request to audio output if such functionality is supported. |
| virtual void | Cancel() =0 Cancels speech requests and stops playing the current one if it’s playing using Speak. Expected to be called on time-sensitive threads. |
| virtual bool | IsSpeakingOrProcessing() =0 |
Public Functions Documentation
Section titled “Public Functions Documentation”function ~ICohtmlSpeechSynthesizer
Section titled “function ~ICohtmlSpeechSynthesizer”virtual ~ICohtmlSpeechSynthesizer() =defaultfunction Initialize
Section titled “function Initialize”virtual bool Initialize() =0Should perform any initialization work for the synthesizer.
Return: if synthesizer was initialized successfully
function Speak
Section titled “function Speak”virtual bool Speak( const FString & Text, float Volume =1.f, float Rate =1.f, uint32 Language =0) =0Called on worker thread Should speak the request to audio output if such functionality is supported.
Return: if the request was successfully scheduled to audio output
function Cancel
Section titled “function Cancel”virtual void Cancel() =0Cancels speech requests and stops playing the current one if it’s playing using Speak. Expected to be called on time-sensitive threads.
function IsSpeakingOrProcessing
Section titled “function IsSpeakingOrProcessing”virtual bool IsSpeakingOrProcessing() =0Return: if currently there is a request processing or audio playing.
© 2026 Coherent Labs. All rights reserved.