Skip to content

HardCodeDev777/UnityNeuroSpeech

Repository files navigation

Unity  

License Last commit Tag Top lang quality code_style

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.

About

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

Topics

Resources

License

Code of conduct

Contributing

Stars

49 stars

Watchers

2 watching

Forks

Contributors

Languages