Navigation
API > API/Plugins > API/Plugins/TextToSpeech
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UEngineSubsystem
- UTextToSpeechEngineSubsystem
References
Module | TextToSpeech |
Header | /Engine/Plugins/Experimental/TextToSpeech/Source/TextToSpeech/Public/TextToSpeechEngineSubsystem.h |
Include | #include "TextToSpeechEngineSubsystem.h" |
Syntax
UCLASS&40;&41;
class UTextToSpeechEngineSubsystem : public UEngineSubsystem
Remarks
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.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | Activates all text to speech channels to accept requests for text to speech functionality. | |
![]() ![]() ![]() |
void | ActivateChannel
(
FName InChannelId |
Activates a text to speech channel to accept requests to perform text to speech functionality. |
![]() ![]() ![]() |
void | AddCustomChannel
(
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. |
![]() ![]() ![]() |
void | AddDefaultChannel
(
FName InNewChannelId |
Creates a new channel for text to speech requests to be made to a platform C++ text to speech class. |
![]() ![]() ![]() |
void | Deactivates all text to speech channels making all requests for text to speech functionality do nothing. | |
![]() ![]() ![]() |
void | DeactivateChannel
(
FName InChannelId |
Deactivates a text to speech channel and stops any vocalized strings on that channel. |
![]() ![]() ![]() ![]() |
bool | DoesChannelExist
(
FName InChannelId |
Returns true if a text to speech channel associated with a channel Id exists. |
![]() ![]() ![]() ![]() |
int32 | Returns the number of text to speech channels that have been added. | |
![]() ![]() ![]() ![]() |
float | GetRateOnChannel
(
FName InChannelId |
Returns the current speech rate strings are vocalized on a text to speech channel. |
![]() ![]() ![]() |
float | GetVolumeOnChannel
(
FName InChannelId |
Returns the current volume strings are vocalized on a text to speech channel. |
![]() ![]() ![]() ![]() |
bool | IsChannelActive
(
FName InChannelId |
Returns true if the text to speech channel is active, otherwise false. |
![]() ![]() ![]() ![]() |
bool | IsChannelMuted
(
FName InChannelId |
Returns true if the text to speech channel is muted, otherwise false. |
![]() ![]() ![]() ![]() |
bool | IsSpeakingOnChannel
(
FName InChannelId |
Return true when the targeted text to speech channel is vocalising, otherwise false. |
![]() ![]() ![]() |
void | MuteChannel
(
FName InChannelId |
Mutes a text to speech channel so no vocalized strings are audible on that channel. |
![]() ![]() ![]() |
void | Removes all text to speech channels, preventin future requests for text to speech functionality on all channels. | |
![]() ![]() ![]() |
void | RemoveChannel
(
FName InChannelId |
Removes a text to speech channel, preventing all further requests for text to speech functionality from the channel. |
![]() ![]() ![]() |
void | SetRateOnChannel
(
FName InChannelId, |
Sets the current speech rate strings should be vocalized on a text to speech channel. |
![]() ![]() ![]() |
void | SetVolumeOnChannel
(
FName InChannelId, |
Sets the volume for strings vocalized on a text to speech channel. |
![]() ![]() ![]() |
void | SpeakOnChannel
(
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. |
![]() ![]() ![]() |
void | Immediately stops strings from being vocalized on all text to speech channels. | |
![]() ![]() ![]() |
void | StopSpeakingOnChannel
(
FName InChannelId |
Immediately stops any currently vocalized string on the channel. |
![]() ![]() ![]() |
void | UnmuteChannel
(
FName InChannelId |
Unmutes a text to speech channel so vocalized strings are audible on the channel. |
Overridden from USubsystem
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Deinitialize () |
Implement this for deinitialization of instances of the system |
![]() ![]() |
void | Initialize
(
FSubsystemCollectionBase& Collection |
UEngineSubsystem. |