Skip to main content
Overview > Inworld Blueprint Function Library Class: UInworldBlueprintFunctionLibrary | Inherits from: UBlueprintFunctionLibrary

Methods

Reference

BreakAudio

Parameters


BuildPhoneSpansFromTTSOutput

Builds a flat array of phone spans from a TTS output object. Extracts phonetic timing data from Timestamps → PhoneticDetails.Phones. Use this to cache lip-sync data from a completed TTS output before playback.

Parameters


CreateBooleanJinjaArgument

Parameters

Returns

Type: FJinjaArgument

CreateFloatJinjaArgument

Parameters

Returns

Type: FJinjaArgument

CreateIntJinjaArgument

Parameters

Returns

Type: FJinjaArgument

CreateInworldDataError

Parameters


CreateStringJinjaArgument

Parameters

Returns

Type: FJinjaArgument

CreateStructJinjaArgument

Parameters

Returns

Type: FJinjaArgument

DataStreamTTSOutputGetNext

Retrieves the next TTS output chunk from a streaming TTS data stream. Should only be called when DataStreamTTSOutputHasNext returns true.

Parameters

Returns

Type: FInworldDataHandle

DataStreamTTSOutputHasNext

Returns whether a streaming TTS data stream has more output chunks available.

Parameters

Returns

Type: bool

GetCurrentWord

Returns the word currently being spoken at the given playback position. Compares PlaybackInfo.Utterance.PlayedDuration against each word’s StartTime and EndTime from the TTS output timestamps.

Parameters

Returns

Type: FInworldAudioVoiceWord

GetPhonemeBlends

Calculates phoneme blend weights at the current playback position from a pre-built array of phone spans. Uses the same timing logic as GetVisemeBlends but returns phoneme codes instead of viseme categories. Use this when you need raw phoneme data rather than viseme mappings.

Parameters

Returns

Type: FInworldPhonemeBlends

GetPhonemeBlendsTTS

Calculates phoneme blend weights directly from a TTS output object and current playback position. Combines BuildPhoneSpansFromTTSOutput and GetPhonemeBlends in a single call. Use GetPhonemeBlends with a cached span array if performance is a concern.

Parameters

Returns

Type: FInworldPhonemeBlends

GetRuntimeStruct

Parameters


GetVisemeBlends

Calculates viseme blend weights for the current playback position from a pre-built array of phone spans. Smoothly interpolates between visemes. Build PhoneSpans once per utterance using BuildPhoneSpansFromTTSOutput and cache it for use each tick.

Parameters

Returns

Type: FInworldVisemeBlends

GetVisemeBlendsTTS

Calculates viseme blend weights directly from a TTS output object and current playback position. Combines BuildPhoneSpansFromTTSOutput and GetVisemeBlends in a single call. Use GetVisemeBlends with a cached span array if performance is a concern.

Parameters

Returns

Type: FInworldVisemeBlends

MakeAudio

Parameters

Returns

Type: FInworldData_Audio

RenderJinjaWithArgMap

Renders a Jinja2 template string using a map of typed argument values. Returns true on success and writes the rendered output to OutJinja. Use CreateBooleanJinjaArgument, CreateStringJinjaArgument, etc. to build the argument map.

Parameters

Returns

Type: booltrue if rendering succeeded

RenderJinjaWithJson

Renders a Jinja2 template string using variables supplied as a JSON string. Returns true on success and writes the rendered output to OutRender.

Parameters

Returns

Type: booltrue if rendering succeeded

TrimLLMOutput

Removes leading and trailing quotes as well as getting rid of double spaces and other artifacts of LLM text generation.

Parameters


UnwrapInworldDataHandle

Parameters


WrapInworldData

Parameters

Returns

Type: FInworldDataHandle