Skip to main content
Overview > Inworld Voice Audio Component Class: 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 Interrupt Blueprint Node

Examples

void Interrupt()

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 QueueVoice Blueprint Node

Examples

void QueueVoice(const FInworldData_TTSOutput& Voice)

Parameters

ParameterTypeDescription
Voiceconst FInworldData_TTSOutput&The voice data to queue for playback.