Class UTryllSpeakerComponent¶
ClassList > UTryllSpeakerComponent
#include <TryllSpeakerComponent.h>
Inherits the following classes: UActorComponent
Public Attributes¶
| Type | Name |
|---|---|
| FOnTryllTtsAudioFinished | OnTtsAudioFinished |
| FOnTryllTtsAudioStarted | OnTtsAudioStarted |
Public Functions¶
| Type | Name |
|---|---|
| void | HandleAudio (const FString & NodeName, TArrayView< const int16 > Pcm) |
| void | HandleFormat (const FString & NodeName, uint32 SampleRate, uint16 Channels, uint16 BitsPerSample) |
| UTryllSpeakerComponent () |
Protected Functions¶
| Type | Name |
|---|---|
| virtual void | BeginPlay () override |
| virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
Detailed Description¶
Public Attributes Documentation¶
variable OnTtsAudioFinished¶
Fired when the underlying audio component reports playback completion.
variable OnTtsAudioStarted¶
Fired once when the first PCM chunk of a turn is queued for playback.
Public Functions Documentation¶
function HandleAudio¶
void UTryllSpeakerComponent::HandleAudio (
const FString & NodeName,
TArrayView< const int16 > Pcm
)
Called by UTryllAgentComponent for each PCM chunk in the current turn. The view references caller-owned memory and is consumed synchronously. NodeName is accepted for signature compatibility (see HandleFormat) but unused.
function HandleFormat¶
void UTryllSpeakerComponent::HandleFormat (
const FString & NodeName,
uint32 SampleRate,
uint16 Channels,
uint16 BitsPerSample
)
Called by UTryllAgentComponent when the server announces the audio format for the current turn. (Re)creates the procedural sound if the sample rate differs from the previous turn's. NodeName (the producing node's name — multi-sender attribution) is accepted for signature compatibility with FTryllAgent::OnTtsAudioFormat but otherwise unused: this component mixes all producers into one procedural sound.
function UTryllSpeakerComponent¶
Protected Functions Documentation¶
function BeginPlay¶
function EndPlay¶
The documentation for this class was generated from the following file C:/_tryll/_monorepo3/tryll/clients/unreal/Source/TryllClient/Public/TryllSpeakerComponent.h