This project uses AI to generate dynamic NPC dialogues, filter inappropriate content, analyze sentiment, and synthesize speech for an immersive game experience.
✔️ 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
- Clone this repository:
git clone https://github.com/Alirezasedd/AI-NPC-Dialogue.git
- Navigate to the project folder:
cd AI-NPC-Dialogue - Install dependencies:
pip install openai textblob pyttsx3
- Run the script:
python npc_dialogue.py
Run the AI NPC Dialogue project in Google Colab:
- Add memory to NPCs so they remember past conversations
- Improve voice synthesis with AI-generated speech models
Feel free to fork this repo, submit pull requests, and improve the project!