Interactive-LLM-Powered-NPCs  by AkshitIreddy

Game mod for interactive, LLM-powered NPC conversations

created 2 years ago
656 stars

Top 51.9% on sourcepulse

GitHubView on GitHub
Project Summary

This project enables real-time, voice-activated conversations with NPCs in any game, enhancing immersion by allowing players to speak directly to characters. It targets players of open-world games like Cyberpunk 2077 and Assassin's Creed, offering a novel way to interact with existing game worlds without modifying game code.

How It Works

The system captures microphone input, transcribes speech, and uses facial recognition to identify the target NPC. This information, along with character-specific data from vector stores and pre-conversation files, is fed to an LLM for response generation. The LLM's output is converted to speech and used to create lip-synced facial animations via SadTalker, which then replaces the NPC's in-game face pixels. Webcam input can also be used for emotion recognition to tailor NPC responses.

Quick Start & Requirements

Highlighted Details

  • Integrates LLM-powered dialogue and facial animation (SadTalker) into live gameplay.
  • Utilizes vector stores for persistent NPC memory and pre-conversation files for dialogue style.
  • Supports emotion recognition via webcam for more dynamic NPC interactions.
  • Allows non-visual interaction by prefixing dialogue with the NPC's name.

Maintenance & Community

  • Active development with a Discord server for community support and contributions.
  • Encourages community contributions for expanding game compatibility and improving features.

Licensing & Compatibility

  • The repository itself appears to be under a permissive license, but the underlying dependencies like SadTalker may have their own licenses. Specific licensing details for the combined project are not explicitly stated in the README.

Limitations & Caveats

The project relies on specific versions of Python and external tools, and setup can be complex, especially for non-Windows users or those unfamiliar with LLM integration and multimedia processing. Performance may vary based on hardware, particularly for real-time facial animation rendering.

Health Check
Last commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
31 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.