UInworldVoiceAudioComponent | Inherits from: UAudioComponent
Specialized audio component for TTS voice playback with advanced features. This component extends UAudioComponent to provide specialized functionality for playing synthesized voice audio from the Inworld TTS system. It manages voice queuing, playback interruption, and playback timing events.
Key features:
- Queue-based voice playback management
- Playback interruption and cleanup
- Real-time playback timing events
- Thread-safe voice queue operations
- Event-driven architecture for playback notifications
Methods
Reference
Interrupt
Interrupts the current voice playback. This function stops all pending voice chunks and immediately halts playback. It broadcasts an event to notify that the voice has been interrupted. Events: OnVoiceAudioInterrupt
Examples
QueueVoice
Queues a voice chunk for playback. This function adds the provided voice data to the playback queue. If this is the first chunk in the queue, it sets the sample rate and channel configuration based on the incoming audio data. Events: OnVoiceAudioStart, OnVoiceAudioComplete
Examples
Parameters
| Parameter | Type | Description | 
|---|---|---|
| Voice | const FInworldData_TTSOutput& | The voice data to queue for playback. |