Navigation
API > API/Plugins > API/Plugins/TextToSpeech
Subsystem for interacting with the text to speech system via blueprints. The subsystem consists of a number of text to speech channels associated with a text to speech channel Id. Each text to speech channel provides text to speech functionality such as vocalizing a string, stopping a vocalized string, controlling the audio settings of the channel and muting/unmuting a channel. Most of the functions take a text to speech channel Id which allows you to request text to speech functionality on the requested channel. All newly added text to speech channels start off deactivated and must be activated before any text to speech functionality can be used.
| Name | UTextToSpeechEngineSubsystem |
| Type | class |
| Header File | /Engine/Plugins/Experimental/TextToSpeech/Source/TextToSpeech/Public/TextToSpeechEngineSubsystem.h |
| Include Path | #include "TextToSpeechEngineSubsystem.h" |
Syntax
UCLASS ()
class UTextToSpeechEngineSubsystem : public UEngineSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEngineSubsystem → UTextToSpeechEngineSubsystem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UTextToSpeechEngineSubsystem() |
TextToSpeechEngineSubsystem.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UTextToSpeechEngineSubsystem() |
TextToSpeechEngineSubsystem.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ChannelIdToTextToSpeechMap | TMap< FName, TSharedRef< FTextToSpeechBase > > | ~ | TextToSpeechEngineSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ActivateAllChannels() |
Activates all text to speech channels to accept requests for text to speech functionality. | TextToSpeechEngineSubsystem.h |
|
void ActivateChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Activates a text to speech channel to accept requests to perform text to speech functionality. | TextToSpeechEngineSubsystem.h |
|
void AddCustomChannel
(
UPARAM(DisplayName="New Channel Id") FName InNewChannelId |
Creates a new text to speech channel where text to speech requests are fulfilled by a user implemented C++ text to speech class. | TextToSpeechEngineSubsystem.h |
|
void AddDefaultChannel
(
UPARAM(DisplayName="New Channel Id") FName InNewChannelId |
Creates a new channel for text to speech requests to be made to a platform C++ text to speech class. | TextToSpeechEngineSubsystem.h |
|
void DeactivateAllChannels() |
Deactivates all text to speech channels making all requests for text to speech functionality do nothing. | TextToSpeechEngineSubsystem.h |
|
void DeactivateChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Deactivates a text to speech channel and stops any vocalized strings on that channel. | TextToSpeechEngineSubsystem.h |
|
virtual void Deinitialize() |
TextToSpeechEngineSubsystem.h | ||
bool DoesChannelExist
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Returns true if a text to speech channel associated with a channel Id exists. | TextToSpeechEngineSubsystem.h |
|
int32 GetNumChannels() |
Returns the number of text to speech channels that have been added. | TextToSpeechEngineSubsystem.h |
|
float GetRateOnChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Returns the current speech rate strings are vocalized on a text to speech channel. | TextToSpeechEngineSubsystem.h |
|
float GetVolumeOnChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Returns the current volume strings are vocalized on a text to speech channel. | TextToSpeechEngineSubsystem.h |
|
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
UEngineSubsystem. | TextToSpeechEngineSubsystem.h | |
bool IsChannelActive
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Returns true if the text to speech channel is active, otherwise false. | TextToSpeechEngineSubsystem.h |
|
bool IsChannelMuted
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Returns true if the text to speech channel is muted, otherwise false. | TextToSpeechEngineSubsystem.h |
|
bool IsSpeakingOnChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Return true when the targeted text to speech channel is vocalising, otherwise false. | TextToSpeechEngineSubsystem.h |
|
void MuteChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Mutes a text to speech channel so no vocalized strings are audible on that channel. | TextToSpeechEngineSubsystem.h |
|
void RemoveAllChannels() |
Removes all text to speech channels, preventin future requests for text to speech functionality on all channels. | TextToSpeechEngineSubsystem.h |
|
void RemoveChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Removes a text to speech channel, preventing all further requests for text to speech functionality from the channel. | TextToSpeechEngineSubsystem.h |
|
void SetRateOnChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId, |
Sets the current speech rate strings should be vocalized on a text to speech channel. | TextToSpeechEngineSubsystem.h |
|
void SetVolumeOnChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId, |
Sets the volume for strings vocalized on a text to speech channel. | TextToSpeechEngineSubsystem.h |
|
void SpeakOnChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId, |
Immediately vocalizes the requested string asynchronously on the requested text to speech channel, interrupting any string that is already being vocalized on the channel. | TextToSpeechEngineSubsystem.h |
|
void StopSpeakingOnAllChannels() |
Immediately stops strings from being vocalized on all text to speech channels. | TextToSpeechEngineSubsystem.h |
|
void StopSpeakingOnChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Immediately stops any currently vocalized string on the channel. | TextToSpeechEngineSubsystem.h |
|
void UnmuteChannel
(
UPARAM(DisplayName="Channel Id") FName InChannelId |
Unmutes a text to speech channel so vocalized strings are audible on the channel. | TextToSpeechEngineSubsystem.h |
|