SkillAgentSearch skills...

UnityNeuroSpeech

The world’s first game framework that lets you talk to AI in real time — locally. Supports any custom voice.

Install / Use

/learn @HardCodeDev777/UnityNeuroSpeech

README

Unity  

License Last commit Tag Top lang quality code_style

<div align="center"> <img src="docs/media/logo.png"> </div>

Make your Unity characters hear, think, and talk — using real voice AI. Locally. No cloud.


UnityNeuroSpeech is an open-source framework for creating fully voice-interactive AI agents inside Unity.
It connects:

  • 🧠 Whisper (STT) – converts your speech into text
  • 💬 Ollama (LLM) – generates smart responses
  • 🗣️ XTTS (TTS) – speaks back with custom voice + emotions

All locally. All offline.
No subscriptions, no accounts, no OpenAI API keys.


🚀 What can you build with UnityNeuroSpeech?

  • 🎮 AI characters that understand your voice and reply in real time
  • 🗿 NPCs with personality and memory
  • 🧪 Experiments in AI conversation and narrative design
  • 🕹️ Voice-driven gameplay mechanics
  • 🤖 Interactive bots with humanlike voice responses

✨ Core Features

| Feature | Description | |--------|--------------------------------------------------------------------------------------------| | 🎙️ Voice Input | Uses whisper.unity for accurate speech-to-text | | 🧠 AI Brain (LLM) | Easily connect to any local model via Ollama | | 🗣️ Custom TTS | Supports any voice with Coqui XTTS | | 😄 Emotions | Emotion tags (<happy>, <sad>, etc.) parsed automatically from LLM | | 🎬 Actions | Action tags (<turn_off_lights>, <play_cutscene_123>, etc.) also parsed automatically from LLM | | 🎛️ Agent API | Subscribe to events like BeforeTTS() to monitor your agents | | 📝 History Saving in JSON | Save dialog history between player and LLM in JSON with/without AES encryption | | 🛠️ Editor Tools | Create, manage and customize agents inside Unity Editor easily | | 🧱 No Cloud | All models and voice run locally on your machine | | 🌐 Multilingual | Works with over 15+ languages, including English, Russian, Chinese, etc. | | 🔊 Multiple Voices and Languages for Multiple Agents | Each Agent can have each voice file for any available laguage | | ⚡ High Performance | Uses UniTask instead of Coroutines and Tasks for optimal performance. | | 🔧 Full Build Support | Full compatibility with both Mono and IL2CPP scripting backends. |


🧪 Built with:


⚙️ Compatibility

| Scripting backend | Windows | Other platforms | |-------------------|---------|--------------------| | Mono | ✅ | ❌ (not planned) | | IL2CPP | ✅ | ❌ (not planned) |


📚 Getting Started

See UnityNeuroSpeech official documentation.


😎 Who made this?

UnityNeuroSpeech was created by HardCodeDev — solo dev from Russia.


🗒️ License

UnityNeuroSpeech is licensed under the MIT License. For other Licenses, see Licenses.

View on GitHub
GitHub Stars48
CategoryCustomer
Updated3d ago
Forks9

Languages

C#

Security Score

95/100

Audited on Apr 3, 2026

No findings