Unreal Engine 5.8 Plug-in · v0.3.0 Beta

LOCAL MULTIMODAL LLM

Private, offline character dialogue for UE5 — no cloud, no API keys.

100% Local Win64 llama.cpp Blueprint + C++ Multi-Character v0.3.0 Beta Available on Fab

What It Is

Local Multimodal LLM is a Win64 Unreal Engine runtime plug-in for private, offline character dialogue. It embeds llama.cpp for text generation, exposes isolated multi-character sessions, and provides provider-neutral speech input and output components — all running on the player's own hardware.

See It In Action

The Quick Start: building local AI NPCs in UE 5.8 with the conversation router and character components. Recorded on v0.2; the setup is the same in v0.3.

v0.2 Quick Start. One router, one component per NPC, push-to-talk — no cloud, no API keys.

v0.1 release demo. Voiced characters running entirely on-device.

Included Capabilities

Everything ships as one plug-in — enable only what a project needs.

🧩

Drop-In Conversation Components

One Local LLM Conversation Router plus one Local LLM Character component per NPC. Model loading, registration, sessions, voice selection, and spoken replies are automatic — wire up push-to-talk and talk.

New in v0.2
🎭

A Voice Per Character

A Pocket TTS voice catalog with per-character voices, per-request switching, and per-voice prewarming, all sharing one model runtime. Four starter voices included; v0.1 single-voice setups still work.

New in v0.2
🩺

First-Run Diagnostics

One Quiet / Normal / Full Debug logging switch for the whole plug-in, a single readiness summary once every character is loaded, and a specific reason when nobody answers — out of range, facing away, not ready, or ambiguous.

New in v0.3
📦

Manifest-Driven Model Loading

GGUF model discovery via *.localllm.json manifests. One loaded model serves every character session — no duplicate loads per actor.

llama.cpp
🗣️

Streamed Multi-Character Sessions

Isolated, cancellable sessions per character with per-character KV-state reuse. Switching characters lazily saves/restores llama sequence state.

Session-Isolated
📜

Character & World Sheets

Structured character/world Data Assets, compacted conversation memory, and optional custom context — with configurable reasoning mode and generation limits.

Data Assets
💬

Guarded Sentence Streaming

Sentence-guarded streaming for subtitles and low-latency TTS, with jailbreak and immersion guards that sanitize or retry unsafe output before it reaches the player.

Guards
🔧

Constrained Tool Calls

Typed, allow-listed Unreal tool requests. The model never touches reflected functions or console commands directly — game code validates and executes every call.

Type-Safe
🤝

Relationship Evaluation

Optional trust/affinity-style relationship judging with developer-selected criteria and prompt mappings — previewed or applied at deliberate story boundaries.

Optional
🎤

Microphone & Speech Input

Native Parakeet TDT 0.6B v3 STT: 25 European languages detected automatically, with punctuation and capitalization. Push-to-talk or optional always-on VAD, noise-floor calibration, contextual vocabulary correction, and one-turn rollback for accidental captures.

Updated in v0.3
👂

Ambient Listener Routing

Per-participant hearing scores from explicit target, facing, active-conversation state, and proximity — so multiple nearby characters can tell whether a line was meant for them.

Multi-Character
🔈

Provider-Neutral Speech Output

Native Pocket TTS through sherpa-onnx in Shipping builds, with optional NeuTTS-2E and Chatterbox Editor/Development sidecars for reference-voice cloning during iteration.

TTS
🧑

MetaHuman Lip Sync Bridge

An optional companion plug-in streams the generated speech into Epic's MetaHuman Audio Live Link solver — the setup shown in the walkthrough. Setup guide.

Optional
📚

Dynamic Lore

Scoped runtime world knowledge, so characters can learn about events as they happen without rewriting their sheets.

World Context
👁️

Development Vision

Image input through the Blueprint Submit Image For Session node and libmtmd. Needs a custom vision-capable model and a matching projector; not part of the Starter setup.

Experimental

Download

Starter Core is everything you need. The rest are optional add-ons or modular alternatives.

v0.3.0 Beta · UE 5.8 · Win64

The self-contained package: plug-in, CPU + Vulkan runtimes, Gemma 4 E2B, Parakeet STT, Pocket TTS, and four starter voices — ~3.3 GB.
Optional NVIDIA add-on, installed over Starter Core — ~922 MB.
The plug-in without model weights, for bringing your own models — ~82 MB.
The Starter models on their own — ~3.25 GB.
Optional source companion for MetaHuman Audio Live Link lip sync.
C++ source, docs, and releases. SHA-256 checksums.

Quick Start

The default spoken-NPC path — the walkthrough video shows it end to end.

  1. Install Starter Core into the project root (add the CUDA accelerator for NVIDIA GPUs).
  2. Enable Local Multimodal LLM and Audio Capture, then compile the project once. Packaged games don't need developer tools on the player's machine.
  3. Add one Local LLM Conversation Router to the Player Controller or player Pawn that already owns input. It loads the model and sets up the microphone. (A separate manager actor also works, but it has to receive Player 0 input.)
  4. Add one Local LLM Character component to each NPC and give it a Character Sheet with one of the starter voices.
  5. Bind push-to-talk Pressed → Begin Routed Push To Talk and Released → End Routed Push To Talk. Facing, focus, and proximity pick who answers.

Full Documentation

The User Guide covers plugin setup, character/world sheets, the conversation components, custom models, tool calls, relationship evaluation, microphone/TTS configuration, and troubleshooting.

📘 Open the User Guide

Tech Stack

Built on open-source inference and speech tooling.

Unreal Engine 5.8 Blueprint + C++ llama.cpp Gemma 4 E2B sherpa-onnx Parakeet TDT v3 Pocket TTS Vulkan CUDA 12 (optional) libmtmd

Shipping Boundaries

Mock STT/TTS providers and the Python NeuTTS-2E/Chatterbox development sidecars are not registered in Shipping builds — the packaged native CPU speech path is Pocket TTS and sherpa-onnx. Model weights, voice datasets, and demo-map assets are project test material, not plug-in payload. An LLM remains nondeterministic: authoritative gameplay state and all mutating actions stay validated by game code.

License

The plug-in's code and documentation are Apache 2.0; bundled runtimes, models, and voices keep their own licenses (see the third-party notices). When practical, please credit: Local Multimodal LLM created by Ian Sundahl and Volley Studios.