#21 · Primary category: Game AI & Behavior Trees

Interactive-LLM-Powered-NPCs

ai artificial-intelligence autonomous-agents computer-vision langchain language-model llm-agent python video-game

Interactive LLM Powered NPCs, is an open-source project that completely transforms your interaction with non-player characters (NPCs) in any game! 🎮🤖🚀

Project last updated:03/22/24

GitHub Stars

719

Forks

76

Contributors

3

License

MIT

Why we included this project

Open-world games rarely let you talk to the random guard or shopkeeper, but this project shows how to change that. It takes your microphone input, runs it through speech-to-text, feeds the transcript along with character context to a language model, and then renders a lip-synced facial animation that gets overlaid onto the NPC's face in the running game. The system identifies which character you're addressing, gives each one a generated personality, and uses vector stores plus pre-conversation files so characters keep consistent memory and distinct speaking styles. It also reads your webcam expressions to adjust responses, and it does all this without modifying the game's source code by replacing the displayed face pixels. It's a research-style prototype rather than a polished product, but for developers experimenting with LLM-driven in-game dialogue and real-time speech-to-speech pipelines, it's a useful reference.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category