Skip to content

Alirezasedd/AI-NPC-Dialogue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI NPC Dialogue Generator 🎮🤖

This project uses AI to generate dynamic NPC dialogues, filter inappropriate content, analyze sentiment, and synthesize speech for an immersive game experience.

Features

✔️ AI-powered NPC dialogue generation using OpenAI's GPT
✔️ Automatic content filtering for inappropriate responses
✔️ Sentiment analysis to ensure appropriate NPC tone
✔️ Text-to-Speech (TTS) using pyttsx3

Installation

  1. Clone this repository:
    git clone https://github.com/Alirezasedd/AI-NPC-Dialogue.git
  2. Navigate to the project folder:
    cd AI-NPC-Dialogue
  3. Install dependencies:
    pip install openai textblob pyttsx3
  4. Run the script:
    python npc_dialogue.py

Google Colab Version

Run the AI NPC Dialogue project in Google Colab:
Open in Colab

Future Enhancements

  • Add memory to NPCs so they remember past conversations
  • Improve voice synthesis with AI-generated speech models

Contributing

Feel free to fork this repo, submit pull requests, and improve the project!

About

AI-powered NPC dialogue generator with filtering, sentiment analysis, and text-to-speech synthesis.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors