Navigation
API > API/Plugins > API/Plugins/TextToSpeech > API/Plugins/TextToSpeech/FTextToSpeechBase
Description
Immediately speaks the requested string. If another string is being spoken by the TTS, the current string will immediately be stopped before the requested string is spoken. Note: Passing in long sentences or paragraphs are not recommended. Split the paragraph into shorter sentences and register with the OnTextToSpeechFinishSpeakingDelegate to pass in the next chunk.
| Name | Speak |
| Type | function |
| Header File | /Engine/Plugins/Experimental/TextToSpeech/Source/TextToSpeech/Public/GenericPlatform/TextToSpeechBase.h |
| Include Path | #include "GenericPlatform/TextToSpeechBase.h" |
void Speak
(
const FString & InStringToSpeak
)